code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
/** * jQuery.timers - Timer abstractions for jQuery * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com) * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/). * Date: 2009/10/16 * * @author Blair Mitchelmore * @version 1.2 * **/ jQuery.fn.extend({ everyTime: function(interva...
JavaScript
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com //** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/ //** Menu created: Nov 12, 2008 //** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level...
JavaScript
/** * jQuery.fn.dualSlider - Dual sliders, why not? * Date: June 2010 * * @author Rob Phillips (Front End Developer - Hugo & Cat - http://www.hugoandcat.com) * @version 0.3 * @web http://www.hugoandcat.com/DualSlider/index.html * * Requirements: * jquery.1.3.2.js - http://jquery.com/ * jquery.easing.1.3.js -...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
/** * jQuery.timers - Timer abstractions for jQuery * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com) * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/). * Date: 2009/10/16 * * @author Blair Mitchelmore * @version 1.2 * **/ jQuery.fn.extend({ everyTime: function(interva...
JavaScript
// Firefox about:config // network.proxy.autoconfig_url=file:///sdcard/archive/android.pac # on android // network.proxy.autoconfig_url=file://E:/workspace/rogerxu-hg/rules/android.pac # on windows // network.proxy.type=0 # Direct connection, no proxy. // network.proxy.type=1 # Manual proxy configuration. // n...
JavaScript
var hosts = { 'blacklist': '0.0.0.0', '*.google.cn': '203.208.46.92', 'www.google.com': '203.208.46.180', 'mail.google.com': '74.125.235.150', '*.mail.google.com': '74.125.235.125', '*.google.com': '203.208.46.128', '*.appspot.com': '203.208.46.180', '*.blogger.com': '74.125.71.191', ...
JavaScript
var templateString = "\ # Copyright (c) 1993-2009 Microsoft Corp.;\ #;\ # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.;\ #;\ # This file contains the mappings of IP addresses to host names. Each;\ # entry should be kept on an individual line. The IP address should;\ # be placed in the first column ...
JavaScript
(function (window, undefined) { "use strict"; if (typeof window.utils !== "object" && typeof window.utils !== "function") { window.utils = {}; } /** * Determines whether its argument is a number. * * @param {any} value - The value to be tested. * @return true if ...
JavaScript
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function f() { log.history = log.history || []; log.history.push(arguments); if (this.console) { var args = arguments; var newarr; try { args....
JavaScript
(function(jQuery, window, document, undefined) { function decodeUrl(encoded) { var src = decodeURIComponent(encoded); src = src.replace(/\+/g, " "); // "+" => " " return src; } function addLink(url, title, quality, type) { // format link html var template ...
JavaScript
var templateString = "\ 127.0.0.1 localhost;\ ::1 localhost;\ ;\ #xxx.xxx.xxx.xxx www.server-domain.com # server;\ #208.67.222.222 resolver1.opendns.com #OpenDNS;\ #208.67.220.220 resolver2.opendns.com #OpenDNS;\ #8.8.8.8 google-public-dns-a.google.com;\ #168.95.1.1 dns.hin...
JavaScript
/* configuration - type object that contains the following fields: data - object containing local data to be used for the chart (this OR 'url' to be supplied) url - url from which data will be fetched for the chart (this OR 'data' to be supplied) title - id of an ...
JavaScript
if (!window['console']) { window.console = {}; var methods = ['log', 'debug', 'info', 'warn', 'error']; for (var i = 0; i < methods.length; i++) { var method = methods[i]; window.console[method] = function() { // empty }; } }
JavaScript
// namespace if (window.demo === undefined) { var demo = {}; } demo.mapping = {}; /** * get mapped value */ demo.mapping.getMappedValue = function(value, mapping, defaultValue) { var key = value + ""; var mappedValue = mapping[key]; if (mappedValue === undefined) { mappedValue ...
JavaScript
//---------------------------------------------------------------------------- dojo.require("dijit.dijit"); dojo.require("dojo.data.ItemFileWriteStore"); dojo.require("dojox.data.AndOrWriteStore"); dojo.require("dojox.grid.cells.dijit"); dojo.require("dojox.grid.EnhancedGrid"); dojo.require("dojox.grid.enhanced.p...
JavaScript
// namespace if (window.demo === undefined) { var demo = {}; } demo.utils = {}; /** * * @param {Object} value */ demo.utils.isNumber = function(value) { return (typeof value === "number") && isFinite(value); }; /** * * @param {Object} value */ demo.utils.toInt = function(value) { ...
JavaScript
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function(){ log.history = log.history || []; // store logs to an array for reference log.history.push(arguments); if(this.console) { arguments.callee = arguments.callee.caller; ...
JavaScript
dojo.require("dojo.parser"); dojo.require("dojo.data.ItemFileWriteStore"); dojo.require("dojo.date.locale"); dojo.require("dijit.dijit"); // optimize: load dijit layer dojo.require("dijit.ColorPalette"); dojo.require("dijit.Dialog"); dojo.require("dijit.Editor"); dojo.require("dijit.InlineEditBox"); dojo.requ...
JavaScript
dojo.provide("dojox.grid.cells.dijit"); dojo.require("dojox.grid.cells"); // TODO: shouldn't it be the test file's job to require these modules, // if it is using them? Most of these modules aren't referenced by this file. dojo.require("dijit.form.DateTextBox"); dojo.require("dijit.form.TimeTextBox"); dojo.require(...
JavaScript
dojo.provide("dojox.charting.widget.Legend"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dojox.lang.functional.array"); dojo.require("dojox.lang.functional.fold"); dojo.declare("dojox.charting.widget.Legend", [dijit._Widget, dijit._Templated], { // summary: A legend for a chart. ...
JavaScript
dojo.provide("dojox.data.AndOrWriteStore"); dojo.require("dojox.data.AndOrReadStore"); dojo.declare("dojox.data.AndOrWriteStore", dojox.data.AndOrReadStore, { constructor: function(/* object */ keywordParameters){ // keywordParameters: {typeMap: object) // The structure of the typeMap object is as follows:...
JavaScript
dojo.provide("dojox.data.AndOrReadStore"); dojo.require("dojo.data.util.filter"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojo.date.stamp"); dojo.declare("dojox.data.AndOrReadStore", null,{ // summary: // AndOrReadStore uses ItemFileReadStore as a base, modifying only the query (_fetchIte...
JavaScript
//Declare out the name of the test module to make dojo's module loader happy. dojo.provide("dojox.data.tests.AndOrWriteStore"); dojo.require("dojox.data.AndOrWriteStore"); doh.register("dojox.data.tests.AndOrWriteStore", [ function simpleSyncTest(doh) { doh.assertTrue(true); doh.assertTrue(1...
JavaScript
dojo.provide("dojox.widget.DataPresentation"); dojo.experimental("dojox.widget.DataPresentation"); dojo.require("dojox.grid.DataGrid"); dojo.require("dojox.charting.Chart2D"); dojo.require("dojox.charting.widget.Legend"); dojo.require("dojox.charting.action2d.Tooltip"); dojo.require("dojox.charting.action2d.Hig...
JavaScript
dojo.provide("demo.data.CustomQueryStore"); dojo.require("dojox.data.QueryReadStore"); dojo.declare("demo.data.CustomQueryStore", dojox.data.QueryReadStore, { // summary: // This class provides a store that is mainly intended to be used // for loading data dynamically from the server, us...
JavaScript
dojo.provide("demo.grid.FixedTreeGrid"); dojo.require("dojox.grid.TreeGrid"); dojo.declare("demo.grid.FixedTreeGrid", dojox.grid.TreeGrid, { /* @Override */ getItem: function(/*integer|Array|String*/ idx) { // summary: // Overridden to fix a treeModel.childrenAttrs bug. v...
JavaScript
dojo.provide("demo.grid.CustomTreeGrid"); dojo.require("demo.grid.FixedTreeGrid"); dojo.declare("demo.grid.CustomTreeGrid", demo.grid.FixedTreeGrid, { // summary: // A grid that supports nesting rows - it provides an expando function // similar to dijit.Tree. It can work with demo.data.Cu...
JavaScript
dojo.provide("demo.widget.IconComboBox"); dojo.require("dijit.form.ComboBox"); /* @Override from dojo-1.4.3 */ dojo.declare( "demo.widget.IconComboBox", dijit.form.ComboBox, { // summary: // A ComboBox that displays options with icons in the drop down menu. // ...
JavaScript
dojo.provide("demo.widget.TreeSelector"); dojo.require("dijit.form.ComboBox"); dojo.require("dijit.Tree"); dojo.declare("demo.widget.TreeSelector", dijit.form.ComboBox, { // summary: // Auto-completing text box with tree selector. Based on dojo 1.4. // // description: // under ...
JavaScript
dojo.provide("demo.widget.HybridTreeComboBox"); dojo.require("dijit.form.ComboBox"); dojo.require("dijit.Tree"); dojo.declare("demo.widget.HybridTreeComboBox", dijit.form.ComboBox, { // summary: // Auto-completing text box with tree selector. Based on dojo 1.5. // // description: //...
JavaScript
dojo.provide("demo.widget.TreeComboBox"); dojo.require("dijit.form.ComboBox"); dojo.require("dijit.Tree"); dojo.declare("demo.widget.TreeComboBox", dijit.form.ComboBox, { // summary: // Auto-completing text box with tree selector. Based on dojo 1.4. // // description: // // TOD...
JavaScript
function toggleMenu() { body = document.getElementById('thepage'); body.className = body.className == '' ? 'show-menu' : ''; body.innerHTML += '<!-- weird bug fix -->'; return false; }
JavaScript
// Avoid `console` errors in browsers that lack a console. if (!(window.console && console.log)) { (function() { var noop = function() {}; var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', ...
JavaScript
// JavaScript Document $(document).ready(function(){ //页面加载后算layout高度 $layout = $('.layout'); if($layout.height()<$('body').height()){ $('.layout').height(parseInt($('body').height()) - 101 + 'px'); } var navbarFade = function(a,b){ if(a==1){ b.find('div.bg').css('z-index','11').stop().animate({w...
JavaScript
// JavaScript Document $(document).ready(function(){ var //$scr_num = 5,//设定每次滚动的图片数 //$scr_dwidth = 242,//设定每个图片框体的宽度(包括padding margin border) $scr_width = $scr_num*$scr_dwidth, $picHidden = $('#pics'), $li = $('#pics > ul > li'), $lis = $li.length, $bleft = $('#left'), $bright = $('#righ...
JavaScript
(function( window, $, undefined ) { // http://www.netcu.de/jquery-touchwipe-iphone-ipad-library $.fn.touchwipe = function(settings) { var config = { min_move_x: 20, min_move_y: 20, wipeLeft: function() { }, wipeRight: function() { }, wipeUp: function() { }, wipeDown: function()...
JavaScript
// JavaScript Document $(document).ready(function(){ $('#couter_container, #imagePan').height($(window).height()); }); $(window).load(function() { $outer_container=$("#outer_container"); $imagePan_panning=$("#imagePan .panning"); $imagePan=$("#imagePan"); $imagePan_container=$("#imagePan .con...
JavaScript
// JavaScript Document /** * * Copyright (c) 2009 May(qq104010230) * http://www.winwill.com * http://www.winwill.com/jquery/jscroll.html * admin@winwill.com */ /*--------------------------------------------------------------------------------------------------*/ $.fn.extend({//添加滚轮事件//by jun mousewheel...
JavaScript
// JavaScript Document /*! * jQuery blockUI plugin * Version 2.39 (23-MAY-2011) * @requires jQuery v1.2.3 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2010 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php *...
JavaScript
// JavaScript Document /** * 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 othe...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights res...
JavaScript
/* * jQuery Pic360 Plugin * version: 1.0.0 (2011.5.22) * @requires jQuery v1.4.4 or later * @author Yongliang Wen * @email wenzongxian@gmail.com * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(fun...
JavaScript
/* 供上传用的一些JS接口 */ //取得上级相关的编辑器对象 function parentEditor() { return parentForm().srcEditor; } //取得包含了本网址的表单对象 function parentForm() { return window.frameElement.parentNode.parentNode; } //插入结果,暂仅支持图片 function insertResult(resultUrl) { var editor = parentEditor(); editor.insertImage(resultUrl); } //...
JavaScript
(function(TQE){ if(!TQE){ throw('必须先加载 TQEditor.js '); return ;} var pe=TQE.prototype; //接口, 取得编辑器的所有图片,返值为数组['image_1_src_url','image_2_src_url'] //参数 full_uri 是否是取完整的uri pe.images=function(full_uri){ var $=this, result=[],htm='',doc=$._getDoc(),a,i; if('code'===$.currentMode()){ return result; //htm=...
JavaScript
function ubb2html(str) { var i=0 ,codes=[], s=''+str, split_str='', tqeUrl='http://www.qs.com/vt/inc/client/js/tqEditor/', escUrl=function(url){return url.replace(/\[\]/g, function(c){return {'[':'%5b',']':'%5d'}[c];})};//TQE.url; s=s.replace(/[<>\" ]/g,function(c){return {'<':'&lt;','>':'&gt;','"':'&quot;',' ...
JavaScript
/** * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com * * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ * * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz閚 and Mammon Media and is released under the MIT License: * http://www.open...
JavaScript
/* * html5 placeholder pollfill * - 使用绝对定位内嵌层 * - 也适用于密码域 * 目标浏览器: IE 6~9, FF 3.5 ``` // 默认 $('input[placeholder]').placeholder() // autofocus 与 placeholder 搭配时,非 webkit 清空了提示文本,推荐 $('input[placeholder]').placeholder({ // 将删除原有 placehodler 属性,强制用 JS 实现替代 useNative: false, // focus 时不清除提示文本, keypres...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only a...
JavaScript
function gradient_gradient_browser() { gradient_browser = "unknown"; gradient_version = 0; if (navigator.userAgent.indexOf("Opera") >= 0) gradient_browser = "opera"; else if (navigator.userAgent.indexOf("obot") >= 0) gradient_browser = "robot"; else if (navigator.appName.indexOf("etscape") >= 0) gradient_bro...
JavaScript
//PART (1) // set maximum of backgrounds images (the images should be in 'gif' format and it's FileName is as number (1,2,3 ...) sequencially var imageCount = 50; //PART (2) initializeTemplates("Simplified Arabic|||3|||0|||1||||||23|||4|||3|||13|||0|||0|||1|||0|||1|||0"); initializeTemplates("Simplified Arabic|||3|||1...
JavaScript
var prefixes = ["افتراضي:","جديد:","هام:","نقاش:","منقول:","خبر:","شعر:","ترحيب:","برنامج:","تصميم:","اضحك:","حصري:","صور:","رأي:","اسلامي:","عاجل:","شرح:","استفتاء:","طلب:","درس:","صور:"]; var _pm = false; var chk = false; function toMenu(a) { var htmlpre = '<select style="margin-right:5px" id="prefix" ...
JavaScript
$(function(){ // Remove the kdstab-slider-no-js class from the body $("body").removeClass("kdstab-slider-no-js"); // Preloader $(".kdstab-slider").children('.panel').hide().end().prepend('<p class="loading">Loading...<br /><img src="images/ajax-loader.gif" alt="loading..." /></p>'); }); var sliderCount = 1; $.fn....
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
function SetFocus() { if (document.forms.length > 0) { var field = document.forms[0]; for (i=0; i<field.length; i++) { if ( (field.elements[i].type != "image") && (field.elements[i].type != "hidden") && (field.elements[i].type != "reset") && (field.elements[i].typ...
JavaScript
// combined config.js and cssjsmenu.js for performance reasons // to save a cache check and an inline script // config.js checkForUpgrade(); function hide_dropdowns(what){ if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) if (what=="in") { var anchors = document.getElementsByTagNa...
JavaScript
/* javascript function to update form field * field form field that is being counted * count form field that will show characters left * maxchars maximum number of characters */ function characterCount(field, count, maxchars) { var realchars = field.value.replace(/\t|\r|\n|\r\n/g,''); var excesschars = rea...
JavaScript
update_zone(document.create_account); document.login.email_address.focus();
JavaScript
/* javascript function to update form field * field form field that is being counted * count form field that will show characters left * maxchars maximum number of characters */ function characterCount(field, count, maxchars) { var realchars = field.value.replace(/\t|\r|\n|\r\n/g,''); var excesschars = rea...
JavaScript
if (document.contact_us){ if (document.contact_us.contactname) {document.contact_us.contactname.focus()} };
JavaScript
update_zone(document.create_account);
JavaScript
/* javascript function to update form field * field form field that is being counted * count form field that will show characters left * maxchars maximum number of characters */ function characterCount(field, count, maxchars) { var realchars = field.value.replace(/\t|\r|\n|\r\n/g,''); var excesschars = rea...
JavaScript
update_zone(document.checkout_address);
JavaScript
/* javascript function to update form field * field form field that is being counted * count form field that will show characters left * maxchars maximum number of characters */ function characterCount(field, count, maxchars) { var realchars = field.value.replace(/\t|\r|\n|\r\n/g,''); var excesschars = rea...
JavaScript
/* javascript function to update form field * field form field that is being counted * count form field that will show characters left * maxchars maximum number of characters */ function characterCount(field, count, maxchars) { var realchars = field.value.replace(/\t|\r|\n|\r\n/g,''); var excesschars = rea...
JavaScript
update_zone(document.addressbook);
JavaScript
update_zone(document.checkout_address);
JavaScript
// // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | ...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. /** * @fileoverview Holds all logic for Block entity in * the iap-hello-world game. * @author dhermes@google.com (Daniel Hermes) * Requires jQuery */ var STATIC_COLORS = ['#3369E8', // BLUE '#D50F25', // RED '#009925']...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. /** * @fileoverview Holds all logic for Player entity in * the iap-hello-world game. * @author dhermes@google.com (Daniel Hermes) * Requires jQuery, Sprite.js */ /** * Defines basic attributes of player entity * @param {number} x Starting x position of player....
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/> Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "object", ...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * R...
JavaScript
// JavaScript Document $(function() { $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").stop().fadeTo(250, 1); $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").hover(function() { $(this).stop().fadeTo(250,0.6); } , function() { $(this)...
JavaScript
/* Created by Martin Hintzmann 2008 martin [a] hintzmann.dk * MIT (http://www.opensource.org/licenses/mit-license.php) licensed. * * Version: 0.2 * Requires: jQuery 1.2+ * http://plugins.jquery.com/project/textshadow * */ (function($) { $.fn.textShadow = function(option) { if (!$.browser.msie) return; var I...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
var qTipTag = "a,label,input"; //Which tag do you want to qTip-ize? Keep it lowercase!// var qTipX = 0; //This is qTip's X offset// var qTipY = 15; //This is qTip's Y offset// //There's No need to edit anything below this line// tooltip = { name : "qTip", offsetX : qTipX, offsetY : qTipY, tip : null } tooltip...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * R...
JavaScript
// JavaScript Document $(function() { $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").stop().fadeTo(250, 1); $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").hover(function() { $(this).stop().fadeTo(250,0.6); } , function() { $(this)...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * R...
JavaScript
// JavaScript Document $(function() { $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").stop().fadeTo(250, 1); $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").hover(function() { $(this).stop().fadeTo(250,0.6); } , function() { $(this)...
JavaScript
/// <reference path="Jssor.Core.js" /> /* * Jssor.Utils 15.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Utils * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal ...
JavaScript
/* html2canvas 0.4.1 <http://html2canvas.hertzen.com> Copyright (c) 2013 Niklas von Hertzen Released under MIT License */ (function(window, document, undefined){ "use strict"; var _html2canvas = {}, previousElement, computedCSS, html2canvas; _html2canvas.Util = {}; _html2canvas.Util.log = ...
JavaScript
jQuery(document).ready(function ($) { var options = { $ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false $SlideDuration: 500, //[Optional] Specifies default duration (swipe) for slide in mil...
JavaScript
/// <reference path="Jssor.Core.js" /> /// <reference path="Jssor.Utils.js" /> /* * Jssor.Slider 15.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Slider * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated docume...
JavaScript
function generateCanvas(keyForReplacement) { var bootstrapLink = $("#bootstrap"); var checkedBoxes = $("input:checkbox:checked"); if (checkedBoxes.length == 0) { alert("Please choose the student(s) for the achievement"); return; } var achievementType = $("#type"); var rad...
JavaScript
function receivedMessage(event) { alert("DUCK!"); event.source.postMessage(this.document.getElementsByTagName("body")[0]); } window.addEventListener("message", receivedMessage, false);
JavaScript
(function(angular, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define(['angular'], function(angular) { return factory(angular); }); } else { return factory(angular); } }(angular || null, function(angular) { 'use strict'; /** * ngTa...
JavaScript
module.exports = function( grunt ) { "use strict"; var // files coreFiles = [ "jquery.ui.core.js", "jquery.ui.widget.js", "jquery.ui.mouse.js", "jquery.ui.draggable.js", "jquery.ui.droppable.js", "jquery.ui.resizable.js", "jquery.ui.selectable.js", "jquery.ui.sortable.js", "jquery.ui.effect.js" ]...
JavaScript
var myApp = angular.module('myCoolApp', ['bootstrap.tabset', 'ngTable', 'ngResource', 'ngAnimate']); myApp.factory('tabulationFactory', function ($http) { var data = {'command': 'getTabs'}; return { getTabNames: function () { return $http.post('/ajax/processor', data); } }...
JavaScript
/* * Jssor.Core 15.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Core * * Copyright 2014 Jssor * * 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, includi...
JavaScript
var myApp = angular.module('jsGallery', ['ngAnimate']); myApp.factory('achievementTypeFactory', function() { var factoryInstance = {}; factoryInstance.translateAchievementTitle = function(title) { if (title == "earned") { return "Earned"; } else if (title == "locked") { ...
JavaScript
Today : <script type='text/javascript'> <!-- var months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']; var myDays = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum&#39;at', 'Sabtu']; var date = new Date(); var day = date.getDate();...
JavaScript
// JScript File (function($){ $.fn.checkall = function(options){ var defaults = { leaderClass: 'ckLeader', memberClass: 'ckMember' }; var options = $.extend(defaults, options); return this.each(function(){ var obj = $(this); ...
JavaScript