code
stringlengths
1
2.08M
language
stringclasses
1 value
/* 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 wh...
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
/** * add to body onLoad="autoindex('autoindex')" where "autoindex" is the id of the object where index will be created */ indexList = new Array(); function autoindex( elementId ) { //var element = document.getElementById(elementId); var bodyTag = document.getElementsByTagName("body"); var list = searchHeadl...
JavaScript
/** * add to body onLoad="lineNumbersToCode()" */ function lineNumbersToCode() { var items = document.getElementsByTagName("pre"); for( var i=0; i<items.length; i++) { if( items[i].className == "code") { addLineNumbers( items[i] ); } } } function addLineNumbers( element ) { var contents = element...
JavaScript
var $lang={ errAlertMsg: "Invalid date or the date out of range,redo or not?", aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"], aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se...
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'gb2312'}, {name:'zh-tw', charset:'GBK'} ]; var skinList = [ {name:'default', charset:'gb2312'}, {name:'whyGreen', charset:'gb2312'} ];
JavaScript
/* * jQuery Easing v1.1.1 - 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 */ jQ...
JavaScript
function getGwid(){ var spid = document.getElementById("spid").value; $.ajax({ type : "post", url : "<%=request.getContextPath() %>/cgateway.do", data : "action=findGatewayBySp&spid="+spid, datatype : "text", success : ...
JavaScript
//mobile String.prototype.IsMobile = function(){ var regexp = /^\d{11}$/; return regexp.test(this); } //number check String.prototype.IsNumberCheck = function(){ var regexp = /^\d{1,10}$/; return regexp.test(this); }
JavaScript
/* Copyright (c) 2007 Paul Bakaus ([email protected]) and Brandon Aaron ([email protected] || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses...
JavaScript
/* * Treeview 1.4 - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-li...
JavaScript
function form_submit(){ document.getElementById("login").submit(); } function form_reset(){ document.getElementById("login").reset(); } function reloadcode(){ var verify=document.getElementById('safecode'); verify.setAttribute('src','code.php?'+Math.random()); }
JavaScript
/* * jQuery UI Accordion 1.6 * * Copyright (c) 2007 Jörn Zaefferer * * http://docs.jquery.com/UI/Accordion * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.accordion.js 4876 2008-03-08 ...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
<script language="JavaScript" type="text/javascript"> <!-- // validateSignInInput function validateSignIn( form ) { var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/; var alertmsg = ""; var result = false; if ( form.usr.value == "" ) { alertmsg = "Username can't be blank."; } else if (for...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.05 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 3/18/11 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attribut...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 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"),...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.05 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 3/18/11 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attribut...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 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"),...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
/* begin Page */ /* Created by Artisteer v3.0.0.39952 jQuery(function(){jQuery('#art-page-background-glare').css('zoom',1)});*/ // css hacks (function($) { // fix ie blinking var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand; try { if (!!m) { m('B...
JavaScript
var timer = { minutes :0, seconds : 0, elm :null, samay : null, sep : ':', init : function(m,s,elm) { m = parseInt(m,10); s = parseInt(s,10); if(m < 0 || s <0 || isNaN(m) || isNaN(s)) { alert('Invalid Values'); return; } this.minutes = m; ...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ ~function(F){ //LRC歌词类 F.lyric = F.Class({ init : function (container, getpos, getlen){ this.container = F(container); //歌词外框对象 var st = this.container.node.style; ...
JavaScript
/**//**//**//**//**//**//* ** ================================================================================================== ** 类名:F.highlight ** 功能:语法高亮 ** 示例: --------------------------------------------------------------------------------------------------- 用法1:var ...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ //检测碰撞 //例如:F.iscross({x1:480,y1:0,x2:520,y2:40},{x1:480,y1:10,x2:40,y2:50}); F.iscross = function(o1,o2){ if(o1.x1==o2.x1&&o1.x2==o2.x2&&(o1.y1>o2.y1&&o1.y1<o2.y2||o1.y2>o2.y1&&o1...
JavaScript
/* @title: 图片缩放插件 @author: likaituan @date: 2011.8.1 */ function zoomImg(obj){ var img = F(obj).css("width:100%; height:100%;"), sbox = img.parent().hover(function(e){ mirror.show() && bigimg.src(img.attr('bigimg')) && ibox.show(); },function(e){ mirror.hide() && ibox.hide(); }).bind("mouse...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard = { version: "1.0.6", clients: {}, // registered upload clients on page, indexed by id moviePath: '/fw4/data/swf/copy.swf', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility ...
JavaScript
//弹出层函数 var fw_dialog = Fw.cc({ init : function(box, isstep){ this.isstep = isstep; this.x = "center"; this.y = "middle"; this.pos = 0; this.timer = null; this.time = 0; this.box = $(box); if(!this.box){ this.box = $(document.body).append("div"); } return this; }, //增加遮照功能 set...
JavaScript
~function(){ function gv_cnzz(of){ var es = document.cookie.indexOf(";",of); if(es==-1) es=document.cookie.length; return unescape(document.cookie.substring(of,es)); } function gc_cnzz(n){ var arg=n+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while(i<clen){ var j...
JavaScript
//绘图类 var fw_draw2 = function(canvas, param){ var vml = Fw.getparam(param, "fillcolor", "strokecolor", "strokeweight"); var wh = Fw.getparam(param,"width", "height"); if(Fw.iscanvas){ if(canvas.obj.tagName.toLowerCase()!="canvas"){ canvas = canvas.append("canvas").attr(wh); } var ctx = canvas.obj.ge...
JavaScript
//最小值 min : function(arr){ return Math.min.apply(null,arr); }, //最大值 max : function(arr){ return Math.max.apply(null,arr); }, //求和 sum : function(arr){ return new Function("return "+arr.join("+"))(); }, //字符串复制 repeat : function (str, times){ ...
JavaScript
[ { name:"手机", ename:"Mobile", open:true, nodes: [ { name:"诺基亚", ename:"Nokia", nocheck:true, nodes: [ { name:"C6(音乐版)", ename:"C6(Music)"}, { name:"X6(导航版)", ename:"X6(GPS)"}, { name:"5230(世博版)", ename:"5230(SB)"}, { name:"N97mini", ename:"N97mini"} ]}, { name:"三星",...
JavaScript
[ {key:"北京", items:[ {key:"北京市"}, {key:"东城"}, {key:"西城"}, {key:"崇文"}, {key:"宣武"}, {key:"朝阳"}, {key:"丰台"}, {key:"石景山"}, {key:"海淀"}, {key:"门头沟"}, {key:"房山"}, {key:"通州"}, {key:"顺义"}, {key:"昌平"}, {key:"大兴"}, {key:"平谷"}, {key:"怀柔"}, {key:"密云"}, {key:"延庆"} ]}, {k...
JavaScript
[ { text : "曹操", items : [ { text:"夏侯敦", wuli:96, zhili:70 }, { text:"夏侯渊", wuli:93, zhili:60 }, { text:"曹仁", wuli:90, zhili:82 }, { text:"曹操", wuli:87, zhili:96 }, { text:"乐进", wuli:83, zhili:56 }, { text:"曹洪", wuli:82, zhili:51 }, { text:"李典", wuli:78, zhili:81 }, { te...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ ~function(F){ //日历类 F.calendar = F.Class({ init : function (box){ F.css(F.data("img/calendar/calendar.css")); this.box = F(box).cls("F_calendar"); this.itemclick = n...
JavaScript
(function(ns, pt, Fw_map){ var _win = window; var _doc = document; //命名空间、唯一全局对象、构造器 var F = _win.$1stjs = function(v){ if(F.isfdom(v)){ return v; } var node = F.node(arguments.length>0?v:_doc.body); if(node){ var Class = function(){ this.isfdom = true; this.node = node; t...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ ~function(F){ //媒体播放类 F.player = { //初始化 init : function (obj,w,h){ this.box = F(obj) || F().append("div"); this.w=w||0; this.h=h||0; this.mp = {}; this....
JavaScript
var item = { init : function(dataUrl){ var box = F("panel"); F.get(dataUrl).call2json(function(json){ var data = [{cat_name:"root", cat_title:"Fw4.0API参考", items:json}]; this.tree = box.tags("ul").item(0).tree(data,{ catekey:"cat_title", catedes:"cat_name", itemkey:"name", it...
JavaScript
var item_dir = { init : function(dataUrl){ this.html = ""; this.lv = 0; this.idx = 1; F.get(dataUrl).call2json(function(json){ this.setCol(json); var box = F().append("div").ps().pos(10,2).html(this.html); var n = box.tags("a").len - 2; box.child().each(function(idx,fo){ idx<8 && fo.c...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ ~function(F){ //手风琴组件 F.accordion = F.Class({ init : function (box, ops){ this.box = F(box).border("#222"); ops = ops || {}; this.idx = ops.index || 0; this...
JavaScript
[ {key:"动画组件", icon:"../data/img/icon/widget.png 0 -768", items:[ {key:"简单动画", url:"anime/simple_anime.html"}, {key:"刮刮片", url:"anime/guaguapian.html"} ]}, {key:"拖动组件", icon:"../data/img/icon/widget.png 0 -720", items:[ {key:"简单拖动", url:"drag/simple_drag.html"}, {key:"调色器(滑动)", icon:"../data/img/ico...
JavaScript
/* @author : "likaituan", @email : "[email protected]", @version : "4.0", @date : "2010-09-05", @lastime : "2011-8-18" */ //组合结果数组 F.combine = function (a,n,t){ if (n==0) return [t]; var r = []; for(var i=0; i<=a.length-n; i++){ r = r.concat(arguments.callee(a.slice(i+1), n-1, t.concat(a[i]))); ...
JavaScript
(function($) { //Make nodes selectable by expression $.extend($.expr[':'], { draggable: "(' '+a.className+' ').indexOf(' ui-draggable ')" }); //Macros for external methods that support chaining var methods = "destroy,enable,disable".split(","); for(var i=0;i<methods.length;i++) { var cur = methods[i]...
JavaScript
(function($) { //If the UI scope is not availalable, add it $.ui = $.ui || {}; //Add methods that are vital for all mouse interaction stuff (plugin registering) $.extend($.ui, { plugin: { add: function(w, c, o, p) { var a = $.ui[w].prototype; if(!a.plugins[c]) a.plugins[c] = []; a.plugins...
JavaScript
/*----------------------------------------\ | Cross Browser Tree Widget 1.1 | |-----------------------------------------| | Created by Emil A. Eklund ([email protected]) | | For WebFX (http://webfx.eae.net/) | |-----------------------------------------| | This script is provided as is without | | any...
JavaScript
/** * JavaScript routines for Krumo * * @version $Id: krumo.js,v 1.1.2.2 2008/06/03 20:36:03 weitzman Exp $ * @link http://sourceforge.net/projects/krumo */ ///////////////////////////////////////////////////////////////////////////// /** * Krumo JS Class */ function krumo() { } // -- -- -- -- -- -- ...
JavaScript
function checkAll(checkbox){ var elems = document.getElementsByName(checkbox.name); i=0; while(el=elems[i++]){ el.checked = checkbox.checked; } } function editChecked(type,name,id){ if(document.getElementById("checkbox_"+type+"_"+id).checked){ var elems = document.getEle...
JavaScript
/** * Show/hide custom format sections on the date-time settings page. */ Drupal.behaviors.dateDateTime = function(context) { // Show/hide custom format depending on the select's value. $('select.date-format:not(.date-time-processed)', context).change(function() { $(this).addClass('date-time-processed').paren...
JavaScript
// $Id: date_popup.js,v 1.1.2.3 2009/01/12 17:23:25 karens Exp $ /** * Attaches the calendar behavior to all required fields */ Drupal.behaviors.date_popup = function (context) { for (var id in Drupal.settings.datePopup) { $('#'+ id).bind('focus', Drupal.settings.datePopup[id], function(e) { if (!$(this)...
JavaScript
/* jQuery Calendar v2.7 Written by Marc Grabanski ([email protected]) and enhanced by Keith Wood ([email protected]). Copyright (c) 2007 Marc Grabanski (http://marcgrabanski.com/code/jquery-calendar) Dual licensed under the GPL (http://www.gnu.org/licenses/gpl-3.0.txt) and CC (http://creativecommons....
JavaScript
// $Id: date_timezone.js,v 1.1.4.2.2.1 2008/06/20 12:25:30 karens Exp $ /** * Set the client's system time zone as default values of form fields. */ Drupal.setDefaultTimezone = function() { var dateString = Date(); // In some client environments, date strings include a time zone // abbreviation which can be in...
JavaScript
// $Id: popups.js,v 1.9.2.27 2009/03/11 22:17:43 starbow Exp $ /** * Popup Modal Dialog API * * Provide an API for building and displaying JavaScript, in-page, popups modal dialogs. * Modality is provided by a fixed, semi-opaque div, positioned in front of the page contents. * */ /** * Create the popups object...
JavaScript
<html> <head> # <script type="txt/javascript"> var persistmenu="yes" # # if (document.getElementById){ # document.write('<style type="text/css">\n') # document.write('.submenu{display: none;}\n') # document.write('</style>\n') # } # # function SwitchMenu(obj){ # if(document.getElementById){ # var el = document.getE...
JavaScript
function VerifyEmail(input) { email= input.value; if(email.indexOf('@',0) == -1 || email.indexOf(';',0) != -1 || email.indexOf(' ',0) != -1 || email.indexOf('/',0) != -1 || email.indexOf(';',0) != -1 || email.indexOf('<',0) != -1 || email.indexOf('>',0) != -1 || email.indexOf('*',0) != -1 || ema...
JavaScript
/** * @author [email protected] */ (function($){ // jQuery validate $.extend($.validator.messages, { required: "必填字段", remote: "请修正该字段", email: "请输入正确格式的电子邮件", url: "请输入合法的网址", date: "请输入合法的日期", dateISO: "请输入合法的日期 (ISO).", number: "请输入合法的数字", digits: "只能输入整数", creditcard: "请输入合法的信用...
JavaScript
/*! * MultiUpload for xheditor * @requires xhEditor * * @author Yanis.Wang<[email protected]> * @site http://xheditor.com/ * @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php) * * @Version: 0.9.2 (build 100505) */ var swfu,selQueue=[],selectID,arrMsg=[],allSize=0,uploadSize=0; f...
JavaScript
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ * $Rev: 2446 $ * *...
JavaScript
/** * @author Roger Wu */ /*@cc_on _d=document;eval('var document=_d')@*/ /*@cc_on eval((function(props) {var code = [];for (var i = 0,l = props.length;i<l;i++){var prop = props[i];window['_'+prop]=window[prop];code.push(prop+'=_'+prop);}return 'var '+code.join(',');})('document self top parent alert setInterval ...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. ...
JavaScript
if (!hs) { var hs = { // Language strings lang : { cssDirection: 'ltr', loadingText : '加载中...', loadingTitle : '点击取消', focusTitle : '点击前端显示', fullExpandTitle : '按F键以真实大小显示', creditsText : '', creditsTitle : '', previousText : '上一张', nextText : '下一张', moveText : '移动', closeText : '关闭', closeT...
JavaScript
/* * Mplayer */ (function($) { $.jPlayerCount = 0; var methods = { jPlayer: function(options) { $.jPlayerCount++; var config = { ready: null, cssPrefix: "jqjp", swfPath: "", quality: "high", width: 0, height: 0, top: 0, left: 0, position: "absolut...
JavaScript
sfHover = function() { var sfEls = document.getElementById("suckerfishmenu").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""...
JavaScript
/* * jQuery 1.2.6 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) * Rev: 5685 */ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e...
JavaScript
function pickstyle(whichstyle) { var expireDate = new Date() var expstring=expireDate.setDate(expireDate.getDate()+30) document.cookie = "litejazzstyle=" + whichstyle + "; expires="+expireDate.toGMTString() }
JavaScript
(function(){ //get the background-color for each tile and apply it as background color for the cooresponding screen $('.tile').each(function(){ var $this= $(this), page = $this.data('page-name'), bgcolor = $this.css('background-color'), textColor = $this.css('color');...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
$(document).ready(function(){ // first example $("#browser").treeview(); // second example $("#navigation").treeview({ persist: "location", collapsed: true, unique: true }); // third example $("#red").treeview({ animated: "fast", collapsed: true, unique: true, persist: "cookie", toggle: fun...
JavaScript
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit...
JavaScript
/* * jQuery-lazyload-any v0.1.6 * https://github.com/emn178/jquery-lazyload-any * * Copyright 2014, [email protected] * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ ;(function($, window, document, undefined) { var KEY = 'jquery-lazyload-any'; var EVENT = 'appear'; var SELEC...
JavaScript
(function(root, factory) { if(typeof exports === 'object') { module.exports = factory(); } else if(typeof define === 'function' && define.amd) { define('salvattore', [], factory); } else { root.salvattore = factory(); } }(this, function() { /*! matchMedia() pol...
JavaScript
/* StreamWave Flash Title Widget _ Javascript for Embedding 2008. 10. 29. scripted by MinsangK (http://minsangk.com) */ // main function function showTitle(srcUrl, srcFilename, width, height, titleStr, linkStr, hAlign, tColor) { var str = "<embed id=\"viewTitle\" name=\"viewTitle\" type=\"appli...
JavaScript
$(function() { // Side Bar Toggle $('.hide-sidebar').click(function() { $('#sidebar').hide('fast', function() { $('#content').removeClass('span9'); $('#content').addClass('span12'); $('.hide-sidebar').hide(); $('.show-sidebar').show(); }); }); $('.show-sidebar').click(function() { $('...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.extend...
JavaScript
var FormValidation = function () { var handleValidation1 = function() { // for more info visit the official plugin documentation: // http://docs.jquery.com/Plugins/Validation var form1 = $('#form_sample_1'); var error1 = $('.alert-error', form1); var succes...
JavaScript
(function($) { var aux = { // navigates left / right navigate : function( dir, $el, $wrapper, opts, cache ) { var scroll = opts.scroll, factor = 1, idxClicked = 0; if( cache.expanded ) { scroll = 1; // scroll is always 1 in full mode factor = 3; // the width...
JavaScript
/** * LavaLamp - A menu plugin for jQuery with cool hover effects. * @requires jQuery v1.1.3.1 or above * * http://gmarwaha.com/blog/?p=7 * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http:/...
JavaScript
$(document).ready(function() { $('.single-item').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 1, slidesToScroll: 1 }); $('.multiple-items').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 3, slides...
JavaScript
/** * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name wa...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and delta...
JavaScript
/* Plugin: 3D Tag Sphere Version: 0.1 Author: Ian George Website: http://www.iangeorge.net Tools: Emacs, js2-mode Tested on: IE6, IE7, IE8, Firefox 3.6 Linux, Firefox 3.5 Windows, Chrome Linux / Windows Requirements: Optional jquery.mousewheel for zooming Description: 3d tag cloud, rotates with the mouse and zooms in ...
JavaScript
AmCharts.themes.black = { themeName: "black", AmChart: { color: "#e7e7e7" }, AmCoordinateChart: { colors: ["#de4c4f", "#d8854f", "#eea638", "#a7a737", "#86a965", "#8aabb0", "#69c8ff", "#cfd27e", "#9d9888", "#916b8a", "#724887", "#7256bc"] }, AmStockChart: { colors: ["#de4c4f", "#d8854f", "#...
JavaScript
AmCharts.themes.dark = { themeName: "dark", AmChart: { color: "#e7e7e7" }, AmCoordinateChart: { colors: ["#ae85c9", "#aab9f7", "#b6d2ff", "#c9e6f2", "#c9f0e1", "#e8d685", "#e0ad63", "#d48652", "#d27362", "#495fba", "#7a629b", "#8881cc"] }, AmStockChart: { colors: ["#639dbd", "#e8d685", "#ae...
JavaScript
AmCharts.themes.light = { themeName:"light", AmChart: { color: "#000000" }, AmCoordinateChart: { colors: ["#67b7dc", "#fdd400", "#84b761", "#cc4748", "#cd82ad", "#2f4074", "#448e4d", "#b7b83f", "#b9783f", "#b93e3d", "#913167"] }, AmStockChart: { colors: ["#67b7dc", "#fdd400", "#84b761", "#c...
JavaScript
AmCharts.themes.chalk = { themeName: "chalk", AmChart: { color: "#e7e7e7", fontFamily: "Covered By Your Grace", fontSize: 18, handDrawn: true }, AmCoordinateChart: { colors: ["#FFFFFF", "#e384a6", "#f4d499", "#4d90d6", "#c7e38c", "#9986c8", "#edf28c", "#ffd1d4", "#5ee1dc", "#b0eead", "#fef8...
JavaScript
// (c) ammap.com | SVG (in JSON format) map of Belgium // areas: {id:"BE-VAN"},{id:"BE-BWR"},{id:"BE-BRU"},{id:"BE-WHT"},{id:"BE-WLG"},{id:"BE-VLI"},{id:"BEW-LX"},{id:"BE-WNA"},{id:"BE-VOV"},{id:"BE-VBR"},{id:"BE-VWV"} AmCharts.maps.belgiumLow={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator",...
JavaScript
AmCharts.mapTranslations.si = {"Sri Lanka":"ශ්‍රී ලංකාව"}
JavaScript
AmCharts.mapTranslations.ku = {"Africa":"Cîhan","Turkey":"Tirkiye"}
JavaScript
AmCharts.mapTranslations.kok = {"India":"भारत"}
JavaScript
AmCharts.mapTranslations.kl = {"Greenland":"Kalaallit Nunaat"}
JavaScript
AmCharts.mapTranslations.ha = {"Ghana":"Gaana","Niger":"Nijer","Nigeria":"Nijeriya"}
JavaScript
AmCharts.mapTranslations.dv = {"Maldives":"ދިވެހި ރާއްޖެ"}
JavaScript
AmCharts.mapTranslations.tg = {"Afghanistan":"Афғонистан","Tonga":"Тонга"}
JavaScript
AmCharts.mapTranslations.syr = {"Syria":"ܣܘܪܝܝܐ"}
JavaScript
AmCharts.mapTranslations.rw = {"Tonga":"Igitonga"}
JavaScript
AmCharts.mapTranslations.kk = {"Kazakhstan":"Қазақстан","Tonga":"Тонга"}
JavaScript
AmCharts.mapTranslations.tt = {"Russia":"Россия"}
JavaScript