code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * 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
/** * @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
/** * @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
/* * Metro JS for jQuery * http://drewgreenwell.com/ * For details and usage info see: http://drewgreenwell.com/projects/metrojs Copyright (C) 2012, Drew Greenwell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
JavaScript
//initiated autoincrement checkboxes function initAutoincrement() { var i=0; while(document.getElementById('i'+i+'_autoincrement')!=undefined) { document.getElementById('i'+i+'_autoincrement').disabled = true; i++; } } //makes sure autoincrement can only be selected when integer type is selected func...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ /* * Utility Javascript methods for DSpace */ // Popup window - here so it can be referred to by seve...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // Client-side scripting to support DSpace Choice Control function authoritySuggest(field, div, url, in...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas ...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ var timeout = 500; var closetimer = 0; var ddmenuitem = 0; // open hidden layer f...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // Client-side scripting to support DSpace Choice Control // IMPORTANT NOTE: // This code depends on a...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ importClass(Packages.javax.mail.internet.AddressException); importClass(Packages.org.dspace.app.xmlui.u...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ importClass(Packages.java.lang.Class); importClass(Packages.java.lang.ClassLoader); importClass(Package...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ importClass(Packages.org.dspace.authorize.AuthorizeManager); importClass(Packages.org.dspace.core.Cons...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // script.aculo.us builder.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 // Copyright (c) 2005-2008 Thomas ...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // Client-side scripting to support DSpace Choice Control // IMPORTANT NOTE: // This code depends on a...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // Client-side scripting to support DSpace Choice Control // IMPORTANT NOTE: // This version of choice...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ /** * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>. * Author: Dr...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // jQuery code for the Kubrick theme. // // This applies some style that couldn't be achieved with ...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * @see http://wiki.apache.org/solr/SolJSON#JSON_specific_parameters * @class Manager * @...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ (function ($) { AjaxSolr.AutocompleteWidget = AjaxSolr.AbstractFacetWidget.extend({ afterRequest: ...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * The ParameterStore, as its name suggests, stores Solr parameters. Widgets * expose some...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * @namespace A unique namespace for the AJAX Solr library. */ AjaxSolr = function () {}; ...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * Baseclass for all facet widgets. * * @class AbstractFacetWidget * @augments AjaxSolr....
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * Baseclass for all widgets. * * Provides abstract hooks for child classes. * * @par...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * The Manager acts as the controller in a Model-View-Controller framework. All * public c...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ // $Id$ /** * Represents a Solr parameter. * * @param properties A map of fields to set. Refer to th...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ var Manager; var query; var defaultFacets = new Array(); (function ($) { $(function () { va...
JavaScript
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ ;(function($) { $.fn.extend({ autocomplete: function(urlOrData, options) { var isUrl = typeof urlOr...
JavaScript
/* * JQuery zTree core 3.1 * http://code.google.com/p/jquerytree/ * * Copyright (c) 2010 Hunter.z (baby666.cn) * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2012-02-14 */ (function($){ var settings = {}, root...
JavaScript
/** * .select2Buttons - Convert standard html select into button like elements * * Version: 1.0.1 * Updated: 2011-04-14 * * Provides an alternative look and feel for HTML select buttons, inspired by threadless.com * * Author: Sam Cavenagh (cavenaghweb@hotmail.com) * Doco and Source: https://github.co...
JavaScript
/* PIE: CSS3 rendering for IE Version 1.0.0 http://css3pie.com Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. */ (function(){ var doc = document;var PIE = window['PIE']; if( !PIE ) { PIE = window['PIE'] = { CSS_PREFIX: '-pie-', STYLE_PREFIX...
JavaScript
/* * jqModal - Minimalist Modaling with jQuery * (http://dev.iceburg.net/jquery/jqModal/) * * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net> * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Version: ...
JavaScript
$(document).ready(function () { var that = this; var taskArr = ['checkin', 'invite', 'sendStory']; var $singleTaskModal = null, $singleTaskModalContent = null, $singleTaskModalBtn = null, currentSingleTask = null; var $taskModal; var userId = $(document.body).attr('data-u...
JavaScript
$(function () { // $.support.cors = true; // var STR_HOST = 'http://42.121.52.125'; var STR_HOST = 'http://www.100msm.com'; var currTag = ''; STR_URLBASE_VOTE = STR_HOST + '/item/aysnProcessSelected.htm', STR_URLBASE_GET_CANDIDATES = STR_HOST + '/item/selectCompareItems.htm', STR_UR...
JavaScript
var jsp = require('uglify-js').parser; var pro = require('uglify-js').uglify; var fs = require('fs'); var less = require('less'); var baseDir = '/Users/tiny_moo/Workspace/100kymsm/svn_webapp/assets'; var srcDir = baseDir + '/src'; var buildDir = baseDir + '/build/20130304'; var fileNameArr = ['meili']; // 编译web_gam...
JavaScript
// Header: const Name = "Vimperator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/commandline-handler.js' */ // Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.t...
JavaScript
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /* Adds support for data: URIs with chrome privileges * and fragment identifiers. * * "chrome-data:" <content-type> [; <fl...
JavaScript
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Name = "Vimperator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/about-...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2012 by Martin Stubenschrott <stubenschrott AT vimperator> // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const IgnoreKeys = Module("ignoreKeys", { requires: ["config", "storage"], init: function init() { ...
JavaScript
// Copyright (c) 2011-2012 by teramako <teramako at Gmail> // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ // TODO: many methods do not work with Thunderbird correctly yet /** * @instance tabgroup */ const TabGro...
JavaScript
// Copyright (c) 2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. // Script to find regressions // // It should use as few liberator methods as possible, but fall back to standa...
JavaScript
// Header: const Name = "Muttator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/commandline-handler.js' */ // Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt...
JavaScript
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /* Adds support for data: URIs with chrome privileges * and fragment identifiers. * * "chrome-data:" <content-type> [; <fl...
JavaScript
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Name = "Muttator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/about-ha...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const DEFAULT_FAVICON = "chrome://global/skin/icons/Portrait.png"; const Config = Module("config", ConfigB...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Compose = Module("compose", { init: function () { var stateListener = { Query...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Mail = Module("mail", { requires: ["liberator"], init: function () { services.add("s...
JavaScript
// Copyright (c) 2008 by Christian Dietrich <stettberger@dokucode.de> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Addressbook = Module("addressbook", { init: function () { services.add("abManager", "@mozilla.org/abm...
JavaScript
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /* Adds support for data: URIs with chrome privileges * and fragment identifiers. * * "chrome-data:" <content-type> [; <fl...
JavaScript
/***** BEGIN LICENSE BLOCK ***** {{{ Copyright ©2008-2009 by Kris Maglione <maglione.k at Gmail> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitati...
JavaScript
var EXPORTED_SYMBOLS = ["convert"]; const Cu = Components.utils; // // STATE // ALL // 0 TYPE // TEMPLATE // 1 HAS_HANDLER // 2 RESULT // 3 RAW // 4 SUBSTITUDE // ROUND1 // 1 keyword function convert(str, options) { function fnRawEscape(str) { return ({ "\n": "\\...
JavaScript
// vim: set fdm=marker: var EXPORTED_SYMBOLS = ["raw", "safehtml", "tmpl", "xml", "e4x", "cooked"]; // {{{ escape function //var obj1 = {}; //var obj2 = {}; //var c; // //function $s(s) { // s = s.quote(); // return s.substring(1, s.length -1); //} //for (var i = 0, j = 0x7fff; i < j; i++) { // c = String.fro...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Some code based on Venkman // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ plugins.contexts = {}; const Script = Class("Script",...
JavaScript
// Copyright (c) 2006-2011 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** * @scope modules * @instance marks */ const Marks = Module("marks", { requires: ["config", "stor...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ const Modes = Module("modes", { requires: ["config", "util"], init: functio...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const DEFAULT_FAVICON = "chrome://mozapps/skin/places/defaultFavicon.png"; // also includes methods for d...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * This class is used for prompting of user input and echoing of messages. * *...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2010 by anekos <anekos@snca.net> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ const Abbreviation = Class("Abbre...
JavaScript
try { __liberator_eval_result = eval(__liberator_eval_string); } catch (e) { __liberator_eval_error = e; } // IMPORTANT: The eval statement *must* remain on the first line // in order for line numbering in any errors to remain correct. // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This wo...
JavaScript
// Copyright (c) 2006-2010 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * @param {String} name * @param {String} description * @param {String|Templat...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ const AutoCommand = Struct("event", "pattern", "command"); /** * @instance autoco...
JavaScript
// Copyright (c) 2006-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ const Template = Module("template", { add: function add(a, b) a + b, join: function join(c)...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * Creates a ...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2010 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2009 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** * @class ModuleBase * The base class for all modules. */ const ModuleBase = Class("ModuleBase", { /** * @proper...
JavaScript
// Copyright (c) 2009 by Kris Maglione <maglione.k at Gmail> // Copyright (c) 2009-2010 by Doug Kearns <dougkearns@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. // TODO: // - fix Sanitize autocommand // - add warnin...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const ConfigBase = Class(ModuleBase, { /** * @property {[["string", "string"]]} A sequence of name...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ //xxx: this.$$Namespace = function (prefix, uri) { return "XMLList" in window ? ...
JavaScript
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. (function () { const modules = {}; const BASE = "liberator://template/chrome://liberator/content/" modules.module...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
JavaScript
// Copyright (c) 2009 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; const Cu = Components.utils; f...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ Cu.import("resource://gre/modules/XPCOMUtils.jsm", modules); Cu.import("resource://...
JavaScript
// Copyright (c) 2009 by Kris Maglione <kris@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].tex...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ // do NOT create instances of this class yourself, use the helper method // options....
JavaScript
// Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. // TODO: Clean this up. const JavaScript = Module("javascript", { init: function () { this._stack = []; ...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** @instance hints */ const Hints = Module("hints", { requires: ["config"], ...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ // TODO: proper backwards search - implement our own component? // : implement o...
JavaScript
// Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * Cached XPCOM services and classes. * * @constructor */ const Services = Module("services",...
JavaScript
// Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // Copyright (c) 2008-2010 by Martin Stubenschrott <stubenschrott@vimperator.org> // // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * @constan...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * @instance quickmarks */ const QuickMarks = Module("quickmarks", { requires...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const History = Module("history", { requires: ["config"], get format() bookmarks.format, get ...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ // command names taken from: // http://developer.mozilla.org/en/docs/Editor_Embeddi...
JavaScript
window.onload=function(){ var offsetLeft=$('menu').offsetLeft; Event.observe('menu', 'mousemove', function(event){ coordinateX=Event.pointerX(event)-offsetLeft; $('slider').style.marginLeft=coordinateX-20+'px'; }); }
JavaScript
/* Prototype JavaScript framework, version 1.6.0.2 * (c) 2005-2008 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype web site: http://www.prototypejs.org/ * *--------------------------------------------------------------------------*...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ function test(){ alert("hello"); }
JavaScript
/********************************************************************************** Project Name: SimpleAdmin CMS Theme Project Description: A clean admin theme File Name: script.js Author: Adi Purdila Author URI: http://www.adipurdila.com Version: 1.0.0 ********************************************************...
JavaScript
// 1 - START DROPDOWN SLIDER SCRIPTS ------------------------------------------------------------------------ $(document).ready(function () { $(".showhide-account").click(function () { $(".account-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); })...
JavaScript
jQuery(document).ready(function(){ //global vars var enquiryfrm = jQuery("#agt_mail_agent"); var yourname = jQuery("#agt_mail_name"); var yournameInfo = jQuery("#span_agt_mail_name"); var youremail = jQuery("#agt_mail_email"); var youremailInfo = jQuery("#span_agt_mail_email"); var frnd_comme...
JavaScript
/* Copyright (C) 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 law or agreed to in writing, softwa...
JavaScript
(function(window) { var ORIGIN_ = location.protocol + '//' + location.host; function SlideController() { this.popup = null; this.isPopup = window.opener; if (this.setupDone()) { window.addEventListener('message', this.onMessage_.bind(this), false); // Close popups if we reload the main window. win...
JavaScript
/* * Hammer.JS * version 0.4 * author: Eight Media * https://github.com/EightMedia/hammer.js */ function Hammer(element, options, undefined) { var self = this; var defaults = { // prevent the default event or not... might be buggy when false prevent_default : false, css_hacks ...
JavaScript
/** * @authors TODO * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; this.container = el || document....
JavaScript