code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ jQuery(function($){ $.datepicker.regional['hy'] = { closeText: 'Փակել', prevText: '<Նախ.', nextText: 'Հաջ.>', currentText: 'Այսօր', monthNames: ['Հունվար','Փետրվար','...
JavaScript
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ jQuery(function($){ $.datepicker.regional['uk'] = { clearText: 'Очистити', clearStatus: '', closeText: 'Закрити', closeStatus: '', prevText: '<', prevStatus: '', prevBigTex...
JavaScript
/* Hungarian initialisation for the jQuery UI date picker plugin. */ /* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */ jQuery(function($){ $.datepicker.regional['hu'] = { closeText: 'bezárás', prevText: '« vissza', nextText: 'előre »', currentText: 'ma', monthNames: ['Janu...
JavaScript
/* French initialisation for the jQuery UI date picker plugin. */ /* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */ jQuery(function($){ $.datepicker.regional['fr'] = { closeText: 'Fermer', prevText: '<Préc', nextText: 'Suiv>', currentText: 'Courant...
JavaScript
/* Finnish initialisation for the jQuery UI date picker plugin. */ /* Written by Harri Kilpi� (harrikilpio@gmail.com). */ jQuery(function($){ $.datepicker.regional['fi'] = { closeText: 'Sulje', prevText: '«Edellinen', nextText: 'Seuraava»', currentText: 'Tänään', monthName...
JavaScript
/* Thai initialisation for the jQuery UI date picker plugin. */ /* Written by pipo (pipo@sixhead.com). */ jQuery(function($){ $.datepicker.regional['th'] = { closeText: 'ปิด', prevText: '« ย้อน', nextText: 'ถัดไป »', currentText: 'วันนี้', monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เ...
JavaScript
/* * jQuery UI Progressbar 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Progressbar * * Depends: * ui.core.js */ (function($) { $.widget("ui.progressbar", { _init: ...
JavaScript
/* * jQuery UI Effects Pulsate 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Pulsate * * Depends: * effects.core.js */ (function($) { $.effects.pulsate = functio...
JavaScript
/* * jQuery UI Effects Bounce 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Bounce * * Depends: * effects.core.js */ (function($) { $.effects.bounce = function(o...
JavaScript
/* * jQuery UI Effects Fold 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Fold * * Depends: * effects.core.js */ (function($) { $.effects.fold = function(o) { ...
JavaScript
/* * jQuery UI Effects Clip 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Clip * * Depends: * effects.core.js */ (function($) { $.effects.clip = function(o) { ...
JavaScript
/* * jQuery UI Effects Shake 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Shake * * Depends: * effects.core.js */ (function($) { $.effects.shake = function(o) {...
JavaScript
/* * jQuery UI Effects 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/ */ ;jQuery.effects || (function($) { $.effects = { version: "1.7.2", // Saves a set of prop...
JavaScript
/* * jQuery UI Draggable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.extend({}, $.ui....
JavaScript
/* * jQuery UI Effects Slide 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * effects.core.js */ (function($) { $.effects.slide = function(o) {...
JavaScript
/* * jQuery UI Effects Drop 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Drop * * Depends: * effects.core.js */ (function($) { $.effects.drop = function(o) { ...
JavaScript
/* * jQuery UI Datepicker 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Datepicker * * Depends: * ui.core.js */ (function($) { // hide the namespace $.extend($.ui, { da...
JavaScript
/* * jQuery UI Selectable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Selectables * * Depends: * ui.core.js */ (function($) { $.widget("ui.selectable", $.extend({}, $....
JavaScript
/* * jQuery UI 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;jQuery.ui || (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser....
JavaScript
/* * jQuery UI Effects Explode 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Explode * * Depends: * effects.core.js */ (function($) { $.effects.explode = functio...
JavaScript
/* * jQuery UI Effects Blind 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Blind * * Depends: * effects.core.js */ (function($) { $.effects.blind = function(o) {...
JavaScript
/* * jQuery UI Effects Highlight 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Highlight * * Depends: * effects.core.js */ (function($) { $.effects.highlight = f...
JavaScript
/* * jQuery UI Resizable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.extend({}, $.ui....
JavaScript
/* * jQuery UI Droppable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Droppables * * Depends: * ui.core.js * ui.draggable.js */ (function($) { $.widget("ui.droppable",...
JavaScript
/* * jQuery UI Accordion 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Accordion * * Depends: * ui.core.js */ (function($) { $.widget("ui.accordion", { _init: function...
JavaScript
/* * jQuery UI Dialog 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Dialog * * Depends: * ui.core.js * ui.draggable.js * ui.resizable.js */ (function($) { var setDataS...
JavaScript
/* * jQuery UI Sortable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Sortables * * Depends: * ui.core.js */ (function($) { $.widget("ui.sortable", $.extend({}, $.ui.mou...
JavaScript
/* * jQuery UI Effects Scale 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Scale * * Depends: * effects.core.js */ (function($) { $.effects.puff = function(o) { ...
JavaScript
/* * jQuery UI Tabs 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Tabs * * Depends: * ui.core.js */ (function($) { $.widget("ui.tabs", { _init: function() { if (this...
JavaScript
/* * jQuery UI Effects Transfer 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Transfer * * Depends: * effects.core.js */ (function($) { $.effects.transfer = func...
JavaScript
/* Flot plugin for adding panning and zooming capabilities to a plot. The default behaviour is double click and scrollwheel up/down to zoom in, drag to pan. The plugin defines plot.zoom({ center }), plot.zoomOut() and plot.pan(offset) so you easily can add custom controls. It also fires a "plotpan" and "plotzoom" even...
JavaScript
/* Flot plugin for selecting regions. The plugin defines the following options: selection: { mode: null or "x" or "y" or "xy", color: color } You enable selection support by setting the mode to one of "x", "y" or "xy". In "x" mode, the user will only be able to specify the x range, similarly for "y" mode...
JavaScript
/* Flot plugin for showing a crosshair, thin lines, when the mouse hovers over the plot. crosshair: { mode: null or "x" or "y" or "xy" color: color lineWidth: number } Set the mode to one of "x", "y" or "xy". The "x" mode enables a vertical crosshair that lets you trace the values on the x axis, "y" e...
JavaScript
/* Javascript plotting library for jQuery, v. 0.6. * * Released under the MIT license by IOLA, December 2007. * */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.0. * * Inspiration from jQuery color anim...
JavaScript
/* Flot plugin for stacking data sets, i.e. putting them on top of each other, for accumulative graphs. Note that the plugin assumes the data is sorted on x. Also note that stacking a mix of positive and negative values in most instances doesn't make sense (so it looks weird). Two or more series are stacked when their...
JavaScript
/* Plugin for jQuery for working with colors. * * Version 1.0. * * Inspiration from jQuery color animation plugin by John Resig. * * Released under the MIT license by Ole Laursen, October 2009. * * Examples: * * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString() * var c = $.color.extrac...
JavaScript
/* Flot plugin for thresholding data. Controlled through the option "threshold" in either the global series options series: { threshold: { below: number color: colorspec } } or in a specific series $.plot($("#placeholder"), [{ data: [ ... ], threshold: { ... }}]) The data points below "bel...
JavaScript
/* Flot plugin for plotting images, e.g. useful for putting ticks on a prerendered complex visualization. The data syntax is [[image, x1, y1, x2, y2], ...] where (x1, y1) and (x2, y2) are where you intend the two opposite corners of the image to end up in the plot. Image must be a fully loaded Javascript image (you ca...
JavaScript
/* * jQuery Form Plugin * version: 2.02 (12/16/2007) * @requires jQuery v1.1 or later * * Examples 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 * * Revision: $Id$ */ (functio...
JavaScript
/* * jsTree 0.9.9a * http://jstree.com/ * * Copyright (c) 2009 Ivan Bozhanov (vakata.com) * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Date: 2009-10-06 * */ (function($) { // jQuery plugin $.tree = { ...
JavaScript
(function ($) { if(typeof $.metadata == "undefined") throw "jsTree metadata: jQuery metadata plugin not included."; $.extend($.tree.plugins, { "metadata" : { defaults : { attribute : "data" }, callbacks : { check : function(rule, obj, value, tree) { var opts = $.extend(true, {}, $.tree.plugin...
JavaScript
(function ($) { if(typeof Sarissa == "undefined") throw "jsTree xml_flat: Sarissa is not included."; $.extend($.tree.datastores, { "xml_flat" : function () { return { get : function(obj, t, opts) { var str = ""; if(!obj || $(obj).size() == 0) { obj = t.container.children("ul").children("li"...
JavaScript
(function ($) { $.extend($.tree.plugins, { "checkbox" : { defaults : { three_state : true }, get_checked : function (t) { if(!t) t = $.tree.focused(); return t.container.find("a.checked").parent(); }, get_undeterminded : function (t) { if(!t) t = $.tree.focused(); return t.contain...
JavaScript
(function ($) { if(typeof Sarissa == "undefined") throw "jsTree xml_nested: Sarissa is not included."; $.extend($.tree.datastores, { "xml_nested" : function () { return { get : function(obj, tree, opts) { var str = ""; if(!obj || $(obj).size() == 0) { obj = tree.container.children("ul").chi...
JavaScript
(function ($) { $.extend($.tree.plugins, { "rtl" : { defaults : { attribute : "data" }, callbacks : { onload : function() { this.container.css("direction","rtl").children("ul:eq(0)").removeClass("ltr").addClass("rtl"); }, oninit : function() { if(!$.tree.plugins.rtl.css) { va...
JavaScript
(function ($) { $.extend($.tree.plugins, { "themeroller" : { defaults : { }, callbacks : { oninit : function (t) { if(this.settings.ui.theme_name != "themeroller") return; var opts = $.extend(true, {}, $.tree.plugins.themeroller.defaults, this.settings.plugins.themeroller); this.containe...
JavaScript
(function ($) { if(typeof window.hotkeys == "undefined") throw "jsTree hotkeys: jQuery hotkeys plugin not included."; $.extend($.tree.plugins, { "hotkeys" : { bound : [], disabled : false, defaults : { hover_mode : false, functions : { "up" : function () { $.tree.plugins.hotkeys.get_prev.appl...
JavaScript
(function ($) { $.extend($.tree.plugins, { "contextmenu" : { object : $("<ul id='jstree-contextmenu' class='tree-context' />"), data : { t : false, a : false, r : false }, defaults : { class_name : "hover", items : { create : { label : "Create", icon : "create", ...
JavaScript
(function ($) { if(typeof $.cookie == "undefined") throw "jsTree cookie: jQuery cookie plugin not included."; $.extend($.tree.plugins, { "cookie" : { defaults : { prefix : "", // a prefix that will be used for all cookies for this tree options : { expires: false, path: false, domain:...
JavaScript
/* (c) Copyrights 2007 - 2008 Original idea by by Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ jQuery Plugin by Tzury Bar Yochay tzury.by@gmail.com http://evalinux.wordpress.com http://facebook.com/profile.php?id=513676303 Project's sites: http://code.google.com/p/js-hotkeys/ http://github....
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
/* * 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
(function($) { $.fn.pager = function(options) { var opts = $.extend({}, $.fn.pager.defaults, options); return this.each(function() { $(this).empty().append(renderpager(parseInt(options.pagenumber), parseInt(options.pagecount), options.buttonCli...
JavaScript
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="...
JavaScript
$(document).ready(function() { init(1); }); //默认加载 function init(pagenumber){ //向服务器发送请求,查询满足条件的记录 //$.getJSON('',{},function(data){ //data 为返回json 对象 并包括(pagecount、totalcount)的key-value值; jQuery.ajax({ type : 'Get', contentT...
JavaScript
(function($) { $.fn.overlay = function(options) { var opts = $.extend({}, $.fn.overlay.defaults, options); return this.each(function(evt) { if (!$(this).hasClass('overlay-trigger')) { show(create($(this), opts), opts); } }); }; function create($src, opts) { $src.addClass('overlay-trigger'...
JavaScript
$(function() { var par = window.parent; var iframe = par.document.getElementById("main_frame_id"); iframe.height=document.body.scrollHeight +60; }); function autoIframe(){ var par = window.parent; var iframe = par.document.getElementById("main_frame_id"); iframe.height=document.body.scrollHeight +60; }
JavaScript
jQuery .extend( { createUploadIframe : function(id, uri) { // create frame var frameId = 'jUploadFrame' + id; var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" style="position:absolute; top:-9999px; left:-9999px"'; if (window.ActiveXObject) { ...
JavaScript
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005 Jon Tirsen (http://www.tirsen.com) // (c) 2005 Michael Schuerig (http://www.schuerig.de/michael/) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software a...
JavaScript
/* * Fabtabulous! Simple tabs using Prototype * http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/ * Andrew Tetlaw * version 1.1 2006-05-06 * http://creativecommons.org/licenses/by-sa/2.5/ */ var Fabtabs = Class.create(); Fabtabs.prototype = { initialize : function(element) { th...
JavaScript
/** * modified by badqiu (badqiu(a)gmail.com) * blog: http://badqiu.javaeye.com * Project Home: http://code.google.com/p/rapid-validation/ * Rapid Framework Project Home: http://code.google.com/p/rapid-framework/ * Version 1.5.1 */ /* * Really easy field validation with Prototype * http://tetlaw.id.a...
JavaScript
//compatible with prototype if(typeof Prototype != 'undefined' && (typeof $ != 'undefined')) { $prototype = $; } // Tooltip Object var Tooltip = Class.create(); Tooltip.prototype = { initialize: function(el, options) { this.el = $prototype(el); this.initialized = false; this.setOptions(options); // Event...
JavaScript
$.request = (function () { var apiMap = {}; function request(queryStr) { var api = {}; if (apiMap[queryStr]) { return apiMap[queryStr]; } api.queryString = (function () { var urlParams = {}; var e, d = function (s) { return decodeURIComponent(s.replace(/\+/g, " ")); }, q = queryStr...
JavaScript
/*! * jQuery Form Plugin * version: 3.31.0-2013.03.27 * @requires jQuery v1.5 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form * Dual licensed under the MIT and GPL licenses: * http://malsup.github.com/mit-license.txt * ...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: tree.js 15149 2010-08-19 08:02:46Z monkey $ */ var icon = new Object(); icon.root = IMGDIR + '/tree_root.gif'; icon.folder = IMGDIR + '/tree_folder.gif'; icon.folderOpen = IMGDIR + '/tree_folderopen.gif...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: bbcode.js 19432 2010-12-31 03:57:14Z monkey $ */ var re; function addslashes(str) { return preg_replace(['\\\\', '\\\'', '\\\/', '\\\(', '\\\)', '\\\[', '\\\]', '\\\{', '\\\}', '\\\^', '\\\$', '\\\?', '\...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: admincp.js 16598 2010-09-10 03:12:36Z monkey $ */ function redirect(url) { window.location.replace(url); } function scrollTopBody() { return Math.max(document.documentElement.scrollTop, document.body....
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum_slide.js 4479 2010-02-27 10:40:20Z liyulong $ */ if(isUndefined(sliderun)) { var sliderun = 1; function slide() { var s = new Object(); s.slideId = Math.random(); s.slideSpeed = slide...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: home_drag.js 17522 2010-10-20 13:57:03Z monkey $ */ var Drags = []; var nDrags = 1; var mouseOffset = null; var iMouseDown = false; var lMouseState = false; var dragObject = null; var D...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: md5.js 15149 2010-08-19 08:02:46Z monkey $ */ var hexcase = 0; var chrsz = 8; function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz)); } function core_md5(x, len) { x[len >> 5]...
JavaScript
var userAgent = navigator.userAgent.toLowerCase(); var is_opera = userAgent.indexOf('opera') != -1 && opera.version(); var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3); var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf...
JavaScript
//Common var userAgent = navigator.userAgent.toLowerCase(); var is_opera = userAgent.indexOf('opera') != -1 && opera.version(); var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3); var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAge...
JavaScript
var $lang={ errAlertMsg: "Invalid date or the date out of range,redo or not?", aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], clearStr: "Clear", todayStr: "Today", okStr: "OK", updateStr: "Update", ...
JavaScript
var langList = [ {name:'en', charset:'UTF-8'}, {name:'zh-cn', charset:'gb2312'}, {name:'zh-tw', charset:'GBK'} ]; var skinList = [ {name:'default', charset:'gb2312'}, {name:'whyGreen', charset:'gb2312'} ];
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * @download http://www.codefans.net * 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...
JavaScript
(function(NS, CFG){ /** * @class XWBcontrol */ NS = window[NS] = {}; /** * @class XWBcontrol.util * Core API */ var document = window.document, String = window.String, view = document.defaultView, ua = navigator.userAgent.toLowerCase(), undefined, trimReg = new RegExp...
JavaScript
/** * unread js For DZ/DX * @author yaoying * @version $Id: xwb_unreadctr.js 1013 2012-09-25 03:55:45Z yaoying $ */ if(!window.xwbUnreadCtr){ window.xwbUnreadCtr = { uid: 0, allsum: 0, data: { followers: 0, dm: 0, mentions: 0, comments: 0, oauth2expire: 0 }, init: funct...
JavaScript
if(!window.xwbOw){ window.xwbOw = { show: function(owUid, owName, profileUrl, showAttention, tokenhash){ var fatherDom = document.getElementById('chart'); var p = document.createElement('p'); p.id = 'xwbofficewb'; //p.className = 'z'; if(showAttention && showAttention == 1){ p.innerHTML = ...
JavaScript
var __debug_mode = false; var scope = scope ? scope: {}; scope.$lang = scope.$lang ? scope.$lang: "zh"; var $SYSMSG = {}; $SYSMSG.extend = function(info, override) { for (var i in info) { $SYSMSG[i] = !!override == false ? info[i] : $SYSMSG[i] } }; scope.$BASEJS = "http://tjs.sjs.sinajs.c...
JavaScript
var _userDataSearched = []; var oldAuthor = showauthor; var showauthor = function (ctrlObj, menuId){ oldAuthor.apply(this, arguments); var pid = menuId.replace('userinfo', ''); var node = document.getElementById(menuId); var SinaIdObject = document.getElementById('UserSinaId' + pid); var SinaId = Si...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: tree.js 23838 2011-08-11 06:51:58Z monkey $ */ var icon = new Object(); icon.root = IMGDIR + '/tree_root.gif'; icon.folder = IMGDIR + '/tree_folder.gif'; icon.folderOpen = IMGDIR + '/tree_folderopen.gif...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: bbcode.js 31520 2012-09-05 05:50:12Z chenmengshu $ */ var re, DISCUZCODE = []; DISCUZCODE['num'] = '-1'; DISCUZCODE['html'] = []; EXTRAFUNC['bbcode2html'] = []; EXTRAFUNC['html2bbcode'] = []; function ...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: swfupload.js 28981 2012-03-21 06:43:44Z zhengqingpeng $ */ var SWFUpload; var swfobject; if (SWFUpload == undefined) { SWFUpload = function (settings) { this.initSWFUpload(settings); }; } SWFUp...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: admincp.js 31416 2012-08-27 07:50:15Z zhangguosheng $ */ function redirect(url) { window.location.replace(url); } function scrollTopBody() { return Math.max(document.documentElement.scrollTop, documen...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: swfupload.queue.js 23838 2011-08-11 06:51:58Z monkey $ */ var SWFUpload; if (typeof(SWFUpload) === "function") { SWFUpload.queue = {}; SWFUpload.prototype.initSettings = (function (oldInitSettings) { ...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id$ */ var _share_tencent_weibo = function() { var share_btn = function(_arr) { if (_arr[0]) { return _arr[0]; } else { var o = document.createElement("a"...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum_slide.js 23838 2011-08-11 06:51:58Z monkey $ */ if(isUndefined(sliderun)) { var sliderun = 1; function slide() { var s = new Object(); s.slideId = Math.random(); s.slideSpeed = slideS...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: home_drag.js 23838 2011-08-11 06:51:58Z monkey $ */ var Drags = []; var nDrags = 1; var mouseOffset = null; var iMouseDown = false; var lMouseState = false; var dragObject = null; var D...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: md5.js 29228 2012-03-30 01:46:00Z monkey $ */ var hexcase = 0; var chrsz = 8; function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz)); } function core_md5(x, len) { x[len >> 5]...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ function FileProgress(file, targetID) { this.fileProgressID = file.id; thi...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: imgcropper.js 30998 2012-07-06 07:22:08Z zhangguosheng $ */ (function(){ ImgCropper = function() { this.options = { opacity: 50, color: "", width: 0, height: 0, resize: false...
JavaScript
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: logging.js 23838 2011-08-11 06:51:58Z monkey $ */ function lsSubmit(op) { var op = !op ? 0 : op; if(op) { $('lsform').cookietime.value = 2592000; } if($('ls_username').value == '' || $('ls_password...
JavaScript
function submitForm() { if (dialogHtml == '') { dialogHtml = $('siteInfo').innerHTML; $('siteInfo').innerHTML = ''; } showWindow('open_cloud', dialogHtml, 'html'); $('fwin_open_cloud').style.top = '80px'; $('cloud_api_ip').value = cloudApiIp; return false; } function dealHandle(msg) { ...
JavaScript
var userAgent = navigator.userAgent.toLowerCase(); var is_opera = userAgent.indexOf('opera') != -1 && opera.version(); var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3); var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf...
JavaScript
//Common var userAgent = navigator.userAgent.toLowerCase(); var is_opera = userAgent.indexOf('opera') != -1 && opera.version(); var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3); var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAge...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: soso_smilies.js 28110 2012-02-22 08:54:16Z songlixin $ */ var sosojs = document.createElement('script'); sosojs.type = 'text/javascript'; sosojs.charset = "utf-8"; sosojs.src = 'http://bq.soso.com/js/so...
JavaScript
var sPop = null; var pltsoffsetX = 10; var pltsoffsetY = 15; document.write('\ <style type="text/css"> \ #popLayer { \ position:absolute; \ Z-INDEX: 1000; \ text-align : left; \ white-space: nowrap; \ font-family: Tahoma, Verdana; \ visibility: hidden; \ } \ </style> \ <div id="popLayer...
JavaScript
function mw_syntaxhighlighter(textareaid) { if(textareaid == 'fastpost') { var code = $('fastpostcode'); if(code) { code.onclick = function() { syntaxhighlighter_code_box('fastpost'); }; } } else if(textareaid == 'newthread') { var code = $(editorid + '_code'); if(code) { code.on...
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
/** * 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