code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * 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: j...
JavaScript
/** * jQuery yiiactiveform plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiiactiveform.js 3538 2012-01-14 18:24:30Z mdomba $ * @since 1....
JavaScript
/** * Ajax Queue Plugin * * Homepage: http://jquery.com/plugins/project/ajaxqueue * Documentation: http://docs.jquery.com/AjaxQueue */ /** <script> $(function(){ jQuery.ajaxQueue({ url: "test.php", success: function(html){ jQuery("ul").append(html); } }); jQuery.ajaxQueue({ url: "test.p...
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() { if($('div.form.login').length) { // in login page $('input#LoginForm_password').focus(); } $('table.preview input[name="checkAll"]').click(function() { $('table.preview .confirm input').prop('checked', this.checked); }); $('table.preview td.confirm input').click(function() { ...
JavaScript
/** * jQuery Yii GridView plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiigridview.js 3486 2011-12-16 00:25:01Z mdomba $ */ (function ...
JavaScript
/** * jQuery Yii ListView plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiilistview.js 3296 2011-06-22 17:15:17Z qiang.xue $ */ ;(funct...
JavaScript
(function (window, document) { var Stalker = function () { var _check_if_visible = function (elem) { var scroll_pos = get_scroll(); var elem_pos = get_element_absolute_pos(elem); var _h = get_element_height(elem); if (scroll_pos < -1 || elem_pos < -1){ ...
JavaScript
var bg,menu,claim,about,ourhistory,lerici,gallery,lericicont,endbox,stalker, last_scroll, shrunk = false; document.onreadystatechange = function () { if (document.readyState == "complete") { stalker = window.stalker; last_scroll = stalker.windowScrollTop...
JavaScript
// SmoothScroll for websites v1.2.1 // Licensed under the terms of the MIT license. // People involved // - Balazs Galambosi (maintainer) // - Michael Herf (Pulse Algorithm) (function(){ // Scroll Variables (tweakable) var defaultOptions = { // Scrolling Core frameRate ...
JavaScript
/*! * VERSION: 1.11.6 * DATE: 2014-03-26 * UPDATES AND DOCS AT: http://www.greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2014, GreenSock. ...
JavaScript
(function (window, document){ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&appId=327650674102103&version=v2.2"; fjs.parentNo...
JavaScript
var Config ={ all_results :[ {1:'forrest-1/vita-2', 2:'gladiatore-1/bellezza-2', 3:'titanic-1/padrino-2'}, {1:'padrino-1/gladiatore-2', 2:'bellezza-1/titanic-2', 3:'vita-1/forrest-2'}, {1:'forrest-1/titanic-2', 2:'gladiatore-1/padrino-2', 3:'vita-1/bellezza-2'}, {1:'padrino-1/ti...
JavaScript
/*! * VERSION: 1.11.6 * DATE: 2014-03-26 * UPDATES AND DOCS AT: http://www.greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2014, GreenSock. ...
JavaScript
(function (window, document){ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&appId=313467472186182&version=v2.2"; fjs.parentNo...
JavaScript
var Config ={ all_results :[ {1:'cacca-1/sudore-2', 2:'uovo marcio-1/pattumiera-2', 3:'piedi-1/cane bagnato-2'}, {1:'cane bagnato-1/cacca-2', 2:'pattumiera-1/piedi-2', 3:'sudore-1 /uovo marcio-2'}, {1:'uovo marcio/sudore', 2:'piedi-1/pattumiera-2', 3:'cacca-1/cane bagnato-2'}, {...
JavaScript
/*! * VERSION: 1.11.6 * DATE: 2014-03-26 * UPDATES AND DOCS AT: http://www.greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2014, GreenSock. ...
JavaScript
(function (window, document){ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&appId=313467472186182&version=v2.2"; fjs.parentNo...
JavaScript
var Config ={ all_results :[ {1:'romanticone-1/geloso-2', 2:'sexy-1/sciupafemmine-2', 3:'intellettuale-1/gattamorta-2'}, {1:'gattamorta-1/romanticone-2', 2:'sciupafemmine-1/intellettuale-2', 3:'geloso-1/sexy-2'}, {1:'gattamorta-1/geloso-2', 2:'romanticone-1/sciupafemmine-2', 3:'sexy-1/in...
JavaScript
/*! * VERSION: 1.11.6 * DATE: 2014-03-26 * UPDATES AND DOCS AT: http://www.greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2014, GreenSock. ...
JavaScript
function doPrint() { bdhtml = window.document.body.innerHTML; sprnstr = "<!--startprint-->"; eprnstr = "<!--endprint-->"; prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17); prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); window.document.body.innerHTML = prnhtml; window.print(); } //给指定的表格添加一行 f...
JavaScript
var GPVideoDialog = { preInit : function() { var url; tinyMCEPopup.requireLangPack(); if (url = tinyMCEPopup.getParam("external_image_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); }, ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2011, Gracepoint: Brian Wang * */ (function() { tinymce.create('tinymce.plugins.GPVideoPlugin', { init : function(ed, url) { // Register commands ed.addCommand('mceGPVideoPlugin', function() { ed.windowManager.open({ file : url + '/video.htm', width ...
JavaScript
tinyMCE.addI18n('en.gpvideo_dlg',{ tab_general:"General", tab_appearance:"Appearance", tab_advanced:"Advanced", general:"General", title:"Title", preview:"Preview", constrain_proportions:"Constrain proportions", langdir:"Language direction", langcode:"Language code", long_desc:"Long description link", style:...
JavaScript
var GPEventDialog = { preInit : function() { var url; tinyMCEPopup.requireLangPack(); if (url = tinyMCEPopup.getParam("external_image_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); }, ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2010, Gracepoint: Brian Wang * */ (function() { tinymce.create('tinymce.plugins.GPEventPlugin', { init : function(ed, url) { // Register commands ed.addCommand('mceGPEventPlugin', function() { ed.windowManager.open({ file : url + '/event.htm', width...
JavaScript
tinyMCE.addI18n('en.gpevent_dlg',{ dialog_title:"Insert Event", general:"General", name:"Event Name", date:"Date", time:"Time", location:"Location", info:"Additional Information", caption:"Caption", anchor: "Link Anchor Name" });
JavaScript
$(document).ready(function() { var images = $("#gp-banner-gallery a").hide(); var thumbs = $("#gp-banner-thumbs a"); var thumbsLength = thumbs.length; var visibleThumbsNum = 3; var index = thumbsLength - 1; var timer = setInterval(sift, 8000); for (i = 0; i < thumbsLength; i++) { $(...
JavaScript
var GPPhotoDialog = { preInit : function() { var url; tinyMCEPopup.requireLangPack(); if (url = tinyMCEPopup.getParam("external_image_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); }, ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2010, Gracepoint: Brian Wang * */ (function() { tinymce.create('tinymce.plugins.GPPhotoPlugin', { init : function(ed, url) { // Register commands ed.addCommand('mceGPPhotoPlugin', function() { ed.windowManager.open({ file : url + '/photo.htm', width ...
JavaScript
tinyMCE.addI18n('en.advimage_dlg',{ tab_general:"General", tab_appearance:"Appearance", tab_advanced:"Advanced", general:"General", title:"Title", preview:"Preview", constrain_proportions:"Constrain proportions", langdir:"Language direction", langcode:"Language code", long_desc:"Long description link", style...
JavaScript
/** * a2f Magazine js * */ $(document).ready(function() { /* HOMEPAGE */ $('.home-wrapper #main .post').hover( function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); } ); $('.home-wrapper #main ....
JavaScript
/** * @preserve Galleria Flickr Plugin 2011-08-01 * http://galleria.aino.se * * Copyright 2011, Aino * Licensed under the MIT license. */ /*global jQuery, Galleria, window */ Galleria.requires(1.25, 'The Flickr Plugin requires Galleria version 1.2.5 or later.'); (function($) { // The script path var PATH = Ga...
JavaScript
/** * @preserve Galleria Picasa Plugin 2011-08-01 * http://galleria.aino.se * * Copyright 2011, Aino * Licensed under the MIT license. */ /*global jQuery, Galleria, window */ Galleria.requires(1.25, 'The Picasa Plugin requires Galleria version 1.2.5 or later.'); (function($) { // The script path var PATH = Ga...
JavaScript
/** * @preserve Galleria History Plugin 2011-08-01 * http://galleria.aino.se * * Copyright 2011, Aino * Licensed under the MIT license. * */ /*global jQuery, Galleria, window */ Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.'); (function( $, window ) { Galleria.Hist...
JavaScript
/** * @preserve Galleria v 1.2.5 2011-08-03 * http://galleria.aino.se * * Copyright (c) 2011, Aino * Licensed under the MIT license. */ /*global jQuery, navigator, Galleria:true, Image */ (function( $ ) { // some references var undef, window = this, doc = window.document, $doc = $( doc ), ...
JavaScript
/** * @preserve Galleria Classic Theme 2011-08-01 * http://galleria.aino.se * * Copyright (c) 2011, Aino * Licensed under the MIT license. */ /*global jQuery, Galleria */ Galleria.requires(1.25, 'This version of Classic theme requires Galleria 1.2.5 or later'); (function($) { Galleria.addTheme({ name: 'cl...
JavaScript
/* http://www.JSON.org/json2.js 2008-03-24 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This file creates a global JSON object containing three methods: stringify, parse, and quote. JSON.stringify(value, replacer, space)...
JavaScript
/* jQuery Tags Input Plugin 1.2 Copyright (c) 2010 XOXCO, Inc Documentation for this plugin lives here: http://xoxco.com/clickable/jquery-tags-input Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ben@xoxco.com Custom Edited by Kinshuk <kinshuk1989@gmail.com> f...
JavaScript
/* jQuery Phone Number Validation Plugin 1.0 Copyright (c) 2011 Kinshuk Bairagi Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php kinshuk1989@gmail.com */ (function() { var digits = "0123456789"; // non-digit characters which are allowed in phone numbers var p...
JavaScript
/* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * http://github.com/tzuryby/hotkeys * * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ (function(jQuery) ...
JavaScript
/* $Id : auto_complete.js 4865 2007-01-31 14:04:10Z paulgao $ */ function autoComplete(obj, hidden, url, callback) { this.borderStyle = '1px solid #000'; this.highlight = '#000080'; this.highlightText = '#FFF'; this.background = '#FFF'; this.params = ''; var textbox = obj; var hidden = hidden...
JavaScript
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.getDateToolTip = null; this.getDateText = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose ...
JavaScript
/* $Id: index.js 15469 2008-12-19 06:34:44Z testyang $ */ var best_str = new Object(); var new_str = new Object(); var hot_str = new Object(); function init_rec_data() { best_str[0] = document.getElementById("show_best_area") == null ? '' : document.getElementById("show_best_area").innerHTML; new_str[0...
JavaScript
/* $Id: compare.js 15469 2008-12-19 06:34:44Z testyang $ */ var Compare = new Object(); Compare = { add : function(goodsId, goodsName, type) { var count = 0; for (var k in this.data) { if (typeof(this.data[k]) == "function") continue; if (this.data[k].t != type) { ...
JavaScript
var pos; var MSIE=navigator.userAgent.indexOf("MSIE"); var Fire=navigator.userAgent.indexOf("Fire"); var OPER=navigator.userAgent.indexOf("Opera"); var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body; onscroll = function() { if (Fire > 0...
JavaScript
imgUrl1="data/afficheimg/20081027angsif.jpg"; imgtext1="ECShop"; imgLink1=escape("http://www.ecshop.com"); imgUrl2="data/afficheimg/20081027xuorxj.jpg"; imgtext2="maifou"; imgLink2=escape("http://www.maifou.net"); imgUrl3="data/afficheimg/20081027wdwd.jpg"; imgtext3="ECShop"; imgLink3=escape("http://www.wdwd.co...
JavaScript
var Todolist = Class.create(); Todolist.prototype = { initialize:function(adminid) { this.box = $ce("DIV"); this.container = $ce("DIV"); this.head = $ce("DIV"); this.buttons = $ce("DIV"); this.middle = $ce("DIV"); this.bottom = $ce("DIV"); this.bo...
JavaScript
var ColorSelecter = new Object(); ColorSelecter.Show = function(sender) { if(ColorSelecter.box) { if (ColorSelecter.box.style.display = "none") ColorSelecter.box.style.display = ""; } else { ColorSelecter.box = document.createElement("Div"); ColorSelecter.box.id = "ColorSelecter...
JavaScript
var persistclose = 0 // set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session var startX = 3 // set x offset of bar in pixels var startY = 3 // set y offset of bar in pixels function iecompattest() { return (document.compatMode && document.compatMode != "...
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...
JavaScript
var SelectBox = Class.create(); SelectBox.prototype = { initialize:function (src, dst) { this.dst_options = new Array(); this.src_obj = document.getElementById(src); this.dst_obj = document.getElementById(dst); this.copy_method = (typeof (arguments[2]) != 'undefined')?true...
JavaScript
var ColorSelecter = new Object(); ColorSelecter.Show = function(sender) { if(ColorSelecter.box) { if (ColorSelecter.box.style.display = "none") ColorSelecter.box.style.display = ""; } else { ColorSelecter.box = document.createElement("Div"); ColorSelecter.box.id = "ColorSelecter...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
//////////////////////////////////////////////////// // wordWindow object //////////////////////////////////////////////////// function wordWindow() { // private properties this._forms = []; // private methods this._getWordObject = _getWordObject; //this._getSpellerObject = _getSpellerObject; this._wo...
JavaScript
//////////////////////////////////////////////////// // controlWindow object //////////////////////////////////////////////////// function controlWindow( controlForm ) { // private properties this._form = controlForm; // public properties this.windowType = "controlWindow"; // this.noSuggestionSelection =...
JavaScript
//////////////////////////////////////////////////// // spellChecker.js // // spellChecker object // // This file is sourced on web pages that have a textarea object to evaluate // for spelling. It includes the implementation for the spellCheckObject. // //////////////////////////////////////////////////// ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
function $(id, winHDL) { if (typeof(winHDL) === "undefined") { winHDL = window; } return winHDL.document.getElementById(id); } function getAddressLang() { var addressLang = location.search.match(/lang=(\w+)/); addressLang = addressLang ? addressLang[1] : "zh_cn"; return addr...
JavaScript
function getAbsPosition(target) { var pos = {x:0, y:0}; while (target != null) { pos.x += target.offsetLeft; pos.y += target.offsetTop; target = target.offsetParent; } return pos; } var EventManager = { "attachEvent" : function (oTarget, sType, fHandle, bUseCa...
JavaScript
window.onload = function () { setInputCheckedStatus(); var agree = $("js-agree"); var submit = $("js-submit"); submit.disabled=!agree.checked; agree.onclick = function () { submit.disabled=!this.checked; }; submit.onclick=function () { this.form.action = "./index.p...
JavaScript
window.onload = function () { setInputCheckedStatus(); $("js-pre-step").onclick = function() { location.href="./index.php?lang=" + getAddressLang() + "&step=welcome"; }; $("js-recheck").onclick = function () { location.href="./index.php?lang=" + getAddressLang() + "&step=check"; ...
JavaScript
function $(id, winHDL) { if (typeof(winHDL) === "undefined") { winHDL = window; } return winHDL.document.getElementById(id); } Array.prototype.shift = function () { var firstUnit = this[0]; for (var i = 0; i < this.length; i++) { this[i] = this[i+1]; } this....
JavaScript
/* 初始化一些全局变量 */ var lf = "<br />"; var iframe = null; var notice = null; var oriDisabledInputs = []; /* Ajax设置 */ Ajax.onRunning = null; Ajax.onComplete = null; /* 页面加载完毕,执行一些操作 */ window.onload = function () { var f = $("js-setup"); $("js-pre-step").onclick = function() { location.h...
JavaScript
function getAbsPosition(target) { var pos = {x:0, y:0}; while (target != null) { pos.x += target.offsetLeft; pos.y += target.offsetTop; target = target.offsetParent; } return pos; } var EventManager = { "attachEvent" : function (oTarget, sType, fHandle, bUseCa...
JavaScript
/* 初始化一些全局变量 */ var lf = "<br />"; var needupVerList = []; var curVer = ""; var nextVer = ""; var iframe = null; var notice = null; var ui = ""; /* Ajax设置 */ Ajax.onRunning = null; Ajax.onComplete = null; /* 在升级过程中调用该方法 */ function startNotice() { $("js-monitor-loading").src = "images/loading.gif"...
JavaScript
/* 初始化一些全局变量 */ var lf = "<br />"; var iframe = null; var notice = null; var oriDisabledInputs = []; /* Ajax设置 */ Ajax.onRunning = null; Ajax.onComplete = null; /* 页面加载完毕,执行一些操作 */ window.onload = function () { var f = $("js-setup"); var ucinstalloptions = document.getElementsByName("ucinstall");...
JavaScript
// Flash Player Version Detection - Rev 1.6 // Detect Client Browser type // Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.att...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2014 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2013 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2013 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript
// Copyright 2013 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
JavaScript