code
stringlengths
1
2.08M
language
stringclasses
1 value
// ** I18N // Calendar SK language // Author: Peter Valach (pvalach@gmx.net) // Encoding: utf-8 // Last update: 2003/10/29 // Distributed under the same terms as the calendar itself. // full day names Calendar._DN = new Array ("NedeÄľa", "Pondelok", "Utorok", "Streda", "Ĺ tvrtok", "Piatok", "Sob...
JavaScript
// ** I18N Afrikaans Calendar._DN = new Array ("Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrydag", "Saterdag", "Sondag"); Calendar._MN = new Array ("Januarie", "Februarie", "Maart", "April", "Mei", "Junie", "Julie", "Augustus", "September", "Oktober", "November", "...
JavaScript
// ** I18N // Calendar RU language // Translation: Sly Golovanov, http://golovanov.net, <sly@golovanov.net> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationali...
JavaScript
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mishoo@infoiasi.ro> // Encoding: any // Translator : Niko <nikoused@gmail.com> // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real...
JavaScript
// ** I18N // Calendar FI language (Finnish, Suomi) // Author: Jarno Käyhkö, <gambler@phnet.fi> // Encoding: UTF-8 // Distributed under the same terms as the calendar itself. // full day names Calendar._DN = new Array ("Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "...
JavaScript
// ** I18N Calendar._DN = new Array ("Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"); Calendar._SDN_len = 2; Calendar._MN = new Array ("Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", ...
JavaScript
// ** I18N // Calendar NO language // Author: Daniel Holmen, <daniel.holmen@ciber.no> // Encoding: UTF-8 // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also ple...
JavaScript
// ** I18N Calendar._DN = new Array ("Duminică", "Luni", "Marţi", "Miercuri", "Joi", "Vineri", "Sâmbătă", "Duminică"); Calendar._SDN_len = 2; Calendar._MN = new Array ("Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noie...
JavaScript
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mihai_bazon@yahoo.com> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please ...
JavaScript
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mihai_bazon@yahoo.com> // Translator: Fabio Di Bernardini, <altraqua@email.it> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the...
JavaScript
// ** I18N // Calendar PL language // Author: Artur Filipiak, <imagen@poczta.fm> // January, 2004 // Encoding: UTF-8 Calendar._DN = new Array ("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"); Calendar._SDN = new Array ("N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N");...
JavaScript
/* calendar-cs-win.js language: Czech encoding: windows-1250 author: Lubos Jerabek (xnet@seznam.cz) Jan Uhlir (espinosa@centrum.cz) */ // ** I18N Calendar._DN = new Array('Neděle','Pondělí','Úterý','Středa','Čtvrtek','Pátek','Sobota','Neděle'); Calendar._SDN = new Array('Ne','Po','Út','St','Čt...
JavaScript
/* Slovenian language file for the DHTML Calendar version 0.9.2 * Author David Milost <mercy@volja.net>, January 2004. * Feel free to use this script under the terms of the GNU Lesser General * Public License, as long as you do not remove or alter this notice. */ // full day names Calendar._DN = new Array ("Ne...
JavaScript
// Calendar ALBANIAN language //author Rigels Gordani rige@hotmail.com // ditet Calendar._DN = new Array ("E Diele", "E Hene", "E Marte", "E Merkure", "E Enjte", "E Premte", "E Shtune", "E Diele"); //ditet shkurt Calendar._SDN = new Array ("Die", "Hen", "Mar", "Mer", "Enj", "Pre", "Sht", "Die")...
JavaScript
// ** I18N // Calendar PL language // Author: Dariusz Pietrzak, <eyck@ghost.anime.pl> // Author: Janusz Piwowarski, <jpiw@go2.pl> // Encoding: utf-8 // Distributed under the same terms as the calendar itself. Calendar._DN = new Array ("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Pi...
JavaScript
/* Croatian language file for the DHTML Calendar version 0.9.2 * Author Krunoslav Zubrinic <krunoslav.zubrinic@vip.hr>, June 2003. * Feel free to use this script under the terms of the GNU Lesser General * Public License, as long as you do not remove or alter this notice. */ Calendar._DN = new Array ("Nedjelja",...
JavaScript
// ** I18N // Calendar big5-utf8 language // Author: Gary Fu, <gary@garyfu.idv.tw> // Encoding: utf8 // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please ...
JavaScript
// script.aculo.us slider.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 // Copyright (c) 2005-2008 Marty Haught, Thomas Fuchs // // 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/ if (!Control) var Control = { }; /...
JavaScript
// script.aculo.us sound.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 // Copyright (c) 2005-2008 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 // "Software"),...
JavaScript
// script.aculo.us builder.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 // Copyright (c) 2005-2008 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/ va...
JavaScript
<script type="text/javascript"> if (getCookie("username") != null) { $("j_username").value = getCookie("username"); $("j_password").focus(); } else { $("j_username").focus(); } function saveUsername(theForm) { var expires = new Date(); expires.setTime(expires...
JavaScript
/* This function is used to change the style class of an element */ function swapClass(obj, newStyle) { obj.className = newStyle; } function isUndefined(value) { var undef; return value == undef; } function checkAll(theForm) { // check all the checkboxes in the list for (var i=0;i<theForm.element...
JavaScript
function clearErrorMessages(form) { // clear out any rows with an "errorFor" attribute var divs = form.getElementsByTagName("div"); var paragraphsToDelete = new Array(); for(var i = 0; i < divs.length; i++) { var p = divs[i]; if (p.getAttribute("errorFor")) { paragraphsToDelete.pu...
JavaScript
var patterns = new PropertyStorage(global.localStorage, { 'data.patternlistA': [], 'data.patternlistB': [], 'data.patternlistC': [], 'data.patternlistD': [], 'data.patternlistE': [], 'data.patternlistF': [], 'data.patternlistG': [] }); var userdata = new PropertyStorage(global.localStorage,...
JavaScript
/** @private */ var omniiconPath = null; /** @param {boolean} val */ function updateOmniIcon(val) { omniiconPath = val; } /** @param {Tab|TabState} tab */ function refreshOmniIcon(tab) { var path = !omniiconPath ? 'icon16d' : (tab.whitelisted ? 'whitelisted' : (tab.blacklisted ? 'blacklisted' : 'icon16')); chrom...
JavaScript
/** * @param {SimpleFilter|AccessFilter} filter * @return {SimpleFilter} */ function simplifyFilter(filter) { return { 'enabled': filter.enabled, 'pattern': filter.pattern }; } /** * @param {Array.<ContentFilter>} groups * @param {string} url * @param {boolean=} all * @return {Array.<Si...
JavaScript
/** @define {boolean} */ var DEBUG = true; PathManager.registerPath('/', ['json']); PathManager.registerPath('html/', ['html']); PathManager.registerPath('css/', ['css']); PathManager.registerPath('graph/', ['png', 'gif', 'jpg']); // avoid certain channels var rxFile = /^file:/; var rxAbout = /^about:/; var rxChrome ...
JavaScript
/** @define {boolean} */ var DEBUG = true; var background = chrome.extension.getBackgroundPage(); var getPersistentData = background['getPersistentData']; var setPersistentData = background['setPersistentData']; var resetPersistentData = background['resetPersistentData']; /** * @param {string} key * @param {boolean...
JavaScript
/** @define {boolean} */ var DEBUG = true; (new Image()).src = '../graph/toolbarItemSelected.png'; (new Image()).src = '../graph/toolbarIcons.png'; (new Image()).src = '../graph/griph.png'; (new Image()).src = '../graph/gripv.png'; (new Image()).src = '../graph/extButtons.png'; (new Image()).src = '../graph/statusbarB...
JavaScript
/** @private */ var preferences = {}; /** @private */ var requested = false; /** @private */ var trackedControllers = []; /** @private */ var panelEventsListener = nop; /** @define {boolean} */ var DEBUG = true; function loadTabResources() { chrome.extension.sendRequest({ 'type': 'tabResources' }, ...
JavaScript
global['FlashControl'] = function() {}; function insertFlashCSSRuleset() { var c = '/*FlashControl*/object[type$="x-shockwave-flash"]:not([classid]),object[type$="futuresplash"]:not([classid]),embed[type$="x-shockwave-flash"],embed[type$="futuresplash"]{display:none !important}'; var n = document.querySelector...
JavaScript
/** @private */ var broadcaster = new Broadcaster(); /** @const */ var POSTPROCESS_EVENT = 'onPostProcess'; /** @const */ var PREPROCESS_EVENT = 'onPreProcess'; /** @const */ var DESTROY_EVENT = 'onDestroy'; /** @const */ var processor = { init: function() { broadcaster.addEvent(PREPROCESS_EVENT, POSTPR...
JavaScript
/** @private */ var filterset = null; /** @private */ var getAccessPermission = nop; /** @private */ var accessStrings = ['always', 'sameDomain', 'never']; /** @enum {number} */ var pluginStates = { BLOCKED: 0x01, ALLOWED: 0x02, REMOVED: 0x04, CAPTURED: 0x08 }; /** * @param {string} src * @return ...
JavaScript
/** @type {window.WebKitMutationObserver} */ var observer; /** @const */ var tags = 'object,embed'; /** @const */ var pid = 'fcte_' + (+new Date); /** @public */ var trackedEvents = new ManagedArray(); /** * @param {Node} info * @constructor */ function Resource(info) { this.element = info; this.id = in...
JavaScript
/** @typedef {{name:string, load:Function, unload:Function}} */ var Module; /** * @type {?Module} * @private */ var currentModule; /** @private */ var defaultState = policy.pluginStates.BLOCKED; /** * @type {Array.<boolean>} * @private */ var trackedContent = []; /** @param {boolean} increment */ function cou...
JavaScript
/** @constructor */ function Emitter() { /** @private */ this.listeners = []; } /** @param {Function} callback */ Emitter.prototype.attach = function(callback) { for (var i = 0, il = this.listeners.length; i < il; i++) { if (this.listeners[i] === callback) return; } this.listeners.push(callback); }; /** @par...
JavaScript
/** @const */ var MarkupUtil = { src: /\.swf\b/i, type: /^application\/(x-shockwave-flash|futuresplash)$/i, clsid: /D27CDB6E-?AE6D-?11cf-?96B8-?444553540000/i }; /** * @param {Node} element * @return {boolean} */ function isValidNestedObject(element) { var parent = element.parentNode; return !(...
JavaScript
/** * @param {Function} fn * @param {Function} fnA * @param {Object|undefined} scope * @return {Function} */ function interceptFunction(fn, fnA, scope) { return function() { fn.apply(global, arguments) && fnA.apply(scope || global, arguments); } } /** @param {...*} args */ function queueFunction(args) { va...
JavaScript
/** * @param {!string} tpl * @param {...*} args * @return {string} */ function formatString(tpl, args) { var vals = Array.prototype.slice.call(arguments, 1); return arguments[0].replace(/\{\d+\}/g, function(capture) { return vals[capture.match(/\d+/)]; }); }
JavaScript
/** @const */ var ColorPickerUtil = { components: { 'RGB': { 'Red': 255, 'Green': 255, 'Blue': 255, 'Alpha': 100 }, 'HSV': { 'Hue': 360, 'Saturation': 100, 'Value': 100 }, 'rgb': { ...
JavaScript
/** * @param {string} selector * @constructor */ function CSSFormatRule(selector) { this.selector = selector; this.declarations = Object.create(null); } /** * @param {string} key * @param {string|number} val * @param {boolean} priority */ CSSFormatRule.prototype.addDeclaration = function(key, val, priority) ...
JavaScript
/** @const */ var HtmlUtil = { uid: 1, uky: 'fcst_' + (+new Date), storage: Object.create(null) }; /** * @param {string} name * @param {Object=} attr * @param {Node=} content * @return {Node} */ function createElement(name, attr, content) { var element = document.createElement(name); attr && setAttributes(e...
JavaScript
/** @const */ var RegExpUtil = { 'meta': /([.*:;'"!@#$%^&?\-+=<>\\\/~`|(){}\[\]])/g, 'metachars': /(\\[bcdfnrtvsw])/ig, 'enc': /^\/.*\/$/ }; /** * @param {Object|string} obj * @return {boolean} */ function isRegex(obj) { return RegExpUtil.enc.test(obj); } /** * @param {Object|string} str * @return {string} ...
JavaScript
/** * @param {Function} callback * @param {number} ms * @constructor */ function Timer(callback, ms) { this.interval = ms; this.callback = callback; /** @private */ this.enabled = false; /** @private */ this.birth = 0; /** @private */ this.id = null; } Timer.prototype.start = fu...
JavaScript
/** * @param {*} obj * @return {string} */ function typeOf(obj) { var v; if (v = /(undefined|string|number|boolean)/.exec(typeof obj)) return v[1]; var type = Object.prototype.toString.call( /** @type {Object} */ (obj)).toLowerCase(); return /\b([a-z]+).$/i.exec(type)[1]; } /** * @param {*} obj *...
JavaScript
/** @const */ var ColorUtil = {}; /** * @const * @type {RegExp} */ ColorUtil.components = /rgba\((\d+),\s?(\d+),\s?(\d+),\s?((?:\d+\.)?\d+)\)/i; /** * @const * @type {string} */ ColorUtil.alphanums = '0123456789ABCDEF'; /** * @param {RGBA} obj * @return {string} */ ColorUtil.RGBA_STR = function(obj) { retu...
JavaScript
/** * @param {number} timediff * @param {number} base * @param {number} change * @param {number} duration * @return {number} */ function easeExpoOut(timediff, base, change, duration) { return (timediff == duration) ? base + change : change * (-Math.pow(2, -10 * timediff / duration) + 1) + base; } /...
JavaScript
/** @const */ var AnimationUtil = { regexpColor: /#([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})|rgba?\((\d+)\D+(\d+)\D+(\d+)\D*\d*\)/i, /** * @param {string} value * @return {{r,g,b}|undefined} */ parseColor: function(value) { var val; if (val = AnimationUtil.regexpColor.exe...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIInputBox(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUIInputBox.prototype = Object.create(GUIRectangle.prototype); GUIInputBox.prototype.constructor = GUIInputBox; /** @param {string|number} value */ GU...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUISplitter(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.axisOffset = null; this.grip = null; this.glassPane = null; this.min = 10; this.max = 90; this.length = 0; this.axis = 'x'; this.kw = 'client...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIEditableText(args) { GUIRectangle.prototype.constructor.apply(this, arguments); var node = createElement('div', null, createElement('input', { className: 'gui-InputBox editable-input', type: 'text' })); ...
JavaScript
/** * @param {string} args * @constructor */ function GUIRectangle(args) { this.guid = GUIRectangle.createUniqueID(); this.callbackString = args; } /** @return {number} */ GUIRectangle.createUniqueID = function() { return GUIRectangle.counter++; }; GUIRectangle.counter = 1; /** @return {number} */ GUIRectangl...
JavaScript
/** * @param {string=} args * @extends {GUIPanel} * @constructor */ function GUIListItem(args) { GUIPanel.prototype.constructor.apply(this, arguments); } GUIListItem.prototype = Object.create(GUIPanel.prototype); GUIListItem.prototype.constructor = GUIListItem; /** @override */ GUIListItem.prototype.loadHTMLSet...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUILabel(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUILabel.prototype = Object.create(GUIRectangle.prototype); GUILabel.prototype.constructor = GUILabel; /** @param {string} text */ GUILabel.prototype.set...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIText(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUIText.prototype = Object.create(GUIRectangle.prototype); GUIText.prototype.constructor = GUIText; /** @param {string} text */ GUIText.prototype.setText ...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIImage(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUIImage.prototype = Object.create(GUIRectangle.prototype); GUIImage.prototype.constructor = GUIImage; GUIImage.prototype.widgetType = 'Image';
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUILabeledCheckBox(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.checkbox = ComponentManager.create('CheckBox', 'lccb' + this.guid); this.checkbox.setParent(this); this.text = ComponentManager.create('Tex...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIOption(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUIOption.prototype = Object.create(GUIRectangle.prototype); GUIOption.prototype.constructor = GUIOption; GUIOption.prototype.widgetType = 'Option';
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUITabbedPanel(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.upperPanel = ComponentManager.create('TabButtonsPanel', 'tbp' + this.guid); this.upperPanel.setParent(this); this.panelsList = []; } GUITabbed...
JavaScript
/** * @param {{source:GUIRectangle, event:(GUIEvent|Event)}} config * @constructor */ function GUIEvent(config) { this.source = config.source; this.event = config.event; } /** * @param {number} lvl * @return {GUIEvent|Event} */ GUIEvent.prototype.unpack = function(lvl) { var e = this; while (lvl--) e = e.ev...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIConsole(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.panel = null; this.input = null; this.history = new Queue(); this.historyPointer = -1; } GUIConsole.prototype = Object.create(GUIRectangle.protot...
JavaScript
/** * @param {string=} args * @extends {GUICheckBox} * @constructor */ function GUIRadioButton(args) { GUICheckBox.prototype.constructor.apply(this, arguments); this.groupName = 'undefined'; } GUIRadioButton.prototype = Object.create(GUICheckBox.prototype); GUIRadioButton.prototype.constructor = GUIRadioButton;...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIPanel(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.widgets = []; } GUIPanel.prototype = Object.create(GUIRectangle.prototype); GUIPanel.prototype.constructor = GUIPanel; /** @override */ GUIPanel.prot...
JavaScript
/** * @param {string=} args * @extends {GUIPanel} * @constructor */ function GUIComboBox(args) { GUIPanel.prototype.constructor.apply(this, arguments); } GUIComboBox.prototype = Object.create(GUIPanel.prototype); GUIComboBox.prototype.constructor = GUIComboBox; /** @return {number} */ GUIComboBox.prototype.getS...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIButton(args) { GUIRectangle.prototype.constructor.apply(this, arguments); } GUIButton.prototype = Object.create(GUIRectangle.prototype); GUIButton.prototype.constructor = GUIButton; GUIButton.prototype.widgetType = 'Button';
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIListBox(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.items = []; this.selectedIndex = -1; this.selectedItem = null; } GUIListBox.prototype = Object.create(GUIRectangle.prototype); GUIListBox.prototyp...
JavaScript
/** * @param {string=} args * @extends {GUIPanel} * @constructor */ function GUIStatusBar(args) { GUIPanel.prototype.constructor.apply(this, arguments); } GUIStatusBar.prototype = Object.create(GUIPanel.prototype); GUIStatusBar.prototype.constructor = GUIStatusBar; /** @override */ GUIStatusBar.prototype.getEve...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIFilterList(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.hostname = ComponentManager.create('InputBox', 'flib' + this.guid); this.hostname.setParent(this); this.patterns = ComponentManager....
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUICheckBox(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.checked = false; this.height = 16; this.width = 16; } GUICheckBox.prototype = Object.create(GUIRectangle.prototype); GUICheckBox.prototype.constr...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUIFormInput(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.inputbox = ComponentManager.create('InputBox', 'fiib' + this.guid); this.inputbox.setParent(this); this.submit = ComponentManager.cre...
JavaScript
/** * @param {string=} args * @extends {GUIRectangle} * @constructor */ function GUILabeledRadioButton(args) { GUIRectangle.prototype.constructor.apply(this, arguments); this.radiobutton = ComponentManager.create('RadioButton', 'lcrb' + this.guid); this.radiobutton.setParent(this); this.text = ComponentManager...
JavaScript
/** @param {boolean} display */ function displayShade(display) { if (display) { if (document.getElementById('Shade')) return; insertElement(document.body, 'beforeEnd', createElement('div', { id: 'Shade' })); } else { var node = document.getElementById('Shade'); node.parentNode.removeChild(node); } }
JavaScript
/** * @param {string=} args * @extends {GUIPanel} * @constructor */ function GUITabButtonsPanel(args) { GUIPanel.prototype.constructor.apply(this, arguments); } GUITabButtonsPanel.prototype = Object.create(GUIPanel.prototype); GUITabButtonsPanel.prototype.constructor = GUITabButtonsPanel; /** @override */ GUITa...
JavaScript
/** @enum {string} */ var TabEvents = { COMPLETE: 'complete', CREATED: 'created', FOCUSED: 'focused', LOADING: 'loading', REMOVED: 'removed' }; /** @const */ var TabUtil = { /** * @param {number} num * @return {Function} */ nRule: function(num) { var o = num; return function(tab) { return o === ta...
JavaScript
/** @const */ var ComponentManager = { /** * @param {string} name * @param {Function} ctor */ register: function(name, ctor) { typeof ctor === 'function' && (ComponentManager.components[name] = ctor); }, /** * @param {string} name * @return {boolean} */ isRegistered: function(name) { return name i...
JavaScript
/** @interface */ function FilterStoreAdapter() {} /** @return {Array.<SimpleFilter|ContentFilter>} */ FilterStoreAdapter.prototype.getData = function() {}; /** @param {Array.<SimpleFilter|ContentFilter>} data */ FilterStoreAdapter.prototype.setData = function(data) {}; /** * @param {FilterStoreAdapter} adapter *...
JavaScript
/** @const */ var PathManager = { pathStack: {}, /** * @param {string} file * @return {?string} */ getPath: function(file) { var v; if (!(v = /\.(.*)$/.exec(file))) return null; function eRule(s) { return function(ext) { return s === ext;...
JavaScript
/** @const */ var global = this; /** @const */ var webkitCompat = 'WebKitMutationObserver' in global; /** @const */ var chromeVer = +/Chrom(?:e|ium)\/(\d+)/.exec(global.navigator.appVersion)[1]; /** * @param {Object} target * @param {Object} props * @return {Object} */ function link(target, props) { for (va...
JavaScript
/** @constructor */ function Queue() { /** @private */ this.queue = []; /** @private */ this.space = 0; } /** @return {number} */ Queue.prototype.size = function() { return this.queue.length - this.space; }; /** @return {boolean} */ Queue.prototype.empty = function() { return this.queue.length < 1; }; Queue...
JavaScript
/** @typedef {{type:string, key:string, oldVal:*, newVal:*}} */ var PropertyStorageEvent; /** * @param {Object=} store * @param {Object=} defaults * @constructor * @extends {Broadcaster} */ var PropertyStorage = function(store, defaults) { Broadcaster.prototype.constructor.apply(this); this.addEvent('clear', 'u...
JavaScript
/** @constructor */ function HTMLGUIElement() { this.id = 'unknown'; this.node = null; this.name = 'unknown'; this.nodes = []; this.aliases = []; this.dataset = {}; this.prevSibling = null; this.nextSibling = null; } /** @param {Node} element */ HTMLGUIElement.prototype.setElement = function(element) { this....
JavaScript
/** @const */ var URIUtils = { regex: /^((?:[a-z]+:(?:[a-z]*:)?\/\/))([^/]+)/i }; /** @return {Object} */ function parseQueryParams() { var kv; var params = {}; var query = document.location.search.substring(1).split('&'); query.forEach(function(pair) { kv = pair.split('='); params...
JavaScript
(function() { var defaults; var apps = {}; var themesLoaded = {}; var widgetsets = {}; var log; if (typeof console === "undefined" || !window.location.search.match(/[&?]debug(&|$)/)) { //If no console.log present, just use a no-op log = function() {}; } else if (typeof console.log === "fun...
JavaScript
l6b(Rc)(11);
JavaScript
l6b(Rc)(36);
JavaScript
l6b(Rc)(30);
JavaScript
l6b(Rc)(20);
JavaScript
l6b(Rc)(9);
JavaScript
l6b(Rc)(12);
JavaScript
l6b(Rc)(24);
JavaScript
l6b(Rc)(15);
JavaScript
l6b(Rc)(2);
JavaScript
l6b(Rc)(27);
JavaScript
l6b(Rc)(29);
JavaScript
l6b(Rc)(34);
JavaScript
l6b(Rc)(19);
JavaScript
l6b(Rc)(26);
JavaScript
l6b(Rc)(17);
JavaScript
l6b(Rc)(28);
JavaScript