code
stringlengths
1
2.08M
language
stringclasses
1 value
/* ***** BEGIN LICENSE BLOCK ***** * The Original Code is Ajax.org Code Editor (ACE). * * Contributor(s): * Meg Sharkey <megshark AT gmail DOT com> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser...
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/ * * Softw...
JavaScript
define('ace/mode/haxe', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/haxe_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) { var oop = require("../lib/oop"); var TextMode = r...
JavaScript
Wami = function() { } Wami.utils = function() { } Wami.utils.debug = function(message) { if (typeof console == 'undefined') { // No Firebug console, so no logging. } else { console.log(message); } } Wami.utils.gup = function(name) { var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp(regexS);...
JavaScript
///////////////////////////////////////////////////////////////// //// Public WamiApp API //// ///////////////////////////////////////////////////////////////// // Create a new Wami.App object. Note, you should never create more than one // Wami.App object on your page. // // ...
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
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
JavaScript
currentDealVersion = "<?php echo $version;?>"; function noteOldVersion(version) { if (version != currentDealVersion) { element = document.getElementById("versionWarning"); if (element != null) { element.innerHTML = "This is not the current version of Deal. " + "The curren...
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
jQuery(function() { jQuery(panelSelector).hide() .addClass('hompiPanel') .before('<a class="openpanel" href="#">' + openPanelText + '<em></em></a>') .after('<div class="paneline"></div>'); jQuery('a.openpanel').toggle(function() { jQuery(this).addClass('active')...
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); scheduler.scheduleSimpleJob("hourlyJob2", -1, 60 * 60 * 1000, LoggerJob);
JavaScript
logger.info("Plugin start"); importClass(Packages.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('start: ' + new Date());
JavaScript
1 + 99;
JavaScript
importClass(Packages.myschedule.quartz.extra.job.LoggerJob); scheduler.scheduleSimpleJob("hourlyJob1", -1, 60 * 60 * 1000, LoggerJob);
JavaScript
logger.info("Plugin shutdown"); importClass(Packages.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('shutdown: ' + new Date());
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.myschedule.quartz.extra.ScriptingSchedulerPluginTest); ScriptingSchedulerPlugi...
JavaScript
Packages.java.lang.System.getProperty("user.name");
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
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
//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
// 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
$(function(){ $("#criartime").button().click(function(){ $("#operacao").attr("value","incluir"); $("#formtime").dialog("open"); }); $(".alterar").button().click(function(){ var id=$(this).attr("id"); var chave=id.substring(3); var time=($("#tr"+chave+ " td:eq(0) a").html()); var estado=($("#tr"...
JavaScript
$(function(){ $("#criarjogador").button().click(function(){ $("#operacao").attr("value","incluir"); $("#formjogador").dialog("open"); }); $(".alterar").button().click(function(){ var id=$(this).attr("id"); var chave=id.substring(3); var nome=($("#tr"+chave+ " td:eq(0)").html()); var datanascime...
JavaScript
// Copyright (C) 2010 The Android Open Source Project // // 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
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
goog.require('goog.dom'); goog.require('goog.events'); goog.require('goog.ui.TabPane'); goog.require('ola.common.ServerStats'); goog.require('ola.mobile.ControllerTab'); goog.require('ola.mobile.MonitorTab'); goog.require('ola.mobile.PluginTab'); goog.require('ola.mobile.UniverseTab'); goog.provide('ola.mobile'); /*...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will ...
JavaScript
/* * jQuery UI Multiselect * * Authors: * Michael Aufreiter (quasipartikel.at) * Yanick Rochon (yanick.rochon[at]gmail[dot]com) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://www.quasipartikel.at/multiselect/ * * * Depends: * ui.core.js * ui.sortab...
JavaScript
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will b...
JavaScript
// Copyright (C) 2006 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 t...
JavaScript
function toggle_private() { // Search for any private/public links on this page. Store // their old text in "cmd," so we will know what action to // take; and change their text to the opposite action. var cmd = "?"; var elts = document.getElementsByTagName("a"); for(var ...
JavaScript
root theme js file
JavaScript
nested theme js file
JavaScript
alert("Test App");
JavaScript
alert('I am a root level file!');
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