code
stringlengths
1
2.08M
language
stringclasses
1 value
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * * Softw...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
jQuery.extend({ createUploadIframe: function (id, uri) { //create frame var frameId = 'jUploadFrame' + id; if (window.ActiveXObject) { //var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />'); var io = document.createElement(...
JavaScript
/* * jQote2 - client-side Javascript templating engine * Copyright (C) 2010, aefxx * http://aefxx.com/ * * Licensed under the DWTFYWT PUBLIC LICENSE v2 * Copyright (C) 2004, Sam Hocevar * * Date: Sun, May 5th, 2010 * Version: 0.9.2 */ (function($) { var ARR = '[object Array]', FUNC = '[object Function]', ...
JavaScript
var chatRoomId = -1; // The current chat room id var activePanel; // The jquery object of the currently active tab var eventsTimer; // The timer that check for new chat events var userId; // Current user id var token; // Authorization token var lastTimestamp = 0; // The last received event timestamp var onlineUs...
JavaScript
/** * Really Simple Color Picker in jQuery * * Licensed under the MIT (MIT-LICENSE.txt) licenses. * * Copyright (c) 2008 Lakshan Perera (www.laktek.com) * Daniel Lacy (daniellacy.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ass...
JavaScript
(function ($) { var blinkTimers = new Object(); $.fn.blink = function (options) { var defaults = { delay: 500, cssClass: 'ui-state-hover' }; var options = $.extend(defaults, options); return this.each(function () { var obj = $(this); if (blinkTimers[ob...
JavaScript
var emoticons = { "emoticon": { "::Very Happy": { "image": "biggrin.gif", "emotes": { ":D": "", ":-D": "", ":grin:": "", ":biggrin:": "" } }, "::Smile": { "image": "smi...
JavaScript
// jQuery Context Menu Plugin // // Version 1.01 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // // More info: http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/ // // Terms of Use // // This plugin is dual-licensed under the GNU General Public License // and the MIT...
JavaScript
function updateLayout() { var messengerMode = false; if (typeof $('body').data('messengermode') == 'boolean') messengerMode = $('body').data('messengermode'); var aside = messengerMode ? $("#aside_messenger") : $("#aside"); if (messengerMode) { $(".content").css('width', $("#c...
JavaScript
function updateLayout() { var messengerMode = false; if (typeof $('body').data('messengermode') == 'boolean') messengerMode = $('body').data('messengermode'); var aside = messengerMode ? $("#aside_messenger") : $("#aside"); if (messengerMode) { $(".content").css('width', $("#c...
JavaScript
function updateLayout() { var messengerMode = false; if (typeof $('body').data('messengermode') == 'boolean') messengerMode = $('body').data('messengermode'); var aside = messengerMode ? $("#aside_messenger") : $("#aside"); if (messengerMode) { $(".content").css('width', $("#c...
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,...
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,...
JavaScript
var scItem = function (id, language, version) { var database = $sc.db; var item; $sc.log("id = " + id); if (language == null) { item = database.GetItem(id); } else if (version == null) { item = database.GetItem(id, $scLanguage.Parse(language)); } else { item = database.GetItem(id, $scLan...
JavaScript
var scTemplate = function (id) { var template = $sc.db.GetTemplate(id); if (template == null) { var item = $sc.db.GetItem(id); if (item != null) { template = $sc.db.GetTemplate(item.ID); } } return template; } var scInsertTemplates = function (packet...
JavaScript
/* * Easy Slider 1.5 - jQuery plugin * written by Alen Grakalic * http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding * * Copyright (c) 2009 Alen Grakalic (http://cssglobe.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Bu...
JavaScript
/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(functi...
JavaScript
(function($){ /* hoverIntent by Brian Cherne */ $.fn.hoverIntent = function(f,g) { // default configuration options var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; // override configuration options with user supplied object cfg = $.extend(cfg, g ? { over: f, out: g } : f ); // instantia...
JavaScript
/* * Supersubs v0.2b - jQuery plugin * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of * th...
JavaScript
$(document).ready(function() { var id = '#dialog'; //Get the screen height and width var maskHeight = $(document).height(); var maskWidth = $(window).width(); //Set heigth and width to mask to fill up the whole screen $('#mask').css({'width':maskWidth,'height':maskHeight}); //only show...
JavaScript
var totalPeers = 0; var maxLines = 0; var maxPeerLine = 0; var oldPeers = []; function destroyPeer(idPeer) { el = document.getElementById('td'+idPeer); if (el){ el.parentNode.removeChild(el); } } function killAllPeers(){ tablePeers = document.getElementById('peers'); while(tablePeers.rows.length>=1){ tablePee...
JavaScript
function parada(){ delete row; row = new Array(); pBox = new Array(); irow = 0; ndb = 0; setTimeout('queue()',50); } function bgPeer(id){ if(id != null){ switch(document.getElementById(id).className){ case "rpeer": document.getElementById(id).className = "peer" break; case "peer": document.ge...
JavaScript
/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/...
JavaScript
var liveBox = 0; function createBox(text,btOK) { if(liveBox != 1){ var newDiv = document.createElement('div'); newDiv.setAttribute("id", "BigBox"); newDiv.setAttribute("class", "BigBox"); htmlText ='\n<div class="TopText"><p>'+text+'</p></div>\n'; htmlText = htmlText.concat('<div class="loginLine">\n<div cla...
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
/** * 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
/** * @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
// 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
// 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 law or agreed to in ...
JavaScript
// 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 law or agreed to in ...
JavaScript
// 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 law or agreed to in ...
JavaScript
// 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 law or agreed to in ...
JavaScript
var WebSocket = require('faye-websocket'); var http = require('http'); var fs = require('fs'); var server = http.createServer(); fs.readFile('mirror.html', function(err, mirrorHTML) { fs.readFile('tree_mirror.js', function(err, treeMirrorJS) { server.addListener('request', function(request, respons...
JavaScript
// 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 law or agreed to in ...
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
var Gravity = { init: function() { $("#air .block_container").css({ height: $("#air").outerHeight() + "px" }); $(".falling").mouseenter(function(i) { var block = $(this); //.parent().next(); var yposBlock = $(block).position()['top'] - $("#air").position()['top']; var fallDi...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built In easIng capabilities added In jQuery 1.1 * to offer multiple easIng options * * Copyright (c) 2007 George Smith * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */ // t: c...
JavaScript
// Simple Jobs // =========== importClass(Packages.myschedule.quartz.extra.job.LoggerJob); importClass(Packages.myschedule.quartz.extra.job.ScriptingJob); importClass(Packages.java.lang.System); importClass(Packages.java.util.HashMap); //Schedule hourly job scheduler.scheduleSimpleJob("hourlyJob", -1, 60 * 60 * 1000,...
JavaScript
// Delete all jobs var jobs = scheduler.getAllJobDetails(); for (var i = 0; i < jobs.size(); i++) { var job = jobs.get(i); scheduler.deleteJob(job.key); output.println("Job " + job.key + " deleted."); }
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); importClass(Packages.org.quartz.JobBuilder); importClass(Packages.org.quartz.TriggerBuilder); importClass(Packages.org.quartz.CronScheduleBuilder); var job = JobBuilder .newJob(LoggerJob) .withIdentity("cronJob") .build(); var trigger = TriggerBuilder ...
JavaScript
//Create Quartz Calendar objects importClass(Packages.org.quartz.impl.calendar.CronCalendar); importClass(Packages.myschedule.quartz.extra.job.LoggerJob); var cal = CronCalendar('* * * * JAN ?'); scheduler.addCalendar('SkipJan', cal, true, false); var cal = CronCalendar('* * * ? * SAT,SUN'); scheduler.addCalendar('Ski...
JavaScript
//Using CalendarIntervalTrigger //schedule a job that runs every 3 months //========================================= importClass(Packages.myschedule.quartz.extra.job.LoggerJob); importClass(Packages.org.quartz.JobBuilder); importClass(Packages.org.quartz.TriggerBuilder); importClass(Packages.org.quartz.CalendarInterva...
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); importClass(Packages.org.quartz.JobBuilder); importClass(Packages.org.quartz.TriggerBuilder); importClass(Packages.org.quartz.SimpleScheduleBuilder); var job = JobBuilder .newJob(LoggerJob) .withIdentity("simpleJob") .build(); var trigger = TriggerBuild...
JavaScript
/* * File: jquery.dataTables.js * Version: 1.8.0 * Description: Paginate, search and sort HTML tables * Author: Allan Jardine (www.sprymedia.co.uk) * Created: 28/3/2008 * Language: Javascript * License: GPL v2 or BSD 3 point style * Project: Mtaala * Contact: allan.jardine@sp...
JavaScript
1 + 99;
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); scheduler.scheduleSimpleJob("hourlyJob1", -1, 60 * 60 * 1000, LoggerJob);
JavaScript
//logger.info("Current classpath " + java.lang.System.getProperty("java.class.path")); //logger.info("Class: " + Packages.integration.myschedule.quartz.extra.ScriptingSchedulerPluginIT) logger.info("Plugin initialize"); importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingScheduler...
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); scheduler.scheduleSimpleJob("hourlyJob2", -1, 60 * 60 * 1000, LoggerJob);
JavaScript
logger.info("Plugin shutdown"); importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('shutdown: ' + new Date());
JavaScript
logger.info("Plugin start"); importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('start: ' + new Date());
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
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
amrio.fn.extend({ fadeIn: function (delay, callback) { var _fade = function(delay, degree){ var ren = this; if(degree === 1){ ren.style.display === "none" ? $(ren).show() : degree = 10; } if(degree <= 10){ ren.style.opacity = degree++ * 0.1; window.setTimeout(function(){ _fad...
JavaScript
(function(window, document, undefined){ var amrio = (function(){ var amrio = $ = function(selector){ return new amrio.fn.init(selector); }, quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, readyList = []; amrio.fn = amrio.prototype = { constructor: amrio, init: function(selector...
JavaScript
amrio.fn.extend({ drag: function(drag,drop){ $.each(this, function(){ var ren = this, isInit = false, parent, position = {}; ren.style.cursor = "move"; parent = ren.parentNode; ren.style.position != "absolute" && (ren.style.position = "absolute"); ren.onmousedown = function(e0)...
JavaScript
$(function(){ var events = "click,mouseover,mouseout".split(","); $.each(events, function(i, name){ amrio.fn[name] = function(callback){ $.each(this, function(){ window.addEventListener && this.addEventListener(name,callback, false); }); } }) });
JavaScript
// From http://widgetsforfree.blogspot.com/2009/01/related-posts-widget-for-blogger.html //<![CDATA[ var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); function related_results_labels(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = json.feed.entry[i]; relate...
JavaScript
'use strict'; function UserCtrl($scope, backend) { $scope.user = null; $scope.login = function() { backend.user().then(function(response) { $scope.user = response.data; }); } $scope.login(); } function EditorCtrl($scope, $location, $routeParams, $timeout, editor, autosaver) { console.log($rout...
JavaScript
'use strict'; var module = angular.module('app.directives', []); module.directive('aceEditor', function(editor) { return { retrict: 'A', link: function(scope, element) { editor.rebind(element[0]); } }; }); module.directive('star', function() { return { restrict: 'E', replace: true, ...
JavaScript
'use strict'; google.load('picker', '1'); angular.module('app', ['app.filters', 'app.services', 'app.directives']) .constant('saveInterval', 15000) .constant('appId', '892677078282') .constant('EditorState', { CLEAN: 0,// NO CHANGES DIRTY: 1, // UNSAVED CHANGES SAVE: 2, // SAVE IN PROGRESS LOAD: 3, // LOADIN...
JavaScript
'use strict'; /* Filters */ angular.module('app.filters', []) .filter('saveStateFormatter', function(EditorState) { return function(state) { if (state == EditorState.DIRTY) { return 'You have unsaved changes'; } else if (state == EditorState.SAVE) { return 'Saving...'; } else if (state == Ed...
JavaScript
'use strict'; var module = angular.module('app.services', []); module.factory('editor', function(EditorState, backend, $q, $rootScope, $log) { var editor = null; var EditSession = require("ace/edit_session").EditSession; var service = { state: EditorState.CLEAN, deferredState: EditorState...
JavaScript
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; /** * @ngdoc overview * @name ngResource * @description */ /** * @ngdoc object * @name ngResource.$resource * @requires $http * * @description * A fa...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) { 'use strict'; //////////////////////////////////// /** * @ngdoc function * @name angular.lowercase * @function * * @description Converts the specified string to lowerca...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT * * TODO(vojta): wrap whole file into closure during build */ /** * @ngdoc overview * @name angular.mock * @description * * Namespace from 'angular-mocks.js' which contains testing related code. */ angular.moc...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; var directive = {}; var service = { value: {} }; var DEPENDENCIES = { 'angular.js': 'http://code.angularjs.org/angular-' + angular.version.full + '.min.js', ...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; /** * @ngdoc overview * @name ngSanitize * @description */ /* * HTML Parser By Misko Hevery (misko@hevery.com) * based on: HTML Parser By John Resig (ejo...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window) { 'use strict'; /** * JSTestDriver adapter for angular scenario tests * * Example of jsTestDriver.conf for running scenario tests with JSTD: <pre> server: http://localhost:9877 load: ...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; var directive = {}; directive.dropdownToggle = ['$document', '$location', '$window', function ($document, $location, $window) { var openElem...
JavaScript
/** * Configuration for jstd scenario adapter */ var jstdScenarioAdapter = { relativeUrlPrefix: '/build/docs/' };
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { 'use strict'; /** * @ngdoc overview * @name ngCookies */ angular.module('ngCookies', ['ng']). /** * @ngdoc object * @name ngCookies.$cookies * @requires $brows...
JavaScript
/** * @license AngularJS v1.0.0 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ ( /** * @ngdoc interface * @name angular.Module * @description * * Interface for configuring angular {@link angular.module modules}. */ function setupModuleLoader(window) { function ensure(obj, name, fact...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript