code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * */ //StringBuffer function StringBuffer() { this.buffer = []; } StringBuffer.prototype.append = function append(string) { this.buffer.push(string); return this; }; StringBuffer.prototype.toString = function toString() { return this.buffer.join(""); }; function slideFileTablaGes...
JavaScript
/** * */ (function($){ $.fn.opcionDefecto1 = function() { // var intAltoDivOpcionDefecto1 = 1.2; // var intPaddingTopDivOpcionDefecto1 = 0.1; // var intEfectoDivOpcionBotonDefecto1 = 0.1; var strFondoDivOpcionDefecto1 = "../../imagenes/jquery/ui-bg_glass_75_ecece9_1x400.png"; var strFondoD...
JavaScript
/** * */ (function($){ $.fn.formularioDefecto1 = function() { for ( var i = 0; i < this.length; i++) { var objDivFormularioDefecto1 = $(this[i]); objDivFormularioDefecto1.addClass("divFormularioDefecto1"); //objDivFormularioDefecto1.children("form").children("div").each(function(){ objD...
JavaScript
<!-- self.onError=null; currentX = currentY = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1 : 0; IE = (document.all) ? 1: 0; function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX = self....
JavaScript
<!-- function $Nav(){ if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return "OT"; } function $Obj(objname){ return document.getElementById(objname); } function ShowColor(){ if(document.all){ var posL...
JavaScript
var ie = document.all != null; var moz = !ie && document.getElementById != null && document.layers == null; /* * Extends the event object with srcElement, cancelBubble, returnValue, * fromElement and toElement */ function extendEventObject() { Event.prototype.__defineSetter__("returnValue", function (b) { ...
JavaScript
<!-- function CheckSubmit() { return true; } -->
JavaScript
<!-- function Nav(){ if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return "OT"; } function MyObj(oid) { return document.getElementById(oid); } function ShowHide(objname) { var obj = MyObj(objname); ...
JavaScript
// JavaScript Document function ShowHide2(objname){ var obj = $Obj(objname); if(obj.style.display != 'block'){ obj.style.display = 'block' } else{ obj.style.display = 'none'; } }
JavaScript
<!-- self.onError=null; currentX = currentY = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1 : 0; IE = (document.all) ? 1: 0; function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX...
JavaScript
var ie = document.all != null; var moz = !ie && document.getElementById != null && document.layers == null; /* * Extends the event object with srcElement, cancelBubble, returnValue, * fromElement and toElement */ function extendEventObject() { Event.prototype.__defineSetter__("returnValue", function (b) { ...
JavaScript
<!-- function CheckSubmit() { return true; } -->
JavaScript
var MenuWidth = 120; var ItemHeight = 16; var ItemNumber = 0; function CurNav() { if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; else return 'OT'; } function InsertHtm(op,code,isStart) { if(CurNav()=='IE') { ...
JavaScript
<!-- function showHide(objname) { //只对主菜单设置cookie var obj = document.getElementById(objname); if(objname.indexOf('_1')<0 || objname.indexOf('_10')>0) { if(obj.style.display == 'block' || obj.style.display =='') obj.style.display = 'none'; else obj.style.display = 'block'; return true; } ...
JavaScript
/** * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. * @requires jQuery v1.2 or above * * http://gmarwaha.com/jquery/jcarousellite/ * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org...
JavaScript
/* innerhtml.js * Copyright Ma Bingyao <andot@ujn.edu.cn> * Version: 1.9 * LastModified: 2006-06-04 * This library is free. You can redistribute it and/or modify it. * http://www.coolcode.cn/?p=117 */ var global_html_pool = []; var global_script_pool = []; var global_script_src_pool = []; var global_lock_pool =...
JavaScript
function showtab(btnid,tabid,tabnumber) { for (i = 1;i<=tabnumber;i++) { document.getElementById(tabid+"_btn"+i).className = "tabpane"; document.getElementById(tabid+"_sub"+i).className = "hide"; } document.getElementById(tabid+"_btn"+btnid).className = "select"; document.getElementById(tabid+"_sub"+btnid).cla...
JavaScript
/* innerhtml.js * Copyright Ma Bingyao <andot@ujn.edu.cn> * Version: 1.9 * LastModified: 2006-06-04 * This library is free. You can redistribute it and/or modify it. * http://www.coolcode.cn/?p=117 */ var global_html_pool = []; var global_script_pool = []; var global_script_src_pool = []; var global_lock_pool =...
JavaScript
/* * jQuery UI Resizable * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.extend({}, $.ui.mouse, { init: fu...
JavaScript
/* * jQuery UI Draggable * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.extend({}, $.ui.mouse, { init: fu...
JavaScript
var cssdropdown={ disappeardelay: 250, disablemenuclick: false, enableswipe: 1, enableiframeshim: 1, dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, swipetimer: undefined, bottomclip:0, getposOffset:function(what, offsettype){ var totaloffset=(offsettype=="left")? what...
JavaScript
if (typeof(SiteBot) === 'undefined') { var SiteBot = { isTrackExisted:false }; }; (function(){ if (SiteBot.isTrackExisted) { return; }; SiteBot.isTrackExisted = true; /* if no referrer existed, don't do anything */ var from_sitebot = ''; var sitebot_cookie_name ...
JavaScript
/* Cookie Plug-in This plug in automatically gets all the cookies for this site and adds them to the post_params. Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params. The cookies will override any other post params with the same name. */ var SWF...
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
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over a...
JavaScript
<!-- -->
JavaScript
<!-- var curtable = 'diggarea'; var lasttable = 'diggarea'; function resetTabs(t) { var alltable = 'diggarea,memberarea,feedbackarea'; var tbs = alltable.split(','); for(var i=0;i<tbs.length;i++) { if(tbs[i]==curtable) continue; $DE(tbs[i]).style.display = 'none'; $DE(tbs[i]+'_t').cla...
JavaScript
function showtab(btnid,tabid,tabnumber) { for (i = 1;i<=tabnumber;i++) { document.getElementById(tabid+"_btn"+i).className = "tabpane"; document.getElementById(tabid+"_sub"+i).className = "hide"; } document.getElementById(tabid+"_btn"+btnid).className = "select"; document.getElementById(tabid+"_sub"+btnid).cla...
JavaScript
/*Copyright Mihai Bazon, 2002, 2003|http://dynarch.com/mishoo/ */ Calendar = function (mondayFirst, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = on...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKRegexLib = oEditor.FCKRegexLib ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialo...
JavaScript
var oEditor = window.parent.InnerDialogLoaded() ; var FCK = oEditor.FCK ; window.onload = function() { oEditor.FCKLanguageManager.TranslatePage(document) ; window.parent.SetOkButton( true ) ; } function Ok() { var sLan = GetE('codeLan').value; var sTxt = GetE('codeTxt').value; if( sTxt.length> 0...
JavaScript
// Automatically detect the correct document.domain (#123). (function() { var d = document.domain ; while ( true ) { // Test if we can access a parent property. try { var test = window.parent.document.domain ; break ; } catch( e ) {} // Remove a domain part: www.mytest.example.com...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialogTabChange( tabCode ) { //ShowE('divIn...
JavaScript
var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKConfig = oEditor.FCKConfig ; var FCKTools = oEditor.FCKTools ; // Function called when a dialog tag is selected. function OnDialogTabChange( tabCode ) { //ShowE('divIn...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
FCKConfig.CustomConfigurationsPath = '' ; FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; FCKConfig.EditorAreaStyles = '' ; FCKConfig.ToolbarComboPreviewCSS = '' ; FCKConfig.DocType = '' ; FCKConfig.BaseHref = '' ; FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/' ; FCKConfig....
JavaScript
var timerlen = 5; var slideAniLen = 250; var timerID = new Array(); var startTime = new Array(); var obj = new Array(); var endHeight = new Array(); var moving = new Array(); var dir = new Array(); function slidedown(objname){ if(moving[objname]) return; if(document.getEle...
JavaScript
function onlyNumbers(evt) { var e = event || evt; // for trans-browser compatibility var charCode = e.which || e.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } function tblshowhide(id, imgid, url) { if(document.getElementById(id)...
JavaScript
function ajaxSlide(id, url){ $.get(url, function(data) { if(document.getElementById(id).style.display == 'none') { document.getElementById(id).innerHTML = data; $("#"+id).slideDown(500); } else { $("#"+id).slideUp(500, function() { document.getElementById(id).innerHTML = data; $("#"...
JavaScript
(function($) { $.fn.paginate = function(options) { var opts = $.extend({}, $.fn.paginate.defaults, options); return this.each(function() { $this = $(this); var o = $.meta ? $.extend({}, opts, $this.data()) : opts; var selectedpage = o.start; $.fn.draw(o,$this,selectedpage); }); }; var ou...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Contributors : * * Michael Hurni <michael.hurni@gmail.com> * * This program is free software; you can redistribute it and/or modify it under the...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Developers: * Fernando M.A.d.S. <fermads@gmail.com> * Michael Hurni <michael.hurni@gmail.com> * Contributors: * Martin D. Kirk * * This pr...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Developers: * Fernando M.A.d.S. <fermads@gmail.com> * Michael Hurni <michael.hurni@gmail.com> * Contributors: * Martin D. Kirk * * This pr...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2006 Fernando M.A.d.S. <fermads@gmail.com> * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by ...
JavaScript
/* * CodePress regular expressions for C# syntax highlighting * By Edwin de Jonge */ Language.syntax = [ // C# { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(abstract|a...
JavaScript
/* * CodePress regular expressions for PHP syntax highlighting */ // PHP Language.syntax = [ { input : /(&lt;[^!\?]*?&gt;)/g, output : '<b>$1</b>' }, // all tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags { input : /(&lt;script.*?&gt;)(.*?)...
JavaScript
/* * CodePress regular expressions for Perl syntax highlighting * By J. Nick Koston */ // Perl Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /([\$\@...
JavaScript
/* * CodePress regular expressions for ASP-vbscript syntax highlighting */ // ASP VBScript Language.syntax = [ // all tags { input : /(&lt;[^!%|!%@]*?&gt;)/g, output : '<b>$1</b>' }, // style tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // script ta...
JavaScript
/* * CodePress regular expressions for Java syntax highlighting */ // Java Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>'}, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote { input : /\b(abstract|continue|for|new|swi...
JavaScript
/* * CodePress regular expressions for ASP-vbscript syntax highlighting */ // ASP VBScript Language.syntax = [ // all tags { input : /(&lt;[^!%|!%@]*?&gt;)/g, output : '<b>$1</b>' }, // style tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // script ta...
JavaScript
/* * CodePress regular expressions for Text syntax highlighting */ // plain text Language.syntax = [] Language.snippets = [] Language.complete = [] Language.shortcuts = []
JavaScript
/* * CodePress regular expressions for HTML syntax highlighting */ // HTML Language.syntax = [ { input : /(&lt;[^!]*?&gt;)/g, output : '<b>$1</b>' }, // all tags { input : /(&lt;a .*?&gt;|&lt;\/a&gt;)/g, output : '<a>$1</a>' }, // links { input : /(&lt;img .*?&gt;)/g, output : '<big>$1</big>' }, // images { inpu...
JavaScript
/* * CodePress regular expressions for SQL syntax highlighting * By Merlin Moncure */ // SQL Language.syntax = [ { input : /\'(.*?)(\')/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|c...
JavaScript
/* * CodePress regular expressions for XSL syntax highlighting * By RJ Bruneel */ Language.syntax = [ // XSL { input : /(&lt;[^!]*?&gt;)/g, output : '<b>$1</b>' // all tags },{ input : /(&lt;a.*?&gt;|&lt;\/a&gt;)/g, output : '<a>$1</a>' // links },{ input : /(&lt;img .*?&gt;)/g, output : '<big>$1</big>' //...
JavaScript
/* * CodePress regular expressions for CSS syntax highlighting */ // CSS Language.syntax = [ { input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values { input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys { input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters ...
JavaScript
/* * CodePress regular expressions for generic syntax highlighting */ // generic languages Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(abstract|co...
JavaScript
/* * CodePress regular expressions for JavaScript syntax highlighting */ // JavaScript Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(break|continue...
JavaScript
/* * CodePress regular expressions for Perl syntax highlighting */ // Ruby Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /([\$\@\%]+)([\w\.]*)/g, output...
JavaScript
/* * TRAXIS Publisher intercepting proxy server by wouterlucas.com * * Copyright (c) 2012 Wouter-lucas van Boesschoten * * 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 restrict...
JavaScript
/* Copyright (C) 2011 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 in writing, softwa...
JavaScript
(function(window) { var ORIGIN_ = location.protocol + '//' + location.host; function SlideController() { this.popup = null; this.isPopup = window.opener; if (this.setupDone()) { window.addEventListener('message', this.onMessage_.bind(this), false); // Close popups if we reload the main window. win...
JavaScript
/* * Hammer.JS * version 0.4 * author: Eight Media * https://github.com/EightMedia/hammer.js */ function Hammer(element, options, undefined) { var self = this; var defaults = { // prevent the default event or not... might be buggy when false prevent_default : false, css_hacks ...
JavaScript
/** * @authors TODO * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; this.container = el || document....
JavaScript
require(['order!../slide_config', 'order!modernizr.custom.45394', 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 'order!slide-deck'], function(someModule) { });
JavaScript
var SLIDE_CONFIG = { // Slide settings settings: { title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs', subtitle: '', useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify: true, // Default: true enableSlideAreas:...
JavaScript
/* * Copyright 2011 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
/* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2...
JavaScript
/* * Copyright 2011 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 2011 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 2011 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 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
var Ajax; if (Ajax && (Ajax != null)) { Ajax.Responders.register({ onCreate: function() { if($('spinner') && Ajax.activeRequestCount>0) Effect.Appear('spinner',{duration:0.5,queue:'end'}); }, onComplete: function() { if($('spinner') && Ajax.activeRequestCount==0) Effect.Fad...
JavaScript
/* * AnythingSlider Slide FX 1.5.7 for AnythingSlider v1.7.11+ * By Rob Garrison (aka Mottie & Fudgey) * Dual licensed under the MIT and GPL licenses. */ (function($) { $.fn.anythingSliderFx = function(effects, options){ // variable sizes shouldn't matter - it's just to get an idea to get the elements o...
JavaScript
/* AnythingSlider v1.7.12 Original by Chris Coyier: http://css-tricks.com Get the latest version: https://github.com/ProLoser/AnythingSlider To use the navigationFormatter function, you must have a function that accepts two paramaters, and returns a string of HTML text. index = integer index (1 based);...
JavaScript
var $ = jQuery.noConflict(); $(document).ready(function () { $('#nav li').hover( function () { //show its submenu $('ul', this).slideDown(100); }, function () { //hide its submenu $('ul', this).slideUp(100); } ); });
JavaScript
// ColorBox v1.3.19 - jQuery lightbox plugin // (c) 2011 Jack Moore - jacklmoore.com // License: http://www.opensource.org/licenses/mit-license.php (function ($, document, window) { var // Default settings object. // See http://jacklmoore.com/colorbox for details. defaults = { transitio...
JavaScript
/* * AnythingSlider Video Controller 1.0 beta for AnythingSlider v1.6+ * By Rob Garrison (aka Mottie & Fudgey) * Dual licensed under the MIT and GPL licenses. */ (function($) { $.fn.anythingSliderVideo = function(options){ //Set the default values, use comma to separate the settings, example: var def...
JavaScript
/* Created 09/27/09 Questions/Comments: jorenrapini@gmail.com COPYRIGHT NOTICE Copyright 2009 Joren Rapini */ $(document).ready(function(){ // Place ID's of all required fields here. required = ["nombre", "apellido", "email", "comentario"]; // If using an ID other than #email or #er...
JavaScript
/* * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php * * Uses the built In easIng capabilities added In jQuery 1.1 * to offer multiple easIng options * * Copyright (c) 2007 George Smith * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */ //...
JavaScript
$(document).ready(function(){ $(".ie").load("js/ie.html"); // Load the IE warning into a div with a class of ie // Contact form $("form#contactform").submit(function() { //Setup any needed variables var input_name = $('#name').val(), input_email = $('#email').val(), input_subject = $('#su...
JavaScript
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
JavaScript
$(document).ready(function () { $(function () { $('#img_rank').smallslider(); }); });
JavaScript
$(document).ready(function () { //x上限,y下限 var x = 10, y = 24; var color_arr = Array("#ff0000", "#bc66d5", "#33cc33", "#0066cc", "#ff9966", "#999999", "#cc6699", "#dd3333", "#bc0033", "#006699", "#333333", "#9981dd", "#ff66cc", "#000099", "#660066", "#bc6666", "#ff66cc", "#666699", "#990066", "#669900");...
JavaScript

JavaScript
$(document).ready(function () { });
JavaScript
$(document).ready(function () { glInitOption($("#product_category").get(0), gvProductCategory, ""); $("#frm_uploadproduct").submit(function () { if ($("#txtProductName").val() == "") { alert("产品名称不能为空!"); return false; } if ($("#txtApproveNumber").va...
JavaScript
$(document).ready(function () { });
JavaScript
$(document).ready(function () { $("#btnAdminLogin").click(function () { Login(); }); $(document).keyup(function (event) { if (event.keyCode == 13) { Login(); } }); }); function Login() { if ($("#txtUserName").val() == "") { alert...
JavaScript
$(document).ready(function () { /* base ----------------------------------------------------------*/ $('a').focus(function () { $(this).blur(); }); /* menu click ----------------------------------------------------------*/ $(".stitle").click(function () { $("u...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript