code
stringlengths
1
2.08M
language
stringclasses
1 value
#!/usr/bin/rhino var partidos= {partido1 : { Local : 'Madrid' ,Visitante : 'Graná' , Resultado : 'x' } , partido2 : { Local : 'Barça', Visitante : 'Atleti' , Resultado : '2'}, partido3 : {Local : 'Ponferrada', Visitante: 'Betis', Resultado : 'x'}} //Lo mostramos: for (i in partidos) { print (i + ":" ); for (v...
JavaScript
#!/usr/bin/rhino var partidos= {partido1 : { Local : 'Madrid' ,Visitante : 'Graná' , Resultado : 'x' } , partido2 : { Local : 'Barça', Visitante : 'Atleti' , Resultado : '2'}, partido3 : {Local : 'Ponferrada', Visitante: 'Betis', Resultado : 'x'}} //Lo mostramos: for (i in partidos) { print (i + ":" ); for (v...
JavaScript
// ==UserScript== // @name AAP-Nav // @namespace http://geneura.org/projects/greasemonkey // @description Navegación desde cada bloque de ejercicios al siguiente // @include http://geneura.ugr.es/~jmerelo/asignaturas/* // ==/UserScript== GM_log('Entrando AAP-Nav'); var h3 ...
JavaScript
function(doc, req) { return { <h1>'Partido: '+ doc._id+ ' Resultado: '+(doc.goles_local - doc.goles_visitante)</h1>; } } }
JavaScript
#!/usr/bin/node var request = require('request'); var url ='http://api.twitter.com/1/statuses/public_timeline.json'; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { var twitter=(JSON.parse(body)); for (var i in twitter){ console.log('--------------...
JavaScript
// Definición de la clase Partido function Nuevo_Partido(local,visitante,resultado) { this.local = local; this.visitante=visitante; this.resultado=resultado; this.setResultado = setResultado; this.toString = toString; this.set_to_string = set_to_string; this.impresor = _toString; } function...
JavaScript
#!/usr/bin/node fs = require('fs'); eval(fs.readFileSync('./Nuevo_Partido.js', 'utf8')); fs.readFile('quiniela.datos', 'utf8', function(err,datos) { if (err) { return console.log(err); }; var filas = datos.split("\n"); for ( var f in filas ) { var cachos = filas[f].split(" "); var rest...
JavaScript
#!/usr/bin/node var request = require('request'); var url ='http://api.twitter.com/1/statuses/public_timeline.json'; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { var twitter=(JSON.parse(body)); for (var i in twitter){ console.log('--------------...
JavaScript
#!/usr/bin/node fs = require('fs'); eval(fs.readFileSync('./Nuevo_Partido.js', 'utf8')); fs.readFile('quiniela.datos', 'utf8', function(err,datos) { if (err) { return console.log(err); }; var filas = datos.split("\n"); for ( var f in filas ) { var cachos = filas[f].split(" "); var rest...
JavaScript
var express=require('express');/*Pedimos la libreria*/ var app = express.createServer();/*Creamos el servidor*/ var contador=0;/*Variable contadora*/ app.get('/', function (req, res) { contador=contador+1; res.send('Ahora vamos por: '+'{contador:'+contador+'}'); }); app.get('/proc', function (req, res) { con...
JavaScript
#!/usr/bin/node fs = require('fs'); eval(fs.readFileSync('./Nuevo_partido.js', 'utf8')); fs.readFile('resultados.datos', 'utf8', function(err,datos) { if (err) { return console.log(err); }; var filas = datos.split("\n"); for ( var f in filas ){ var cachos = filas[f].split(" "); //En es...
JavaScript
// Definición de la clase Nuevo_partido function Nuevo_partido(local,visitante,resultado) { this.local = local; this.visitante=visitante; this.resultado=resultado; this.setResultado = setResultado; this.toString = toString; this.set_to_string = set_to_string; this.impresor = _toString; } fu...
JavaScript
#!/usr/bin/node fs = require('fs'); eval(fs.readFileSync('./Nuevo_partido.js', 'utf8')); fs.readFile('resultados.datos', 'utf8', function(err,datos) { if (err) { return console.log(err); }; var filas = datos.split("\n"); for ( var f in filas ){ var cachos = filas[f].split(" "); //En es...
JavaScript
var http=require('http'); http.createServer(function (req, res) { var split_url=req.url.split("/"); //Comprobamos la URL if ( split_url[1] == '' ) { //Usamos writeHead para escribir en la cabecera res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Error'); } else if ( split_ur...
JavaScript
fs = require('fs'); var db = require('nano')('http://localhost:5984/').use("geomio"); //Rest of code lacks here. var aleatoriox=Math.random(); var aleatorioy=Math.random(); console.log({ 'posx': aleatoriox, 'posy': aleatorioy } ); //Creamos el array var resultados = new Array; //Añadimos elementos al final del...
JavaScript
#!/usr/bin/node console.log(require.paths); var request = require('request'); var url ='http://api.twitter.com/1/statuses/public_timeline.json'; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { //Ahora, lo metemos en un objeto y trabajamos sobre el //console.log(...
JavaScript
#!/usr/bin/node console.log(require.paths); var request = require('request'); var url ='http://api.twitter.com/1/statuses/public_timeline.json'; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { //Ahora, lo metemos en un objeto y trabajamos sobre el //console.log(...
JavaScript
#!/usr/bin/node var db = require('nano')('https://srsudo:1234567@srsudo.iriscouch.com').use("clases"); //NO se puede poner group=true si es una funcion MAP. db.view('clases','vistazo', function( error, http_body ) { console.log(http_body); } );
JavaScript
var http = require('http'); var fs=require('fs'); var contador=0; /*fs.readFileSync('archivo.js','utf8',function(err,datos)){*/ http.createServer(function(request, response) { contador++; response.writeHeader(200, {"Content-Type": "text/html"}); response.end('<HTML>\n<HEAD>\n<TITLE>Hola, mundo!</TITLE>\...
JavaScript
#!/usr/bin/js //Declaracion de las variables correspondientes. var resultado = { "Prueba":{Granada:5,Sevilla:2}, "OPrueba":{Malaga:4,Granada:1}, "OOPrueba":{Malaga:0,Granada:10}, } print( " RESULTADOS DE LA JORNADA DE LIGA ") print( "----------------------------------") for ( var...
JavaScript
function(head, req) { var row; start({ "headers":{ "Content-Type":"text/html" } }); while(row = getRow()){ send ("<p>"+row.key+"</p>\n"); }//Fin del while }//fin de clase
JavaScript
//Funcion en codigo texto para la vista. function(doc, req) { return '<h1>' + doc.titulo + '</h1><br><h2>Esto es una prueba</h2>'; }
JavaScript
// Definición de la clase Partido function Nuevo_partido(local,visitante) { this.local = local; this.visitante=visitante; this.resultado=null; this.setResultado = setResultado; this.toString = toString; this.set_to_string = set_to_string; this.impresor = _toString; } function setResultado( ...
JavaScript
// ==UserScript== // @name AAP-Nav-mio // @namespace http://geneura.org/projects/greasemonkey // @description Navegación por los ejercicios de AAP // @include http://geneura.ugr.es/~jmerelo/asignaturas/* // ==/UserScript== GM_log('Programa listo para comenzar'); //En primer...
JavaScript
#!/usr/bin/smjs load('Nuevo_partido.js'); var equipos= new Array('Madrid', 'Barça', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Graná'); function jornada( estosEquipos ) { var equiposAqui = new Array; var imprime = function( local, visitante, resultado ) { print("Impimiendo \n"); return "- " + local ...
JavaScript
#!/usr/bin/js //Declaracion de las variables correspondientes. var resultado = { "Prueba":{Granada:5,Sevilla:2}, "OPrueba":{Malaga:4,Granada:1}, "OOPrueba":{Malaga:0,Granada:10}, } print( " RESULTADOS DE LA JORNADA DE LIGA ") print( "----------------------------------") for ( var...
JavaScript
#!/usr/bin/node var db = require('nano')('https://srsudo:1234567@srsudo.iriscouch.com').use("clases"); //NO se puede poner group=true si es una funcion MAP. db.view('clases','vistazo', function( error, http_body ) { console.log(http_body); } );
JavaScript
// ==UserScript== // @name AAP-Nav-mio // @namespace http://geneura.org/projects/greasemonkey // @description Navegación por los ejercicios de AAP // @include http://geneura.ugr.es/~jmerelo/asignaturas/* // ==/UserScript== GM_log('Programa listo para comenzar'); //En primer...
JavaScript
//Nuevos argumentos var nuevoaleatoriox=Math.random(); var nuevoaleatorioy=Math.random(); var id = '851b2fb0a49764661764b0a8980018bb'; var db = require('nano')('http://localhost:5984/').use("geomio"); db.get( id, null, do_stuff ); // ------------------------------------------------------------------------------- func...
JavaScript
function startTime() { var hoy=new Date(); var h=hoy.getHours(); var m=hoy.getMinutes(); var s=hoy.getSeconds(); m=checkTime(m); s=checkTime(s); d=diferencia(s); document.getElementById('texto').innerHTML=h+":"+m+":"+s; document.getElementById('texto2').innerHTML="- "+h+"segundos"; t=setTimeout('startTime()',500); } //...
JavaScript
var miFuncion=function(){alert("hola mundo!");}; $(miFuncion);
JavaScript
$(function(){ $("li").prepend("Ingrediente: "); }); //$("li").text("<b>Some</b> new text.")
JavaScript
//Falta aún algunas funcionalidades.Lo único que hace es navegar en una única interacción por los títulos. //Tengo que preguntarle al profesor $(document).ready(function(){ // Codigo jquery del programa $("h3").each(function(i){ //var titulo = $(this).attr("title"); var titulo = $(this).text(); ...
JavaScript
/* *Realizar un script en jQuery que añada la clase "ext" y el texto "(enlace externo)" a todos los enlaces externos *de una página. */ var modificar=function(){ //Buscamos el enlace, que se correspondera con el tag "a" $('a').addClass("ext"); //Como en el ejercicio anterior, usamos prepend. Mas informacio...
JavaScript
var miFuncion=function(){alert("hola mundo!");}; $(miFuncion);
JavaScript
// JavaScript Document function menuSwitch(amenu){ clearInterval(refreshId); $(".menuitem").removeClass("active"); $(amenu).addClass("active"); } function loginsystem(){ var userid = $("#modlgn_username")[0].value; var password = $("#modlgn_passwd")[0].value; $.ajax({ type: 'POST', url:"resource/user...
JavaScript
/*! jQuery BindAll see: http://github.com/BorisMoore/jsviews */ /* * jQuery BindAll proposal, used in https://github.com/BorisMoore/jquery-ui/blob/grid/grid-spf-observable/grid-edit-tracker.html */ (function ( $, undefined ) { $.fn.bindAll = function bindAll( type, fn ) { // Bind a handler for multiple events on d...
JavaScript
/* * Date Format 1.2.3 * (c) 2007-2009 Steven Levithan <stevenlevithan.com> * MIT license * * Includes enhancements by Scott Trenda <scott.trenda.net> * and Kris Kowal <cixar.com/~kris.kowal/> * * Accepts a date, a mask, or a date and a mask. * Returns a formatted version of the given date. * The da...
JavaScript
/*! jsObservable: http://github.com/BorisMoore/jsviews */ /* * Subcomponent of JsViews * Data change events for data linking * * Copyright 2011, Boris Moore and Brad Olenick * Released under the MIT License. */ (function ( $, undefined ) { $.observable = function( data, options ) { return $.isArray( data ) ...
JavaScript
// JavaScript Document function mgItemList(data){ var item = $('#contentview'); item.empty(); item.setTemplateURL('admin/books.html'); for(var i=0; i<data.uiMenuItems.length; i++){ if(data.uiMenuItems[i].key =="TextBook"){ vlistedbooks = data.uiMenuItems[i].value; item.processTemplate(data.uiMenuI...
JavaScript
/*! JsViews v1.0pre: http://github.com/BorisMoore/jsviews */ /* * jQuery plugin providing interactive data-driven views, based on integration between jQuery Templates and jQuery Data Link. * Requires jquery.render.js (optimized version of jQuery Templates, for rendering to string) * See JsRender at http://github....
JavaScript
/*! JsRender v1.0pre - (jsrender.js version: does not require jQuery): http://github.com/BorisMoore/jsrender */ /* * Optimized version of jQuery Templates, fosr rendering to string, using 'codeless' markup. * * Copyright 2011, Boris Moore * Released under the MIT License. */ window.JsViews || window.jQuery && jQue...
JavaScript
// JavaScript Document function homeView(){ $('#searchoption').hide(); loadSetting(); loadDefaultItems(1000); loadOrderInfor(); if(userobj){ loginpanel.style.display = "none"; userpanel.style.display = "block"; if("Administrator" == userobj.roleName){ usermenu.style.display = "none"; ...
JavaScript
/// <reference path="jquery-1.2.6.js" /> /// <reference path="jquery.dimensions.js" /> (function($){ $.layoutEngine = function(layoutSettings){ $(window).resize(function(){ render(layoutSettings); }); // Render Layout r...
JavaScript
// JavaScript Document function menuSwitch(amenu){ clearInterval(refreshId); $(".menuitem").removeClass("active"); $(amenu).addClass("active"); } function loginsystem(){ var userid = $("#modlgn_username")[0].value; var password = $("#modlgn_passwd")[0].value; $.ajax({ type: 'POST', url:"resource/ac...
JavaScript
/*! jQuery BindAll see: http://github.com/BorisMoore/jsviews */ /* * jQuery BindAll proposal, used in https://github.com/BorisMoore/jquery-ui/blob/grid/grid-spf-observable/grid-edit-tracker.html */ (function ( $, undefined ) { $.fn.bindAll = function bindAll( type, fn ) { // Bind a handler for multiple events on d...
JavaScript
/* * Date Format 1.2.3 * (c) 2007-2009 Steven Levithan <stevenlevithan.com> * MIT license * * Includes enhancements by Scott Trenda <scott.trenda.net> * and Kris Kowal <cixar.com/~kris.kowal/> * * Accepts a date, a mask, or a date and a mask. * Returns a formatted version of the given date. * The da...
JavaScript
/*! jsObservable: http://github.com/BorisMoore/jsviews */ /* * Subcomponent of JsViews * Data change events for data linking * * Copyright 2011, Boris Moore and Brad Olenick * Released under the MIT License. */ (function ( $, undefined ) { $.observable = function( data, options ) { return $.isArray( data ) ...
JavaScript
// JavaScript Document function mgItemList(data){ var item = $('#contentview'); item.empty(); item.setTemplateURL('admin/books.html'); for(var i=0; i<data.uiMenuItems.length; i++){ if(data.uiMenuItems[i].key =="TextBook"){ vlistedbooks = data.uiMenuItems[i].value; item.processTemplate(data.uiMenuI...
JavaScript
/*! JsViews v1.0pre: http://github.com/BorisMoore/jsviews */ /* * jQuery plugin providing interactive data-driven views, based on integration between jQuery Templates and jQuery Data Link. * Requires jquery.render.js (optimized version of jQuery Templates, for rendering to string) * See JsRender at http://github....
JavaScript
/*! JsRender v1.0pre - (jsrender.js version: does not require jQuery): http://github.com/BorisMoore/jsrender */ /* * Optimized version of jQuery Templates, fosr rendering to string, using 'codeless' markup. * * Copyright 2011, Boris Moore * Released under the MIT License. */ window.JsViews || window.jQuery && jQue...
JavaScript
// JavaScript Document function homeView(){ $('#searchoption').hide(); loadSetting(); loadDefaultItems(1000); loadOrderInfor(); if(userobj){ loginpanel.style.display = "none"; userpanel.style.display = "block"; if("Administrator" == userobj.roleName){ usermenu.style.display = "none"; ...
JavaScript
/// <reference path="jquery-1.2.6.js" /> /// <reference path="jquery.dimensions.js" /> (function($){ $.layoutEngine = function(layoutSettings){ $(window).resize(function(){ render(layoutSettings); }); // Render Layout r...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML elem...
JavaScript
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete. The FileProgress class is not part of SWFUpload. */ /* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went w...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
function showStuff() { var req = new XMLHttpRequest(); req.open("GET", "/items", true); req.onreadystatechange = function() { if (req.readyState != 4) { return; } gotStuff(req.status, req.responseText); }; req.send(null); } function gotStuff(status, text) { if (status != 200) { window...
JavaScript
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
JavaScript
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
JavaScript
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
JavaScript
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
JavaScript
var attempts = 0; var timerHandle = setTimeout("checkIfHilighterLoaded()", 350); function checkIfHilighterLoaded(){ try{ dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); clearTimeout(timerHandle); } catch(...
JavaScript
/* Headline News Recent Post Script * by * http://wbw-wbw.blogspot.com * * * predefined variables are: * hn_url_blog * hn_jumlah_post * hn_warna_teks * hn_warna_latar * hn_backlink */ var hn_entries; var hn_feed; var hn_feed_url = hn_url_blog.match(/\/$/) ? hn_url_blog : hn_url_blog+"/";...
JavaScript
try { var pageTracker = _gat._getTracker("UA-18761191-1"); pageTracker._trackPageview(); } catch(err) {}
JavaScript
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
JavaScript
/* [EasyJForum] (C)2007 Hongshee Soft. $file: common.js $ $Date: 2007/11/30 $ */ var userAgent = navigator.userAgent.toLowerCase(); var is_firefox = (navigator.product == 'Gecko'); if (is_firefox) { if (userAgent.indexOf('firefox') > 0) is_firefox = userAgent.substr(userAgent.indexOf('firefox') + 8, 3)...
JavaScript
//////////////////// Agenda file for CalendarXP 8.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to minimize the download size. ///////////////////////////////////////////////////////////////////// //////////////////// Define agenda events //////////////////...
JavaScript
/////////////////// Plug-in file for CalendarXP 8.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to minimize the download size. ///////////////////////////////////////////////////////////////////// ///////////// Calendar Onchange Handler ////////////////////...
JavaScript
////////// JS theme file for PopCalendarXP 8.0 ///////// // This file is totally configurable. You may remove all the comments in this file to minimize the download size. // Since the plugins are loaded after theme config, sometimes we would redefine(override) some theme options there for convenience. //////////////...
JavaScript
/*********************************************************************************************************************** * KindEditor - WYSIWYG HTML Editor for Internet Copyright (C) 2006-2011 Longhao Luo * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft...
JavaScript
var JSON_URL = '../../php/file_manager_json.php'; var KE = parent.KindEditor; var id = KE.util.getParam(location.href, 'id'); var fileManagerJson = (typeof KE.g[id].fileManagerJson == 'undefined') ? JSON_URL : KE.g[id].fileManagerJson; var lang = KE.lang.plugins.file_manager; KE.event.ready(function() { var mo...
JavaScript
/*********************************************************************************************************************** * kindeditor扩展,添加flash和多媒体上传功能,相关资源文件在plugins_jxhl/下,升级kindeditor时请保留此js和plugins_jxhl/ * * @author huangwq * @licence http://www.kindsoft.net/license.php **********************************...
JavaScript
/* Yetii - Yet (E)Another Tab Interface Implementation http://www.kminek.pl/lab/yetii/ Copyright (c) 2007 Grzegorz Wojcik Code licensed under the BSD License: http://www.kminek.pl/bsdlicense.txt */ function Yetii() { this.defaults = { id: null, active: 1, timeout: null, interval: null, t...
JavaScript
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation th...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.03.3 // by Lokesh Dhakar - http://www.huddletogether.com // 5/21/06 // // For more information on this script, visit: // http://huddletogether.com/projects/lightbox2/ // // Licensed under the Creative Commons Attrib...
JavaScript
//////////////////// Agenda file for CalendarXP 7.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. ///////////////////////////////////////////////////////////////////// //////////////////// Define agenda events /////////////////////...
JavaScript
/////////////////// Plug-in file for CalendarXP 7.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. ///////////////////////////////////////////////////////////////////// ///////////// Calendar Onchange Handler ///////////////////////...
JavaScript
///////// JS theme file for PopCalendarXP 7.0 ///////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. // Since the plugins are loaded after theme config, sometimes we would redefine(override) some theme options there for convenience. /////////////////...
JavaScript
/* Yetii - Yet (E)Another Tab Interface Implementation http://www.kminek.pl/lab/yetii/ Copyright (c) 2007 Grzegorz Wojcik Code licensed under the BSD License: http://www.kminek.pl/bsdlicense.txt */ function Yetii() { this.defaults = { id: null, active: 1, timeout: null, interval: null, t...
JavaScript
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation th...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.03.3 // by Lokesh Dhakar - http://www.huddletogether.com // 5/21/06 // // For more information on this script, visit: // http://huddletogether.com/projects/lightbox2/ // // Licensed under the Creative Commons Attrib...
JavaScript
/* Yetii - Yet (E)Another Tab Interface Implementation http://www.kminek.pl/lab/yetii/ Copyright (c) 2007 Grzegorz Wojcik Code licensed under the BSD License: http://www.kminek.pl/bsdlicense.txt */ function Yetii() { this.defaults = { id: null, active: 1, timeout: null, interval: null, t...
JavaScript
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation th...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.03.3 // by Lokesh Dhakar - http://www.huddletogether.com // 5/21/06 // // For more information on this script, visit: // http://huddletogether.com/projects/lightbox2/ // // Licensed under the Creative Commons Attrib...
JavaScript
/* [EasyJForum] (C)2007 Hongshee Soft. $file: common.js $ $Date: 2007/11/30 $ */ var userAgent = navigator.userAgent.toLowerCase(); var is_firefox = (navigator.product == 'Gecko'); if (is_firefox) { if (userAgent.indexOf('firefox') > 0) is_firefox = userAgent.substr(userAgent.indexOf('firefox') + 8, 3)...
JavaScript
/* [EasyJForum] (C)2007 Hongshee Soft. $file: post.js $ $Date: 2007/11/30 $ */ var seqno = 1; var attachexts = new Array(); var attachfiles = new Array(); function deleteAttach(id) { deleteMediaFromEditor(id); $('attachbody').removeChild($('attach_' + id).parentNode.parentNode); if ($('attachbody')...
JavaScript
/* [EasyJForum] (C)2007 Hongshee Soft. $file: editor.js $ $Date: 2007/11/30 $ */ var editbox, editwin, editdoc; var editcss = null; var initialized = false; function setContent(text) { if(wysiwyg) { if(trim(text) == '' && !is_ie) { text = '<br/>'; } if(!initialized) { initEditDoc(); ...
JavaScript
/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt...
JavaScript
/* [EasyJForum] (C)2008 Hongshee Soft. $file: ajax.js $ $Date: 2008-04-08 $ */ var AjaxUrls = new Array(); function Ajax() { var aj = new Object(); aj.resultHandle = null; aj.targetUrl = ''; aj.XMLHttpRequest = createXMLHttpRequest(); aj.processHandle = function() { if(aj.XMLHttpRequest....
JavaScript
/* [EasyJForum] (C)2008 Hongshee Soft. $file: member.js $ $Date: 2008/04/09 $ */ function refreshVerifyCode(width,height) { $('verifycodeimage').innerHTML = '<img width="' + width + '" height="' + height + '" src="vcode" class="absmiddle"/>'; } function checkverifycode() { var verifycode = trim($('ver...
JavaScript
function htmlFilter(str) { return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/ /g, "&nbsp;").replace(/\"/g, "&quot;") } function isNumber(str) { return str != "" && !isNaN(str) } function isPositiveInteger(str) { return isNumber(str) && parseInt(str) > 0 } funct...
JavaScript
/* [EasyJForum] (C)2007 Hongshee Soft. $file: admin.js $ $Date: 2007-11-07 $ */ function toBreakWord(txt, size) { var tmpStr = txt; var result = ""; while(tmpStr.length > size) { result = result + tmpStr.substr(0, size) + "<br>"; tmpStr = tmpStr.substr(size, tmpStr.length); } result = resul...
JavaScript
/* moo.fx pack, effects extensions for moo.fx. by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE for more info visit (http://moofx.mad4milk.net). Friday, April 14, 2006 v 1.2.4 */ //smooth scroll fx.Scroll = Class.create(); fx.Scroll.prototype = Object.extend(new fx.Base(), { initialize: function(options) {...
JavaScript
/* moo.fx, simple effects library built with prototype.js (http://prototype.conio.net). by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE. for more info (http://moofx.mad4milk.net). Sunday, March 05, 2006 v 1.2.3 */ var fx = new Object(); //base fx.Base = function(){}; fx.Base.prototype = { setOptions: func...
JavaScript
/** * FusionCharts: Flash Player detection and Chart embedding. * Version: 1.1 (29th June, 2007) - Added Player detection, New conditional fixes for IE * * Morphed from SWFObject (http://blog.deconcept.com/swfobject/) under MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof ...
JavaScript
//////////////////// Agenda file for CalendarXP 7.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. ///////////////////////////////////////////////////////////////////// //////////////////// Define agenda events /////////////////////...
JavaScript
/////////////////// Plug-in file for CalendarXP 7.0 ///////////////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. ///////////////////////////////////////////////////////////////////// ///////////// Calendar Onchange Handler ///////////////////////...
JavaScript
///////// JS theme file for PopCalendarXP 7.0 ///////// // This file is totally configurable. You may remove all the comments in this file to shrink the download size. // Since the plugins are loaded after theme config, sometimes we would redefine(override) some theme options there for convenience. /////////////////...
JavaScript
'use strict'; var EditorState = { CLEAN:0, // NO CHANGES DIRTY:1, // UNSAVED CHANGES SAVE:2, // SAVE IN PROGRESS LOAD:3, // LOADING READONLY:4 }; google.load('picker', '1'); //gapi.load('drive-share'); angular.module('app', ['app.filters', 'app.services', 'app.directives']) .constant('saveInt...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; var directive = {}; var service = { value: {} }; var DEPENDENCIES = { 'angular.js': 'http://code.angularjs.org/angular-' + angular.version.full + '.min.js', ...
JavaScript