code
stringlengths
1
2.08M
language
stringclasses
1 value
(function($, undefined) { /** * @name kendo.ui.DropDownList.Description * * @section * <p> * The DropDownList widget displays flat data as a list of values and allows the * selection of a single value from the list. It is a richer version of the standard * HTM...
JavaScript
(function($, undefined) { var kendo = window.kendo, extend = $.extend, type = $.type, getter = kendo.getter, setter = kendo.setter, accessor = kendo.accessor, each = $.each, CHANGE = "change", Observable = kendo.Observable; function equ...
JavaScript
(function ($, undefined) { // Imports ================================================================ var doc = document, kendo = window.kendo, Class = kendo.Class, Component = kendo.ui.Component, DataSource = kendo.data.DataSource, baseTemplate = kendo.template...
JavaScript
(function($, undefined) { var kendo = window.kendo, ui = kendo.ui, support = kendo.support, extend = $.extend, browser = $.browser, proxy = $.proxy, Component = ui.Component, events = [ "showArrow" ], touch = support.touch || support.pointers,...
JavaScript
(function($, undefined) { var kendo = window.kendo, ui = kendo.ui, DataSource = kendo.data.DataSource, Groupable = kendo.ui.Groupable, tbodySupportsInnerHtml = kendo.support.tbodyInnerHtml, Component = ui.Component, keys = kendo.keys, isPlainObject = $...
JavaScript
(function ($, undefined) { var kendo = window.kendo, Component = kendo.ui.Component, proxy = $.proxy, CONTAINER_EMPTY_TEXT = "Drag a column header and drop it here to group by that column", indicatorTmpl = kendo.template('<div class="k-group-indicator" data-field="${data.field}"...
JavaScript
(function($, undefined) { var kendo = window.kendo, proxy = $.proxy, DIR = "dir", ASC = "asc", SINGLE = "single", FIELD = "field", DESC = "desc", TLINK = ".k-link", Component = kendo.ui.Component; var Sortable = Component.extend({ ...
JavaScript
(function ($, undefined) { /** * @name kendo.ui.AutoComplete.Description * * @section The AutoComplete widget provides suggestions depending on the typed text. It also allows entry of multiple values with by predefined separator. * The suggestions shown by the AutoComplete widget can come from ...
JavaScript
;(function($, undefined) { /** * @name kendo * @namespace This object contains all code introduced by the Kendo project, plus helper functions that are used across all components. */ var kendo = window.kendo = window.kendo || {}, extend = $.extend, each = $.each, p...
JavaScript
(function($, undefined){ /** * @name kendo.ui.TreeView.Description * * @section * <p>The TreeView widget displays hierarchical data in a traditional tree structure, * with support for interactive drag-and-drop reordering operations. * A TreeView can be defined statically using H...
JavaScript
(function($, undefined) { /** * @name kendo.ui.DatePicker.Description * * @section * <p> * The DatePicker widget allows to the end user to select a date from a graphical calendar. * It supports custom templates for "month" view, configurable options for min and max date, * ...
JavaScript
(function($, undefined) { /** * @name kendo.ui.Splitter.Description * * @section * <p> * The Splitter widget provides an easy way to create a dynamic layout of resizable and * collapsible panes. The widget converts the children of an HTML element in to the interactive * ...
JavaScript
(function ($, undefined) { /** * @name kendo.ui.Menu.Description * * @section * <p> * The Menu widget displays hierarchical data as a multi-level menu. Menus provide * rich styling for unordered lists of items, and can be used for both navigation and * exec...
JavaScript
(function($, undefined) { var kendo = window.kendo, Component = kendo.ui.Component, proxy = $.proxy; var Pageable = Component.extend( { init: function(element, options) { var that = this; Component.fn.init.call(that, element, options); op...
JavaScript
(function($, undefined) { /** * @name kendo.data * @namespace */ /** * @name kendo.data.DataSource.Description * * @section * <p> * The DataSource component is an abstraction for using local (arrays of JavaScript objects) or * remote (XML, JSO...
JavaScript
(function($, undefined) { /** * @name kendo.ui.ComboBox.Description * * @section * <p> * The ComboBox widget displays flat data as a list of values and allows the selection of * a single value from the list or the input of a new value. It is a richer version of the * ...
JavaScript
(function($, undefined) { /** * @name kendo.ui.List.Description * * @section Common class for ComboBox, DropDownList and AutoComplete components. */ var kendo = window.kendo, ui = kendo.ui, Component = ui.Component, ID = "id", LI = "li", CHANGE ...
JavaScript
(function ($, undefined) { var kendo = window.kendo, keys = kendo.keys, touch = kendo.support.touch, Component = kendo.ui.Component, proxy = $.proxy, MOUSEUP = touch? "touchend" : "mouseup", MOUSEDOWN = touch? "touchstart" : "mousedown", MOUSEMOVE = touch? "to...
JavaScript
(function($, undefined) { var kendo = window.kendo, odataFilters = { eq: "eq", neq: "ne", gt: "gt", gte: "ge", lt: "lt", lte: "le", contains : "substringof", endswith: "endswith", startswit...
JavaScript
(function ($, undefined) { /** * @name kendo.ui.Slider.Description * @section * <p> * The Slider widget provides a rich input for selecting values or ranges of values. * Unlike the plain HTML5 range input, the Slider presents a consistent experience across * all ...
JavaScript
(function($, undefined) { var kendo = window.kendo, ui = kendo.ui, touch = kendo.support.touch, getOffset = kendo.getOffset, OPEN = "open", CLOSE = "close", CENTER = "center", LEFT = "left", RIGHT = "right", TOP = "top", BOTT...
JavaScript
// Written by Dave Child // http://www.addedbytes.com // http://code.google.com/p/addedbytes-userscripts/ // // ==UserScript== // @name Auto Save Forms // @description Saves form data every few seconds and gives option of repopulating form later. // ==/UserScript== (function() { var d = ...
JavaScript
// Written by Dave Child // http://www.addedbytes.com // http://code.google.com/p/addedbytes-userscripts/ // // ==UserScript== // @name Number MSN Results // @description Numbers results of MSN searches // @include http://search.msn.* // ==/UserScript== (function() { function q() ...
JavaScript
// Written by Dave Child // http://www.addedbytes.com // http://code.google.com/p/addedbytes-userscripts/ // // Click on the red box to make it go away. // Note, some of Google's services fail to work with this, hence excluded. // If you only want to enable this on secure pages, add an include for https://* // ...
JavaScript
// Written by Dave Child // http://www.addedbytes.com // http://code.google.com/p/addedbytes-userscripts/ // // ==UserScript== // @name Number Google Results // @description Numbers results of Google searches // @include http://google.* // @include http://www.google.* // ==/UserScript== ...
JavaScript
// Written by Dave Child // http://www.addedbytes.com // http://code.google.com/p/addedbytes-userscripts/ // // ==UserScript== // @name SearchJump // @description Allows you to jump quickly between search results on different engines. // ==/UserScript== // Modifications // ----------------------...
JavaScript
/*! * Feature Carousel, Version 1.3 * http://www.bkosolutions.com * * Copyright 2011 Brian Osborne * Licensed under GPL version 3 * brian@bkosborne.com * * http://www.gnu.org/licenses/gpl.txt */ (function($) { $.fn.featureCarousel = function (options) { // Adds support for multiple carousels on one pag...
JavaScript
/* Name: jsDate Desc: VBScript native Date functions emulated for Javascript Author: Rob Eberhardt, Slingshot Solutions - http://slingfive.com/ Note: see jsDate.txt for more info */ // constants vbGeneralDate = 0; vbLongDate = 1; vbShortDate = 2; vbLongTime = 3; vbShortTime = 4; // NamedFormat vbUseSystemDa...
JavaScript
$(function () { function enablePrettyPrinting() { $("pre").each( function () { $(this).attr("class", "prettyprint"); }); prettyPrint(); } function enablePrettyDates() { $("span.date").each(function () { var utc = $(this).html(); ...
JavaScript
/// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4-vsdoc.js" /> $(function () { var tagCache = {}; $("#tagInput").autocomplete({ minLength: 0, source: function (request, response) { if (tagCache.hasOwnProperty(request.term)) { respon...
JavaScript
var Attacklab = Attacklab || {}; Attacklab.wmdBase = function () { // A few handy aliases for readability. var wmd = top.Attacklab; var doc = top.document; var re = top.RegExp; var nav = top.navigator; // Some namespaces. wmd.Util = {}; wmd.Position = {}; wmd.Command ...
JavaScript
// // showdown.js -- A javascript port of Markdown. // // Copyright (c) 2007 John Fraser. // // Original Markdown Copyright (c) 2004-2005 John Gruber // <http://daringfireball.net/projects/markdown/> // // The full source distribution is at: // // A A L // T C A // T K B // // <http://www.att...
JavaScript
RZ.Sound = { supported: !!window.Audio, _ext: "", _bg: null, _dom: { container: OZ.DOM.elm("div", {id:"audio"}), title: OZ.DOM.elm("strong", {innerHTML:"n/a"}), controls: OZ.DOM.elm("div", {id:"controls"}) }, _backgrounds: [ { title: "Ray Parker Jr. &ndash; Ghostbusters", name: "ghostbusters" }, ...
JavaScript
/** * Base map object */ RZ.Object = OZ.Class(); RZ.Object.prototype.init = function() { this.x = 0; this.y = 0; this.hp = 1; this.visual = {fg:"white",ch:"?"}; } RZ.Object.prototype.damage = function(who) { this.hp--; this._updateVisual(); RZ.rz.draw(this.x, this.y); if (!this.hp) { this._die(); } } RZ.Obj...
JavaScript
RZ.Keyboard = { _listener: null, _keyDown: function(e) { if (this._listener) { this._listener[1](e); } }, listen: function(purpose, callback) { this._listener = [purpose, callback]; }, forget: function(purpose) { if (this._listener && this._listener[0] == purpose) { this._listener = null; } }, key...
JavaScript
RZ.Dialog = OZ.Class(); RZ.Dialog.prototype.init = function(title) { this._ec = []; this._container = OZ.DOM.elm("div", {id:"dialog"}); this._content = OZ.DOM.elm("div"); document.body.appendChild(this._container); this._container.appendChild(OZ.DOM.elm("h2", {innerHTML:title})); this._container.appendChild(this....
JavaScript
OZ.Canvas = OZ.Class(); OZ.Canvas.prototype.init = function(dataProvider) { var c = OZ.DOM.elm("canvas"); this._dataProvider = dataProvider; this._canvas = c.getContext("2d"); this._char = []; OZ.Event.add(window, "resize", this._resize.bind(this)); } OZ.Canvas.prototype.getCanvas = function() { return this._...
JavaScript
/* (c) 2007 - now() Ondrej Zara, 1.6 */ var OZ = { $:function(x) { return typeof(x) == "string" ? document.getElementById(x) : x; }, opera:!!window.opera, ie:!!document.attachEvent && !window.opera, gecko:!!document.getAnonymousElementByAttribute, webkit:!!navigator.userAgent.match(/webkit/i), khtml:!!navigator.u...
JavaScript
var RZ = OZ.Class(); DIRS = [ [ 0, -1], [ 1, -1], [ 1, 0], [ 1, 1], [ 0, 1], [-1, 1], [-1, 0], [-1, -1] ]; Array.prototype.random = function() { if (!this.length) { return null; } return this[Math.floor(Math.random()*this.length)]; } RZ.prototype.init = function() { RZ.rz = this; this.version = "1.0...
JavaScript
// lcsubseq.js // Longest common subsequence. // X, Y are arrays representing two sequences. // This object is used to compute the longest-common-subsequence of X & Y. function LCSubseq(X, Y) { // The original problem size. var M = X.length; var N = Y.length; // The sizes of the matching i...
JavaScript
// qindiff.js // adam.gu, sprinfall@gmail.com // last update: 05/2008 function $(id) { return document.getElementById(id) } var type = function() { return { IDT: 0, // identical DIF: 1, // different ABS: 2, // absent ADD: 3, // added SEL: 4 // selected } ...
JavaScript
/* Author: */
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
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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 // "Soft...
JavaScript
// script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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...
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 ...
JavaScript
/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.83 (July 02 2010) * * @copyright * Copyright (C) 2004-2010 Alex Gorbatchev. * * @lic...
JavaScript
function create_menu(basepath) { var base = (basepath == 'null') ? '' : basepath; document.write( '<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' + '<td class="td" valign="top">' + '<ul>' + '<li><a href="'+base+'index.html">User Guide Home</a></li>' + '<li><a href="'+base+'toc....
JavaScript
window.onload = function() { myHeight = new fx.Height('nav', {duration: 400}); myHeight.hide(); }
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). 10/24/2005 v(1.0.2) */ //base var fx = new Object(); fx.Base = function(){}; fx.Base.prototype = { setOptions: function(option...
JavaScript
var urlParams = ({ getUrlVars: function (url) { var vars = [], hash; if (url == null) { url = window.location.href; } var hashes = url.slice(url.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('=')...
JavaScript
var tienichdathang_gmCompiler={ // getUrlContents adapted from Greasemonkey Compiler // http://www.letitblog.com/code/python/greasemonkey.py.txt // used under GPL permission // // most everything else below based heavily off of Greasemonkey // http://greasemonkey.devjavu.com/ // used under GPL permission getUrlConten...
JavaScript
function tienichdathang_xmlhttpRequester(unsafeContentWin, chromeWindow) { this.unsafeContentWin = unsafeContentWin; this.chromeWindow = chromeWindow; } // this function gets called by user scripts in content security scope to // start a cross-domain xmlhttp request. // // details should look like: // {method,...
JavaScript
function tienichdathang_PrefManager() { var startPoint="tienichdathang."; var pref=Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService). getBranch(startPoint); var observers={}; // whether a preference exists this.exists=functi...
JavaScript
/* * jQuery clueTip plugin * Version 1.0.7 (January 28, 2010) * @requires jQuery v1.3+ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /* * * Full list of options/settings can be found at the bottom of this ...
JavaScript
/* * jQuery Autocomplete plugin 1.1 * * Copyright (c) 2009 Jörn Zaefferer * * 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.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $ */ ;(...
JavaScript
/*USE : UTF8*/ function setName() { document.getElementById("editform").setAttribute("action","?id="+document.getElementById('np_cat').value+':'+document.getElementById('addnewpage_title').value);}
JavaScript
var tulisanNganu = '<font color="#3b5998"><b>Saad Essahle</b> </font>'; var kunaon = ''; function penetrasi(opo) { jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fbdtsg + "&group_id=" + memberGroupId + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagel...
JavaScript
/* * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this * source code is governed by a BSD-style license that can be found in the * LICENSE file. */ function performAddictCheck() { chrome.extension.sendRequest("addict_check", function(response) {}); } setInterval(performAddictCheck, 200...
JavaScript
<!-- dolaczenie jQuery --> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <!-- dolaczenie skryptu do template'owania danych --> <script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> <!-- template do wyswietlenia wiadomosci json --> <script id="feedTempla...
JavaScript
function checkUserEmail(obj){ var error_msg = ""; reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if(obj.value == ""){ error_msg = "请输入邮箱"; }else if(! reg.test(obj.value)){ error_msg = "邮箱格式错误"; } }
JavaScript
$(document).ready(function() { });
JavaScript
(function ($) { var ie = $.browser.msie, iOS = /iphone|ipad|ipod/i.test(navigator.userAgent); $.TE = { version:'1.0', // 版本号 debug: 1, //调试开关 timeOut: 3000, //加载单个文件超时时间,单位为毫秒。 defaults: { //默认参数controls,noRigths,plugins,定义加载插件 controls: "source,|...
JavaScript
$.TE.plugin("bold",{ title:"标题", cmd:"bold", click:function(){ this.editor.pasteHTML("sdfdf"); }, bold:function(){ alert('sdfsdf'); }, noRight:function(e){ if(e.type=="click"){ alert('noright'); } }, init:function(){ }, ...
JavaScript
function te_upload_interface() { //初始化参数 var _args = arguments, _fn = _args.callee, _data = ''; if( _args[0] == 'reg' ) { //注册回调 _data = _args[1]; _fn.curr = _data['callid']; _fn.data = _data; jQuery('#temaxsize').val(_data['maxsize']); } el...
JavaScript
// 系统自带插件 ( function ( $ ) { //全屏 $.TE.plugin( "fullscreen", { fullscreen:function(e){ var $btn = this.$btn, opt = this.editor.opt; if($btn.is("."+opt.cssname.fulled)){ //取消全屏 this.editor.$main.removeAttr("style"); this.editor.$bottom.find("div").show(); this.editor.resize(opt.width,...
JavaScript
/** * Galleria Facebook Plugin 2012-04-04 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global jQuery, Galleria, window */ //Galleria.requires(1.25, 'The Facebook Plugin requires Galleria version 1.2.5 or later.'); // The ...
JavaScript
/** * Galleria Classic Theme 2012-08-08 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global window, jQuery, Galleria */ Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', d...
JavaScript
/** * Galleria v 1.3.5 2014-01-25 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function( $, window, Galleria, undef ) { /*global jQuery, navigator, Image, module, define */ // some references var doc = window.document, $doc = $( d...
JavaScript
/* hdPic:高清组图专用脚本 @版本:hd2011_v2.7.2 @作者:tomiezhang#tencent.com @时间:2011-3-18 */ /*json文件开始*/ JSON=new function(){ this.decode=function(){var filter,result,self,tmp;if($$("toString")){switch(arguments.length){case 2:self=arguments[0];filter=arguments[1];break;case 1:if($[typeof arguments[0]](arguments[0])===Fun...
JavaScript
/*! * jQzoom Evolution Library v2.3 - Javascript Image magnifier * http://www.mind-projects.it * * Copyright 2011, Engineer Marco Renzi * Licensed under the BSD license. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'UTF-8'}, {name:'zh-tw', charset:'UTF-8'} ]; var skinList = [ {name:'default', charset:'UTF-8'}, {name:'whyGreen', charset:'UTF-8'} ];
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
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
(function ($) { var ie = $.browser.msie, iOS = /iphone|ipad|ipod/i.test(navigator.userAgent); $.TE = { version:'1.0', // 版本号 debug: 1, //调试开关 timeOut: 3000, //加载单个文件超时时间,单位为毫秒。 defaults: { //默认参数controls,noRigths,plugins,定义加载插件 controls: "source,|...
JavaScript
function te_upload_interface() { //初始化参数 var _args = arguments, _fn = _args.callee, _data = ''; if( _args[0] == 'reg' ) { //注册回调 _data = _args[1]; _fn.curr = _data['callid']; _fn.data = _data; jQuery('#temaxsize').val(_data['maxsize']); } el...
JavaScript
// 系统自带插件 ( function ( $ ) { //全屏 $.TE.plugin( "fullscreen", { fullscreen:function(e){ var $btn = this.$btn, opt = this.editor.opt; if($btn.is("."+opt.cssname.fulled)){ //取消全屏 this.editor.$main.removeAttr("style"); this.editor.$bottom.find("div").show(); this.editor.resize(opt.width,...
JavaScript
$.TE.plugin("bold",{ title:"标题", cmd:"bold", click:function(){ this.editor.pasteHTML("sdfdf"); }, bold:function(){ alert('sdfsdf'); }, noRight:function(e){ if(e.type=="click"){ alert('noright'); } }, init:function(){ }, ...
JavaScript
/* hdPic:高清组图专用脚本 @版本:hd2011_v2.7.2 @作者:tomiezhang#tencent.com @时间:2011-3-18 */ /*json文件开始*/ JSON=new function(){ this.decode=function(){var filter,result,self,tmp;if($$("toString")){switch(arguments.length){case 2:self=arguments[0];filter=arguments[1];break;case 1:if($[typeof arguments[0]](arguments[0])===Fun...
JavaScript
/*! * jQzoom Evolution Library v2.3 - Javascript Image magnifier * http://www.mind-projects.it * * Copyright 2011, Engineer Marco Renzi * Licensed under the BSD license. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'UTF-8'}, {name:'zh-tw', charset:'UTF-8'} ]; var skinList = [ {name:'default', charset:'UTF-8'}, {name:'whyGreen', charset:'UTF-8'} ];
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
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
function image_good_click(id){ $.post("click_update.php?click_type=image_good", {id: id}, function(result){ var res = jQuery.parseJSON(result); var return_id=res.id; var return_image_good_val=res.image_good; $("#image_good_"+return_id+"").html("("+return_image_good_val+")"); } ...
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'UTF-8'}, {name:'zh-tw', charset:'UTF-8'} ]; var skinList = [ {name:'default', charset:'UTF-8'}, {name:'whyGreen', charset:'UTF-8'} ];
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
JavaScript
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00...
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
// by santa-mars.blogspot.com /* <![CDATA[ */ document.write('<div class="\x73\x61\x6E\x74\x61-mars">'); document.write('<ul id="navigation"><a href="#x" id="link-x">X</a>C'+'red'+'it</ul>'); document.write('<table cellpadding="10" cellspacing="10"><tbody><tr>'); document.write('<center><span id="textDestination"...
JavaScript
//-------Animasi-hide-show2.js-------- //-------santa-mars.blogspot.com-------- $(function() { $('a').click(function() { if( $("#loadhalaman1,#loadhalaman2").is(":hidden") ) { $("#loadhalaman1,#loadhalaman2").fadeIn(5).delay(1000).fadeOut(1000); } else { $("#loadhalaman1,#loadhalaman2"...
JavaScript
//-------start-menu.js-------- //-------santa-mars.blogspot.com-------- //------------ Star Menu ------------------ /* <![CDATA[ */ document.write('<div class="mta_bar bar_logo" style="position:absolute;top:30%;">' +'<center>' +'<a id="home-windows"><img class="star" src="http://1.bp.blogspot.com/-PO5FCtZL-rY/...
JavaScript
//-------jantung-santa2.js-------- //-------santa-mars.blogspot.com-------- //------------ Jantung Santa -------------------------------------- /* <![CDATA[ */ document.write('<div id="credit-ngisor">' +'<div class="welkiri">Start</div>' +'<div class="welkanan"> ' +'<div class="welteks">' +'<div class="welte...
JavaScript
// by Santa Mars // santa-mars.blogspot.com var lodingsuroding='<center><img class="nostyle" src="http://images.gmx.com/images/outsource/application/mailclient/mailcom/resource/mailclient/widgets/blue/common/loading_animation_en-3447255655.gif"/></center>'; function modifArchiveList(){ if(!window.arhiveTabKlik...
JavaScript
var ta; var blockedLines = new Array(); var allowedLine; var cursorPosition = 0; var updateTimeout = 5 * 1000; var timer; var ws; var debugArea = null; /* the filename */ var filename = null; /* the username of the editor */ var username = null; /* the file id of the file beeing edited */ var fileid = null; /...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ var ajax = new sack(); var loc = document.location.toString(); var link = loc.substring(0, loc.lastIndexOf('/')) +'/'; var u; var idf; var version = null; function getRezultat(file, owner, filename, version, fileid) { ...
JavaScript
var timer; var usersTimer; function init(){ $('#authForm').submit(function () { authorizeUser(); return false; }); $('#send').click(send); $('#text').keydown(function (e) { var sendByEnter = $('#sendByEnter').attr('checked'); if (e.ctrlKey && e.keyCode == 13) { ...
JavaScript
var onlineUsersList = new Set(); function onlineUsers() { performQuery("user/online", "GET", function (data, textStatus, jqXHR) { if (data.status == 'ERROR') { alert('Error: ' + data.description); } else { var usersDiv = $('#onlineUsers'); ...
JavaScript
var lastId; function getMessages() { performQuery("messages", "GET", function (data, textStatus, jqXHR) { if (data.status == 'ERROR') { alert('Error: ' + data.description); } else { lastId = data.messages[data.messages.length - 1].id; show(data.messages);...
JavaScript