code
stringlengths
1
2.08M
language
stringclasses
1 value
/* http://keith-wood.name/datepick.html Simplified Chinese localisation for jQuery Datepicker. Written by Cloudream (cloudream@gmail.com). */ (function($) { $.datepick.regional['zh-CN'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四...
JavaScript
/* http://keith-wood.name/datepick.html Datepicker Validation extension for jQuery 4.0.3. Requires Jörn Zaefferer's Validation plugin (http://plugins.jquery.com/project/validate). Written by Keith Wood (kbwood{at}iinet.com.au). Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL...
JavaScript
/* http://keith-wood.name/datepick.html Gujarati (ગુજરાતી) localisation for jQuery Datepicker. Naymesh Mistry (naymesh@yahoo.com). */ (function($) { $.datepick.regional['gu'] = { monthNames: ['જાન્યુઆરી','ફેબ્રુઆરી','માર્ચ','એપ્રિલ','મે','જૂન', 'જુલાઈ','ઑગસ્ટ','સપ્ટેમ્બર','ઑક્ટોબર','નવેમ્બર','ડિસેમ્બર'], ...
JavaScript
/* http://keith-wood.name/datepick.html Korean localisation for jQuery Datepicker. Written by DaeKwon Kang (ncrash.dk@gmail.com). */ (function($) { $.datepick.regional['ko'] = { monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)'...
JavaScript
/* http://keith-wood.name/datepick.html Serbian localisation for jQuery Datepicker. Written by Dejan Dimić. */ (function($) { $.datepick.regional['sr'] = { monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун', 'Јул','Август','Септембар','Октобар','Новембар','Децембар'], monthNamesShort: ['Јан...
JavaScript
/* http://keith-wood.name/datepick.html Dutch localisation for jQuery Datepicker. Written by Mathias Bynens <http://mathiasbynens.be/> */ (function($) { $.datepick.regional['nl'] = { monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'novem...
JavaScript
/* http://keith-wood.name/datepick.html Afrikaans localisation for jQuery Datepicker. Written by Renier Pretorius. */ (function($) { $.datepick.regional['af'] = { monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie', 'Julie','Augustus','September','Oktober','November','Desember'], mont...
JavaScript
/* http://keith-wood.name/datepick.html Swiss French localisation for jQuery Datepicker. Written by Martin Voelkle (martin.voelkle@e-tc.ch). */ (function($) { $.datepick.regional['fr-CH'] = { monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre...
JavaScript
/* http://keith-wood.name/datepick.html Traditional Chinese localisation for jQuery Datepicker. Written by Ressol (ressol@gmail.com). */ (function($) { $.datepick.regional['zh-TW'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四','五...
JavaScript
/* http://keith-wood.name/datepick.html Indonesian localisation for jQuery Datepicker. Written by Deden Fathurahman (dedenf@gmail.com). */ (function($) { $.datepick.regional['id'] = { monthNames: ['Januari','Februari','Maret','April','Mei','Juni', 'Juli','Agustus','September','Oktober','Nopember','Dese...
JavaScript
/* http://keith-wood.name/datepick.html Bosnian localisation for jQuery Datepicker. Written by Kenan Konjo. */ (function($) { $.datepick.regional['bs'] = { monthNames: ['Januar','Februar','Mart','April','Maj','Juni', 'Juli','August','Septembar','Oktobar','Novembar','Decembar'], monthNamesShort: ['J...
JavaScript
/* http://keith-wood.name/datepick.html Urdu localisation for jQuery Datepicker. Mansoor Munib -- mansoormunib@gmail.com <http://www.mansoor.co.nr/mansoor.html> Thanks to Habib Ahmed, ObaidUllah Anwar. */ (function($) { $.datepick.regional['ur'] = { monthNames: ['جنوری','فروری','مارچ','اپریل','مئی','...
JavaScript
/* http://keith-wood.name/datepick.html Ukrainian localisation for jQuery Datepicker. Written by Maxim Drogobitskiy (maxdao@gmail.com). */ (function($) { $.datepick.regional['uk'] = { monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', 'Липень','Серпень','Вересень','Жовтень','Листоп...
JavaScript
/* http://keith-wood.name/datepick.html Catalan localisation for jQuery Datepicker. Writers: (joan.leon@gmail.com). */ (function($) { $.datepick.regional['ca'] = { monthNames: ['Gener','Febrer','Mar&ccedil;','Abril','Maig','Juny', 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], monthNa...
JavaScript
/* http://keith-wood.name/datepick.html Polish localisation for jQuery Datepicker. Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ (function($) { $.datepick.regional['pl'] = { monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', 'Lipiec','Sierpień','Wrzesień','Październik','Listop...
JavaScript
/* http://keith-wood.name/datepick.html Japanese localisation for jQuery Datepicker. Written by Kentaro SATO (kentaro@ranvis.com). */ (function($) { $.datepick.regional['ja'] = { monthNames: ['1月','2月','3月','4月','5月','6月', '7月','8月','9月','10月','11月','12月'], monthNamesShort: ['1月','2月','3月','4月','5月...
JavaScript
/* http://keith-wood.name/datepick.html Galician localisation for jQuery Datepicker. Traducido por Manuel (McNuel@gmx.net). */ (function($) { $.datepick.regional['gl'] = { monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño', 'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'], monthNa...
JavaScript
/* http://keith-wood.name/datepick.html Bulgarian localisation for jQuery Datepicker. Written by Stoyan Kyosev (http://svest.org). */ (function($) { $.datepick.regional['bg'] = { monthNames: ['Януари','Февруари','Март','Април','Май','Юни', 'Юли','Август','Септември','Октомври','Ноември','Декември'], ...
JavaScript
/* http://keith-wood.name/datepick.html Malaysian localisation for jQuery Datepicker. Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ (function($) { $.datepick.regional['ms'] = { monthNames: ['Januari','Februari','Mac','April','Mei','Jun', 'Julai','Ogos','September','Oktober','November'...
JavaScript
/* http://keith-wood.name/datepick.html Dutch/Belgium localisation for jQuery Datepicker. Written by Mathias Bynens <http://mathiasbynens.be/> */ (function($) { $.datepick.regional['nl-BE'] = { monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktob...
JavaScript
/* http://keith-wood.name/datepick.html Thai localisation for jQuery Datepicker. Written by pipo (pipo@sixhead.com). */ (function($) { $.datepick.regional['th'] = { monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', 'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],...
JavaScript
/* http://keith-wood.name/datepick.html Turkish localisation for jQuery Datepicker. Written by Izzet Emre Erkan (kara@karalamalar.net). */ (function($) { $.datepick.regional['tr'] = { monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], m...
JavaScript
/* http://keith-wood.name/datepick.html Brazilian Portuguese localisation for jQuery Datepicker. Written by Leonildo Costa Silva (leocsilva@gmail.com). */ (function($) { $.datepick.regional['pt-BR'] = { monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', 'Julho','Agosto','Setembro','Out...
JavaScript
/* http://keith-wood.name/datepick.html Czech localisation for jQuery Datepicker. Written by Tomas Muller (tomas@tomas-muller.net). */ (function($) { $.datepick.regional['cs'] = { monthNames: ['leden','únor','březen','duben','květen','červen', 'červenec','srpen','září','říjen','listopad','prosinec'], ...
JavaScript
/* http://keith-wood.name/datepick.html Slovak localisation for jQuery Datepicker. Written by Vojtech Rinik (vojto@hmm.sk). */ (function($) { $.datepick.regional['sk'] = { monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', 'Júl','August','September','Október','November','December'], monthN...
JavaScript
/* http://keith-wood.name/datepick.html Spanish localisation for jQuery Datepicker. Traducido por Vester (xvester@gmail.com). */ (function($) { $.datepick.regional['es'] = { monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],...
JavaScript
/* http://keith-wood.name/datepick.html Tamil localisation for jQuery Datepicker. Written by S A Sureshkumar (saskumar@live.com). */ (function($) { $.datepick.regional['ta'] = { monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி', 'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'], ...
JavaScript
/** * Template JS for Internet Explorer 8 and lower - mainly workaround for missing selectors */ (function($) { // Standard template setup for IE $.fn.addTemplateSetup(function() { // Clean existing classes this.find('.first-child').removeClass('first-child'); this.find('.last-child').removeClass...
JavaScript
/** * Template JS for mobile pages */ (function($) { $(document).ready(function() { // Menu $('#menu > a').click(function(event) { event.preventDefault(); $(this).parent().toggleClass('active'); }); // Menus with sub-menus $('#menu ul li:has(ul)').addClass('with-subs').children...
JavaScript
// Create new HTML5 elements =================================================== // ----------------------------------------------------------------------------- // This script should load before any others. We want the new elements to be // parsed before pretty much anything happens. // Plus, IE does not behave ot...
JavaScript
/** * Template JS for standard pages */ (function($) { /** * List of functions required to enable template effects/hacks * @var array */ var templateSetup = new Array(); /** * Add a new template function * @param function func the function to be called on a jQuery object * @param bool...
JavaScript
/*! * jQuery hashchange event - v1.3 - 7/21/2010 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Script: jQuery hashchange event // // *Version: 1.3, Last upd...
JavaScript
/** * Template plugin for searchField */ (function($) { /** * Timeout for ajax requests * @var int */ var ajaxTimeout; /** * Timeout for search block close * @var int */ var closeTimeout; /** * Last request timer * @var int */ var lastRequest; /** * Setup the...
JavaScript
/** * Add tip to any element */ (function($) { /** * Adds tip on selected elements * @param object options an object with any of the following options * - content: Content of the tip (may be HTML) or false for auto detect (default: false) * - onHover: Show tip only on hover (default: true) ...
JavaScript
/** * Enables the context menu for elements bound to the 'contextMenu' event */ (function($) { /* * Enable context menu */ document.oncontextmenu = function(event) { var e = window.event || event; var target = $(e.target || e.srcElement); var list = []; target.trigger('contextMenu', [lis...
JavaScript
/** * Template JS for standard pages */ (function($) { // Standard template setup $.fn.addTemplateSetup(function() { // Mini menu this.find('.mini-menu').css({opacity:0}).parent().hover(function() { $(this).children('.mini-menu').stop(true).animate({opacity:1}); }, function() { ...
JavaScript
function formataData(data){ dia = data.getDate(); mes = data.getMonth()+1; mes = new String(mes); if(mes.length < 2) mes = "0"+mes; ano = data.getFullYear(); return dia+"/"+mes+"/"+ano; } function abrirModalSimples(conteudo, titulo){ $.modal({ ...
JavaScript
/** * Functions required for the template documentation */ $('a[href^="content/"]').live('click', function(event) { event.preventDefault(); var href = $(this).attr('href'); // Load content $('#content').load(href, '', function(responseText, textStatus, XMLHttpRequest) { $(this).applyTemplateSetu...
JavaScript
/** * Modal window extension */ (function($) { /** * Opens a new modal window * @param object options an object with any of the following options * @return object the jQuery object of the new window */ $.modal = function(options) { var settings = $.extend({}, $.modal.defaults, options), ...
JavaScript
/** * Older browsers detection */ (function($) { // Change these values to fit your needs if ( ($.browser.msie && parseFloat($.browser.version) < 7) || // IE 6 and lower ($.browser.mozilla && parseFloat($.browser.version) < 1.9) || // Firefox 2 and lower ($.browser.opera && parseFloat($.browser...
JavaScript
/** * Lists generic controls */ (function($) { // List styles setup $.fn.addTemplateSetup(function() { // Closed elements this.find('.close').toggleBranchOpen().removeClass('close'); // :first-of-type is buggy with jQuery under IE this.find('dl.accordion dt:first-child + dd').siblings('dd'...
JavaScript
// Create new HTML5 elements =================================================== // ----------------------------------------------------------------------------- // This script should load before any others. We want the new elements to be // parsed before pretty much anything happens. // Plus, IE does not behave ot...
JavaScript
/** * Template JS for standard pages */ (function($) { /** * List of functions required to enable template effects/hacks * @var array */ var templateSetup = new Array(); /** * Add a new template function * @param function func the function to be called on a jQuery object * @param bool...
JavaScript
/** * Template JS for standard pages */ (function($) { // Standard template setup $.fn.addTemplateSetup(function() { // Mini menu this.find('.mini-menu').css({opacity:0}).parent().hover(function() { $(this).children('.mini-menu').stop(true).animate({opacity:1}); }, function() { ...
JavaScript
function abrirModalSimples(conteudo, titulo){ return $.modal({ content: conteudo, title: titulo, maxWidth: 500, maxHeight: 500, buttons: { 'Fechar': function(win) {win.closeModal();} } }); } function abrirModalConfirmacao(url){ return...
JavaScript
/** * Modal window extension */ (function($) { /** * Opens a new modal window * @param object options an object with any of the following options * @return object the jQuery object of the new window */ $.modal = function(options) { var settings = $.extend({}, $.modal.defaults, options), ...
JavaScript
/*! * jQuery Form Plugin * version: 2.73 (03-MAY-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(functi...
JavaScript
/** * Older browsers detection */ (function($) { // Change these values to fit your needs if ( ($.browser.msie && parseFloat($.browser.version) < 7) || // IE 6 and lower ($.browser.mozilla && parseFloat($.browser.version) < 1.9) || // Firefox 2 and lower ($.browser.opera && parseFloat($.browser...
JavaScript
/** * Lists generic controls */ (function($) { // List styles setup $.fn.addTemplateSetup(function() { // Closed elements this.find('.close').toggleBranchOpen().removeClass('close'); // :first-of-type is buggy with jQuery under IE this.find('dl.accordion dt:first-child + dd').siblings('dd'...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. /* prop = { header, // String property, // String events, // type, // checkbox, select, ...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var baseDir = '/setting/'; var rules = []; var scripts = []; var issues = []; var dirty = false; function setScriptAutoComplet...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. List.types.input = function(p, prop) { p[0].listdata = this; this.p = p; var input = this.input = $('<input></input>').addClas...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var tabStatus = {}; var version; var firstRun = false; var firstUpgrade = false; var blackList = [ /^https?:\/\/[^\/]*\.taobao...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. // Permission for experimental not given. var handler = chrome.webRequest; function onBeforeSendHeaders(details) { var rule = se...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. /* Rule: { identifier: an unique identifier title: description type: Can be "wild", "regex", "clsid" ...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var FLASH_CLSID = '{d27cdb6e-ae6d-11cf-96b8-444553540000}'; var typeId = 'application/x-itst-activex'; var updating = false; funct...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var controlLogFName = '__npactivex_log'; var controlLogEvent = '__npactivex_log_event__'; var config = null; var port = null; v...
JavaScript
if (chrome.extension.getBackgroundPage().firstRun) { document.getElementById('hint').style.display = ''; chrome.extension.getBackgroundPage().firstRun = false; } $(document).ready(function() { $('#share').load('share.html'); });
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. /* prop = { header, // String property, // String events, // type, // checkbox, select, i...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. replaceSubElements(document); pageDOMLoaded = true; if (needNotifyBar) { showNotifyBar(); }
JavaScript
scriptConfig.formid = true;
JavaScript
document.addEventListener('DOMContentLoaded', function() { if (window.doLogin && window.statcus && window.psw) { function makeHidden(obj) { obj.style.display = 'block'; obj.style.height = '0px'; obj.style.width = '0px'; } window.doLogin = function(orig) { return function() ...
JavaScript
(function () { function patch() { if (window.ShowPayPage && window.InitControls) { InitControls = function(orig) { return function() { if (CreditCardYear.object === undefined) { CreditCardYear.object = {}; } if (CreditCardMonth.object === undefined) { ...
JavaScript
(function() { Document.prototype.getElementById = function(orig) { return function(id) { var a = this.getElementsByName(id); if (a.length > 0) { return a[0]; } return orig.call(this, id); } } (Document.prototype.getElementById); })();
JavaScript
document.addEventListener('DOMContentLoaded', function() { if (window.PocoUpload) { document.all.PocoUpload.Document = document; } }, false);
JavaScript
//******************************************** //*** \u4ee5\u4e0b\u51fd\u6570\u7528\u6765\u5904\u7406\u91d1\u989d\u5343\u5206\u4f4d\u663e\u793a\u53ca\u4eba\u6c11\u5e01\u5927\u5199 //******************************************** var pubarray1 = new Array("\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\...
JavaScript
//************************************/ //******* \u5b9a\u4e49\u6240\u6709JS\u63d0\u793a\u8bed *******/ //************************************/ /** CurCode\u8d27\u5e01\u5217\u8868 begin */ var CURCODE_CNY = "\u4eba\u6c11\u5e01\u5143"; var CURCODE_GBP = "\u82f1\u9551"; var CURCODE_HKD = "\u6e2f\u5e01"; var CURCODE...
JavaScript
(function(proto) { proto.__defineGetter__("classid", function() { var clsid = this.getAttribute("clsid"); if (clsid == null) { return ""; } return "CLSID:" + clsid.substring(1, clsid.length - 1); }) proto.__defineSetter__("classid", function(value) { var e = document.createEvent...
JavaScript
navigator.cpuClass='x86';
JavaScript
//************************************** //*** \u4ee5\u4e0b\u51fd\u6570\u662f\u8868\u5355\u68c0\u67e5\u76f8\u5173\u7684\u51fd\u6570 //*** \u6ce8\u610f:\u5f15\u7528\u6b64js\u6587\u4ef6\u65f6,\u5fc5\u987b\u5f15\u7528common.js //************************************** //************************************** //*** \u4e...
JavaScript
(function (doc) { doc.createElement = function(orig) { return function(name) { if (name.trim()[0] == '<') { // We assume the name is correct. document.head.innerHTML += name; var obj = document.head.lastChild; document.head.removeChild(obj); return obj; } else {...
JavaScript
scriptConfig.documentid = true;
JavaScript
//************************************** //*** \u4ee5\u4e0b\u51fd\u6570\u662fJS\u516c\u7528\u51fd\u6570 //************************************** var CONST_STRDOC="document."; /* * \u51fd\u6570\u529f\u80fd\uff1a\u5220\u9664\u5de6\u53f3\u4e24\u7aef\u7684\u7a7a\u683c * */ String.prototype.trim = function() { return...
JavaScript
(function () { var hiddenDivId = "__hiddendiv_activex"; window.__proto__.ActiveXObject = function(progid) { progid = progid.trim(); var e = document.createEvent('TextEvent'); e.initTextEvent( '__npactivex_log_event__', false, false, window, 'Dynamic create ' + progid); window.dispatchEv...
JavaScript
//************************************** //*** \u663e\u793a\u65e5\u5386 //************************************** var bMoveable=true; //\u8bbe\u7f6e\u65e5\u5386\u662f\u5426\u53ef\u4ee5\u62d6\u52a8 var strFrame; //\u5b58\u653e\u65e5\u5386\u5c42\u7684HTML\u4ee3\u7801 document.writeln('<iframe src="javascript:false" id...
JavaScript
(function(node) { node.createPopup = node.createPopup || function() { var SetElementStyles = function(element, styleDict) { var style = element.style; for (var styleName in styleDict) { style[styleName] = styleDict[styleName]; } } var eDiv = document.createElement('div'); Se...
JavaScript
(function() { function __bugupatch() { if (typeof cntv != 'undefined') { cntv.player.util.getPlayerCore = function(orig) { return function() { var ret = orig(); if (arguments.callee.caller.toString().indexOf('GetPlayerControl') != -1) { return { GetVersi...
JavaScript
/** * \u521b\u5efa\u5b89\u5168\u63a7\u4ef6\u811a\u672c */ var rs = ""; function CreateControl(DivID, Form, ObjectID, mode, language) { var d = document.getElementById(DivID); var obj = document.createElement('object'); d.appendChild(obj); obj.width = 162; obj.height = 20; obj.classid="clsid:E61E8363-041F-455c-...
JavaScript
/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 f...
JavaScript
scriptConfig.none2block = true;
JavaScript
window.addEventListener('DOMContentLoaded', function() { if (window.logonSubmit) { logonSubmit = function(orig) { return function() { try { orig(); } catch (e) { if (e.message == 'Error calling method on NPObject.') { // We assume it has passed the checking. ...
JavaScript
(function() { function declareEventAsIE(node) { if (!node.attachEvent) { node.attachEvent = function(event, operation) { if (event.substr(0, 2) == "on") this.addEventListener(event.substr(2), operation, false) } } if (!node.detachEvent) { node.detachEvent = function(event, operat...
JavaScript
window.addEventListener('load', function() { delete FrmUserInfo.elements; FrmUserInfo.elements = function(x){return this[x]}; console.log('cloudzz patch'); onAuthenticated(); }, false); HTMLElement.prototype.insertAdjacentHTML = function(orig) { return function() { this.style.display = "block"; this.style.overflow = "h...
JavaScript
window.addEventListener('error', function(event) { function executeScript(file) { var request = new XMLHttpRequest(); // In case it needs immediate loading, use sync ajax. request.open('GET', file, false); request.send(); eval(translate(request.responseText)); } function translate(text...
JavaScript
window.addEventListener('load', function() {Exobud.URL = objMmInfo[0].mmUrl}, false);
JavaScript
(function() { function reload() { var maps = document.getElementsByTagName("map"); for (var i = 0; i < maps.length; ++i) { if (maps[i].name == "") maps[i].name = maps[i].id; } } if (document.readyState == 'complete') { reload(); } else { window.addEventListener('load', reload, false); ...
JavaScript
//******************************************** //*** \u4ee5\u4e0b\u51fd\u6570\u7528\u6765\u5904\u7406\u91d1\u989d\u683c\u5f0f,\u5e76\u663e\u793a\u60ac\u6d6e\u6846 //*** \u6ce8\u610f:\u5f15\u7528\u6b64js\u6587\u4ef6\u65f6,\u5fc5\u987b\u5f15\u7528common.js\u548cformCheck.js //*******************************************...
JavaScript
//************************************** //*** \u4ee5\u4e0b\u51fd\u6570\u662f\u9875\u9762\u9650\u5236\u51fd\u6570 //************************************** /** * \u9875\u9762\u9650\u5236\u5f00\u5173 * true -- \u5f00\u53d1\u6a21\u5f0f\uff0c\u9875\u9762\u4e0d\u505a\u9650\u5236 * false -- \u8fd0\u8425\u6a21\u...
JavaScript
var Renren = Renren || {}; if(!Renren.share){ Renren.share = function() { var isIE = navigator.userAgent.match(/(msie) ([\w.]+)/i); var hl = location.href.indexOf('#'); var resUrl = (hl == -1 ? location.href : location.href.substr(0, hl)); var shareImgs = ""; var sl = function(str) { var pla...
JavaScript
var setting = loadLocalSetting(); var updateSession = new ObjectWithEvent(); setting.cache.listener = updateSession; startListener(); registerRequestListener(); // If you want to build your own copy with a different id, please keep the // tracking enabled. var default_id = 'lgllffgicojgllpmdbemgglaponefajn';...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var USE_RECORD_GAP = 3 * 60 * 1000; // 3 minutes var _gaq = window._gaq || []; _gaq.push(['_setAccount', 'UA-28870762-4']); _gaq...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var config; function loadConfig(_resp) { config = _resp; $(document).ready(init); } function openPopup() { var url = ch...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var tabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '$1')); if (isNaN(tabId)) { alert('Invalid tab id'); } var bac...
JavaScript
// Copyright (c) 2010 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var $$ = chrome.i18n.getMessage; function loadI18n() { var spans = document.querySelectorAll('[i18n]'); for (var i = 0; i < span...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. function ObjectWithEvent() { this._events = {}; } ObjectWithEvent.prototype = { bind: function(name, func) { if (!Array....
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var background = chrome.extension.getBackgroundPage(); var setting = background.setting; var updateSession = background.updateSession...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. List.types.input = function(p, prop) { p[0].listdata = this; this.p = p; var input = this.input = $('<input></input>').addClas...
JavaScript
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. // Use of this source code is governed by a Mozilla-1.1 license that can be // found in the LICENSE file. var backgroundPage = chrome.extension.getBackgroundPage(); var defaultTabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '...
JavaScript
function initShare() { var link = 'https://chrome.google.com/webstore/detail/' + 'lgllffgicojgllpmdbemgglaponefajn'; var text2 = ['Chrome也能用网银啦!', '每次付款还要换浏览器?你out啦!', '现在可以彻底抛弃IE了!', '让IE去死吧!', 'Chrome用网银:' ]; text2 = text2[Math.floor(Math.random() * 1000121) % text2.length]; ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic...
JavaScript