code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.MenuItem");...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.ContextMenu...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLComboBo...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLButton"...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.ComboBox");...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.Tabs"); do...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.InlineEditB...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.Menu"); ...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.Parse"); ...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLMenu");...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLContext...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLResizab...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.SVGButton")...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.hostenv.conditionalLoadModule({ commo...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.Button"); ...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.SlideShow")...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.HTMLMenuIte...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgets.DropdownBut...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.SvgWidget"); dojo....
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.widgetManager"); d...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.hostenv.conditionalLoadModule({ commo...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.HtmlWidget"); dojo...
JavaScript
/* Copyright (c) 2004-2005, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.webui.DomWidget"); dojo....
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
// A modified version of bitmap.js from http://rest-term.com/archives/2566/ var Class = { create : function() { var properties = arguments[0]; function self() { this.initialize.apply(this, arguments); } for(var i in properties) { self.prototype[i] = properties[i]; } if(!self.proto...
JavaScript
/* Base.js, version 1.1 Copyright 2006-2007, Dean Edwards License: http://www.opensource.org/licenses/mit-license.php */ var Base = function() { // dummy }; Base.extend = function(_instance, _static) { // subclass var extend = Base.prototype.extend; // build the prototype Base._prototyping = true; var proto...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. 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 law or agreed to in writing, software di...
JavaScript
// Spectrum: The No Hassle Colorpicker // https://github.com/bgrins/spectrum // Author: Brian Grinstead // License: MIT // Requires: jQuery, spectrum.css (function (window, $, undefined) { var defaultOpts = { // Events beforeShow: noop, move: noop, change: noop, sho...
JavaScript
/** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * @link http://www.phpied.com/rgb-color-parser-in-javascript/ * @license Use it if you like it */ function RGBColor(color_string) { this.ok = false; // strip any leading # if (color_string.charAt(0) == '#') { ...
JavaScript
/* * canvg.js - Javascript SVG parser and renderer on Canvas * MIT Licensed * Gabe Lerner (gabelerner@gmail.com) * http://code.google.com/p/canvg/ * * Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/ */ if(!window.console) { window.console = {}; window.console.log = func...
JavaScript
/** JSZip - A Javascript class for generating Zip files <http://jszip.stuartk.co.uk> (c) 2009 Stuart Knightley <stuart [at] stuartk.co.uk> Licenced under the GPLv3 and the MIT licences Usage: zip = new JSZip(); zip.add("hello.txt", "Hello, World!").add("tempfile", "nothing"); zip.folder("images").add("smile...
JavaScript
/* * Port of a script by Masanao Izumo. * * Only changes : wrap all the variables in a function and add the * main function to JSZip (DEFLATE compression method). * Everything else was written by M. Izumo. * * Original code can be found here: http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt *...
JavaScript
/* * QUnit - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2009 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. */ (function(window) { var QUnit = { // Initialize the configuration options init: funct...
JavaScript
/** * @license * * Copyright 2011 Google Inc. * * 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
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
// Copyright 2011 Google /** * 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 law or agreed to in wri...
JavaScript
/// <reference path="jquery-1.4.2.js" /> $(function() { $('input').each(function() { var self = $(this); if (self.hasClass('login-ipt')) { var ele = "<span class='ipt-span'></span>"; self.wrap(ele); if (self.hasClass('ipt-nosel')) { self.parent('span.ipt-span').addClass('nosel'); } else { se...
JavaScript
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GP...
JavaScript
var Tree; if(!Tree){ Tree={} } Tree.Init = function(){ $('#div-tree').menuTree(); }
JavaScript
/* * jQuery Form Plugin * version: 2.40 (26-FEB-2010) * @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 */ ; (func...
JavaScript
var Main; if(!Main){ Main = {}; } Main.Init = function(){ Common.Init(); Tree.Init(); $("ul.ctab>li>a").click(function(){ var id = this.hash.substr(1); var descDiv = "tab-content-"+id; $("ul.ctab>li>a").removeClass("sel"); $(this).addClass("sel"); var contentDiv = $(this).parent().parent().next(); $("d...
JavaScript
(function($) { // time $.blockUI.defaults.fadeIn = 200; $.blockUI.defaults.fadeOut = 200; // loading $.blockUI.defaults.message = "<h1 style='margin: 5px;'>请稍候 ... </h1>"; // css $.blockUI.defaults.css.border = "none"; $.blockUI.defaults.css.baseZ = 1003; $.blockUI.defaults....
JavaScript
/*! * jQuery Form Plugin * version: 2.93 (30-NOV-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 */ ;...
JavaScript
/*! * jQuery blockUI plugin * Version 2.31 (06-JAN-2010) * @requires jQuery v1.2.3 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2008 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/lice...
JavaScript
var Index; if (!Index) { Index = {}; }; function releaseLock(meetingId,pptId) { //$.get(CONTROL_SYSTEM_ADDRESS + "/rest/control/" + meetingId+"/" + pptId + "/0/0"); $.getJSON(CONTEXT_PATH + "/Meeting/releaseLock/" + meetingId + "/" + pptId ,function (data){ if (data.success) { $.ActionResponse('', '释放控制', '已向控制...
JavaScript
var Login; if(!Login){ Login={}; } Login.Init = function(){ $('input.login-ipt').bind('focus',function(){ $('#validate_msg').text(''); }); $('#loginForm').ajaxForm({ dataType: 'json', success: function(data) { if (data.success) { window.location.assign(data.url); ...
JavaScript
// jQuery Menu Tree Plugin // // Version 1.0 // // Usage: $('.menuTree').menuTree( options, callback ) // // Options: // menuEvent - event to trigger expand/collapse; default = click // expandSpeed - default = 500 (ms); use -1 for no animation // ...
JavaScript
/// <reference path="jquery.js" /> /// <reference path="jquery.form-extensions.js" /> (function($) { $.fn.datetimepicker = function(options) { // if (arguments.length > 2) { // if (arguments[1] == "minDate") // this.data('mintime', new Date(arguments[2])); // else...
JavaScript
/// <reference path="jquery.js" /> /// <reference path="jquery.form-extensions.js" /> (function($) { $.widget("ui.pages", { _init: function() { this.options = $.extend({}, $.ui.pages.defaults, this.options); this.options.event += '.pages'; // namespace event this....
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
$().ready(function(){ $("#loading").ajaxStart(function(){ $(this).show(); }).ajaxComplete(function(){ $(this).hide(); }); $('.u-file-c').addClass('u-file-btn') ; $('.u-file-c').each(function(i, el){ $(this).html($(this).html()); }); $("#client_file_path").attr("readonly", "readonly"); $("input:file"...
JavaScript
$(document).ready(function() { initializeMapCanvas(); showStation(); showTaxi(); }); var baseURL = document.getElementById("page:navigation:ctx").value + "/"; var taxiStandIcon = baseURL + "image/taxi-stand.png"; var taxiIconGreen = baseURL + "image/taxi-green.png"; var taxiIconYellow = baseURL + "image/taxi-yellow...
JavaScript
/* Clean up options from root doc for removed or empty toolbars */ /* Original: handleOptions() => taken from TotalToolbar 1.8 by alta88 */ function handleOptions(aType, toolbar, aNavToolbox) { if (toolbar.localName != "toolbar") return; let attr = "_toolbar." + toolbar.id + "."; let toolbar...
JavaScript
window.addEventListener("DOMContentLoaded", aios_init, false); document.getElementById('search-box').parentNode.setAttribute('id', 'places-toolbar'); var aios_checkElems = new Array( 'aios-enableAutoClose', 'aios-rememberFolder', 'aios-scrollToFolder', 'aios-viewClose' ); var aios_managerWindow = document.getE...
JavaScript
// Window-Element ermitteln var conWindow; if(document.getElementById('JSConsoleWindow')) conWindow = document.getElementById('JSConsoleWindow'); if(document.getElementById('Console2Window')) conWindow = document.getElementById('Console2Window'); /* Initialisierung => Aufruf durch onload in console.xul ...
JavaScript
// globale Variablen für Preferences-Zugriff var aios_pBranch = Components.interfaces.nsIPrefBranch; var aios_gPref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService); var aios_gPrefBranchN = aios_gPref.getBranch(null); var aios_gPrefBranch = aios_gPref.get...
JavaScript
/** * Fixes für andere Erweiterungen * => Aufruf durch aios_initSidebar() in aios.js **/ function aios_improveCompatibility() { // Console2 if(document.getElementById('viewConsole2Sidebar')) { //var timer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfa...
JavaScript
window.addEventListener("DOMContentLoaded", aios_init, false); var aios_managerWindow, aios_posElem, aios_Interval; var aios_IntervalCount = 0; var aios_inSidebar = (top.document.getElementById('sidebar-box')) ? true : false; var aios_loc = window.location.href; /* Fix für Clean-Button im Downloads-Panel */ if(ai...
JavaScript
/** * Breite der vertikalen Toolbar bei jeder Änderung der Toolbox (Drag 'n Drop) neu definieren **/ var fx_toolboxChanged = toolboxChanged; toolboxChanged = function() { fx_toolboxChanged(); aios_WIN.aios_adjustToolboxWidth(); }; /** * Positionierung des Dialogs unter Mac OS X verhindern ...
JavaScript
// dem Sidebarheader eine ID zuweisen => dann per CSS ansprechbar (bei load oder DOMContentLoaded zu spät) //top.document.getElementById("sidebar-throbber").parentNode.setAttribute('id', 'sidebar-header'); window.addEventListener("DOMContentLoaded", aios_dominitSidebar, false); window.addEventListener("load", ai...
JavaScript
/* Initialisierung => Aufruf durch onload im <prefwindow> */ function aios_initPrefs() { // speziellen Tab öffnen, wenn einer als Argument übergeben wurde (aus den Standard-Optionen heraus) if(window.arguments) { if(window.arguments[0] == "dwn") { // Panels-Radio-Button aktivier...
JavaScript
/* Liste der zur Verfügung stehenden Sidebars erstellen => Aufruf durch aios_initPane() */ function aios_genSidebarList() { if(!document.getElementById('sidebarInitPopup') || !document.getElementById('panelInitPopup')) return false; var strings = document.getElementById("aiosStrings"); //if(...
JavaScript
if(!window.extLoad) var extLoad = { loaders: [], add: function(index,func){ this.loaders.push([index,func]); }, init: function() { extLoad.loaders.sort(function(a,b){ return a[0]-b[0]; }); for(var loader in extLoad.loaders) if(extLoad.loaders[loader...
JavaScript
//mod by exxile var target = aios_WIN; if(target) { var gPrefService = target.aiosKeyconfig.prefService; var gProfile = target.aiosKeyconfig.profile; var gDocument = target.document; var gRemovedKeys = target.aiosKeyconfig.removedKeys; } // end mod by exxile var gAtomService = Components.clas...
JavaScript
var AiOS_Addons = {}; (function() { // Registration var namespaces = []; this.ns = function(fn) { var ns = {}; namespaces.push(fn, ns); return ns; }; // Initialization this.initialize = function() { for (var i=0; i<namespaces.length; i+=2) { var f...
JavaScript
var aios_inSidebar = (top.document.getElementById('sidebar-box')) ? true : false; var aios_inTab = (aios_WIN.aiosLastSelTab) ? true : false; // Listener für automatische Aktualisierung hinzufügen u. entfernen if(aios_inSidebar) { window.addEventListener("load", function(e) { top.gBrowser.addProgres...
JavaScript
if(aios_collapseSidebar) BrowserStartup = function() { var uriToLoad = null; // window.arguments[0]: URI to load (string), or an nsISupportsArray of // nsISupportsStrings to load, or a xul:tab of // a tabbrowser, which will be replaced by this // ...
JavaScript
/* modifiziert das Firefox-Sidebar-Menü => Aufruf durch aios_initSidebar() und aios_getSidebarMenu() (Menübutton-Events 'onpopupshowing') */ function aios_modSidebarMenu() { aios_getObjects(); var actSidebar = aios_remLastSidebar(); var command, commandParent; // jeden einzelnen Menüpun...
JavaScript
var aios_inSidebar = (top.document.getElementById('sidebar-box')) ? true : false; var webPanel; if(document.getElementById('web-panels-browser')) webPanel = document.getElementById('web-panels-browser'); /* Initialisierung => Aufruf durch onload in console.xul */ function aios_init() { // Menülei...
JavaScript
/* * AiOS **/ pref("extensions.{097d3191-e6fa-4728-9826-b533d755359d}.description", "chrome://aios/locale/lib.properties"); pref("extensions.aios.changelog", ""); pref("extensions.aios.infotips", true); pref("extensions.aios.vbuttons", true); /* * General **/ pref("extensions.aios.gen.orient", 1);...
JavaScript
mc.game.menu = function(){}; mc.game.menu.draw = function(data){ mc.cmd.draw_left("game/main-menu",data); this.title = $("#menu_title"); this.panel = $("#menu_panel"); this.title.click(this.click).mouseenter(this.show); this.panel.hover(this.show,this.hide); this.select(data.start); }; mc.game.menu.show = functio...
JavaScript
mc.game.leader_list = function(list){ this.list = list.sort(mc.game.sort_by_entry); } mc.game.leader_list.prototype.find_source = function(){ if(this.source == undefined){ var reference = mc.game.get_proto("leaders"); for(var i = 0; i < this.list.length; i++){ var proto = reference[this.list[i].proto_id]; i...
JavaScript
mc.game.inventory = function(){}; mc.game.inventory.show = function(){ mc.game.army.show_for(mc.game.inventory); } mc.game.inventory.leader_click = function(event){ var entry = mc.game.army.leader_select(this); var to1 = mc.cmd.get_right_inner(1).empty(); var to2 = mc.cmd.get_right_inner(2).empty(); mc.game.lo...
JavaScript
mc.game.army = function(){}; mc.game.army.refresh = function(index){ mc.cmd.get_right().empty(); mc.game.current_leader = false; mc.leader_list = false; mc.cmd.get_left_inner(2).empty(); mc.game.menu.select(index); } mc.game.army.refresh_delay = function(){ window.setTimeout(function(){ mc.game.army.refresh(0)...
JavaScript
mc.game.chat_setting = function(data){ mc.template.process("chat_setting",mc.setting,mc.cmd.get_right().empty()); } mc.game.validate = function(data){ mc.template.process("validate_form",null,mc.cmd.get_right().empty()); }
JavaScript
mc.game.task = function(){}; mc.game.task.set_available = function(data){ var h = {}; var proto = mc.game.get_proto("task_types"); for(var i = 0; i < data.length; i++){ var cur = data[i]; var t = "leader_" + cur.leader_type; if(!h[t]){ h[t] = []; } var type = cur.type; cur.type = proto[type]; h[t].p...
JavaScript
if(!window.mc){ window.mc = function(){} } if(!mc.game){ mc.game = function(){} } mc.game.load_proto = function(){ if(!mc.game.reference){ mc.game.reference = {}; } var param = []; for(var i = 0; i < arguments.length;i++){ var type = arguments[i]; if(!mc.game.reference[type]){ param.push({name:"list",val...
JavaScript
mc.game.personal = function(){}; mc.game.personal.timeout = 1500; mc.game.personal.show = function(){ mc.game.army.show_for(mc.game.personal); } mc.game.personal.leader_click = function(event){ var entry = mc.game.army.leader_select(this); var to = mc.cmd.get_right_inner(1).empty(); mc.game.load_start(); $.whe...
JavaScript
mc.game.init = function(t){ dbg("game loaded " + t); mc.game.load_start(); $.when( mc.game.load_proto("leaders","units","items","task_types","tasks_common") //mc.game.load_proto("leaders"), //mc.game.load_proto("units"), //mc.game.load_proto("items"), //mc.game.load_proto("items"), //mc.game.load_proto(...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.template = { init: function(path,v){ this.path = path.replace(/\/$/,"") + "/"; if(v){ this.v = "?v="+v; } }, v: "", path: "", has: {}, ready: {}, re: /<\?template\s+name=\"([^"]+)\"\s*\?>([\S\s]*?)<\?\/template\?>/g, load: function(name,cb){ if(!this.ha...
JavaScript
if(!window.mc){ window.mc = function(){}; } window.mc.main = function(){}; mc.main.check = function(param){ if(!param.main){ alert("need main id"); return false; } if($("#" + param.main).length == 0){ alert("bad main id "+ param.main); return false; } if(!param.tape){ alert("need tape id"); return fa...
JavaScript