code
stringlengths
1
2.08M
language
stringclasses
1 value
(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
/* * 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
/* * Compatible IE7+, Firefox 3+, Opera */ var Button ={ init : function() { }, dispose : function() { }, CreateStyle1: function (p_BoxID, p_Text, p_TextStyle, p_Width, p_OnclickFunction) { var p_BoxCtrl, p_HTML, p_ButtonDiv; p_BoxCtrl = f_E(p_BoxID); ...
JavaScript
var Expander = { init: function () { if (this.isShow == undefined) this.isExecuting = false; if (this.TitleTag == undefined) this.TitleTag = ""; if (this.ShowExpanderID == undefined) this.ShowExpanderID = ""; }, ExecuteExpand: function (p_CtrlID) { this.init(); ...
JavaScript
try { HTMLElement.prototype.__defineGetter__("outerHTML", function() { var p_Span = document.createElement("span"); p_Span.appendChild(this.cloneNode(true)); return p_Span.innerHTML; }); HTMLElement.prototype.__defineSetter__("outerHTML", function(p_Html) { ...
JavaScript
/* * Create String Buffer Class * Example : var buf = new StringBuffer(); buf.append("hello"); buf.append("world"); alert(buf.toString()); */ function StringBuffer() { this.buffer = []; } StringBuffer.prototype = { append: function (string) { this.buffer.push(string); return th...
JavaScript
function f_Common_RandomNumber(p_MaxNumber) { return Math.floor(Math.random() * (p_MaxNumber + 1)); } function f_Common_RandomString(p_DictionaryChars, p_ResultStrLen) { var p_Result = "", i, p_RandomNumber; for (i = 0; i < p_ResultStrLen; ) { p_RandomNumber = f_Common_Ran...
JavaScript
/* http://www.JSON.org/json2.js 2011-10-19 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
function f_Ajax_DeleteFile(p_AjaxFunctionsPagePath, p_IsAsync, p_FilePath) { var p_Result = "False"; $.AjaxRequest(p_AjaxFunctionsPagePath, false, "DeleteFile", new Array(p_FilePath), "Deleting file", function (g_DeleteResult) { p_Result = g_DeleteResult; }, null); return p_Result; } $.extend({ ...
JavaScript
// @author Andrea Giammarchi (function (cache) { /** JSON.hpack(homogeneousCollection:Array[, compression:Number]):Array * @param Array mono dimensional homogeneous collection of objects to pack * @param [Number] optional compression level from 0 to 4 - default 0 * @return Array ...
JavaScript
var DataConvertor = { // DataTable: function (p_Columns, p_Rows) { // this.Type = "System.Data.DataTable,System.Data"; // this.Columns = []; // this.Rows = []; // this.AddColumn = function (p_Name, p_Type) { // this.Columns.push({ Name: p_Name, Ty...
JavaScript
/** * Copyright (c) 2011 Nick Taylor (nick@webnick.ca) * * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * * Based on the API provided by the ASP.NET AJAX Sys.StringBuilder class. * * Home Page: http://nickandtheinternet.com/page/jQuery-StringBuilder-Plugin.aspx */ (function ($)...
JavaScript
var AlertWindow = { init: function () { if (this.zIndex == null) this.zIndex = f_GetHiestZIndexOnPage() + 1; if (this.ArrAlert == null) this.ArrAlert = new Array(); //Array ID if (this.ErrorState == null) this.ErrorState = false; if (this.ArrThemes == null) this.ArrThemes ...
JavaScript
function f_Common_BackupEventHandlers(p_BackupElement, p_EventType) { var p_Result = null, //store all jquery events p_Events = p_BackupElement.data('events'); if (p_Events != null && p_Events[p_EventType] != null) { var p_ListEvents = new Array(), p_EventHandlers = p_Event...
JavaScript
/* * Load Css , Javascript file dynamic */ window.onload = function () { g_Path = f_GetPath(); f_CACP_LoadJsCssFile(); f_CACP_InitialPage(); AlertWindow.ShowExecuteState("Loading data", 3); f_CheckLoadCompleted("CACP_U_CombineOnload", "AlertWindow.RemoveExecuteState();"); }; /********...
JavaScript
$(function () { f_MCACP_InitialPage(); }); function f_MCACP_InitialPage() { MCACP.init(); var p_PathArray = window.location.pathname.split("/"), p_PageName = p_PathArray[p_PathArray.length - 1].toLowerCase(); switch (p_PageName) { case 'login.aspx': { ...
JavaScript
$.extend({ createJsonData: function (p_Array) { var i, p_Result = '', p_Count; if (p_Array != null) { p_Result = '[{'; p_Count = p_Array.length; for (i = 0; i < p_Count; ) { var p_Value = f_EnquoteJSON(p_Array[i].toStrin...
JavaScript
$.extend({ showDialog: function (p_ButtonCtrl, p_Title, p_Message) { var p_PageDialog = p_ButtonCtrl.prev(); p_PageDialog.find('h1').html(p_Title); p_PageDialog.find('#dynamic-dialogContent').html(p_Message); p_ButtonCtrl.click(); }, addDynamicPage: function (p_PageTi...
JavaScript
/* * jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55 * http://jquerymobile.com * * Copyright 2011 (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ (function ( root, doc, factory ) { if ( typeof define === "function" && define.amd ) { ...
JavaScript
var UserCart = { init: function () { if (this.Class == null) this.Class = UserControls_UserCart_UserControls_UserCart; if (this.ArrLangName == null) this.ArrLangName = new Array("english", "vietnamese"); if (this.ArrLangValue == null) { this.ArrLangValue = new Array(); ...
JavaScript
function GetValueFromRadioButtonList(radio) { var RB1 = document.getElementById(radio); var radio = RB1.getElementsByTagName("input"); for (var i = 0; i < radio.length; i++) { if (radio[i].checked) return radio[i].value; } } function SetValueForRadioButtonList(radio, value...
JavaScript
/* * jQuery Galleriffic plugin * * Copyright (c) 2008 Trent Foley (http://trentacular.com) * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * Thanks to Taku Sano (Mikage Sawatari), whose history plugin I adapted to work with Galleriffic * Modified by Ghismo (ghismo.com)...
JavaScript
/* * Flexigrid for jQuery - New Wave Grid * * Copyright (c) 2008 Paulo P. Marinas (webplicity.net/flexigrid) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-07-14 00:09:43 +0800 (Tue, 14 Jul 2008) $ */ (function($){ $.addFlex = function(t,p) { if...
JavaScript
/* Sidebar position - with cookie */ $(function() { $('.sidebar-position a').click(function(){ var side_id = $(this).attr("id"); $('body').attr("id",side_id); $('.sidebar-position a').removeClass("active"); $.cookie('side_pos', side_id ); if($.browser.msie) { location.reload(); } $(...
JavaScript
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ * $Rev: 2446 $ * * Versio...
JavaScript
/* * jQuery UI Effects 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/ */ ;jQuery.effects || (function($) { $.effects = { version: "1.7.2", // Saves a set of prop...
JavaScript
/* * jQuery UI Effects Highlight 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Highlight * * Depends: * effects.core.js */ (function($) { $.effects.highlight = f...
JavaScript
/* * Jeditable - jQuery in place edit plugin * * Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/jeditable * * Based on editable by Dylan Verheul <dylan_at_d...
JavaScript
// jQuery File Tree Plugin // // Version 1.01 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 24 March 2008 // // Visit http://abeautifulsite.net/notebook.php?article=58 for more information // // Usage: $('.fileTreeDemo').fileTree( options, callback ) // // Options: root - root f...
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.html * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(functi...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}va...
JavaScript
//DD Tab Menu- Script rewritten April 27th, 07: http://www.dynamicdrive.com //**Updated Feb 23rd, 08): Adds ability for menu to revert back to default selected tab when mouse moves out of menu //Only 2 configuration variables below: function GetTabIndex(id) { var commaIndex = id.toString().lastIndexOf("...
JavaScript
$(document).ready(function() { // Navigation menu $('ul#navigation').superfish({ delay: 1000, animation: {opacity:'show',height:'show'}, speed: 'fast', autoArrows: true, dropShadows: false }); $('ul#navigation li').hover(function(){ $(this).addClass('sfHover2'); }, function(){ $(t...
JavaScript
/** * Author: Matt Kruse <matt@mattkruse.com> * http://www.mattkruse.com/ * * These functions use the same 'format' strings as the * java.text.SimpleDateFormat class, with minor exceptions. * The format string consists of the following abbreviations: * * Field | Full Form | Short Form * ----...
JavaScript
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo * ----------------------------------------------------------- * * The DHTML Calendar, version 1.0 "It is happening again" * * Details and latest version at: * www.dynarch.com/projects/calendar * * This script is developed by Dynarch.com. Vis...
JavaScript
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ * --------------------------------------------------------------------------- * * The DHTML Calendar * * Details and latest version at: * http://dynarch.com/mishoo/calendar.epl * * This script is distributed under the GNU Lesser Genera...
JavaScript
// ** I18N Calendar._DN = new Array ("Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"); Calendar._MN = new Array ("Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"); ...
JavaScript
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mihai_bazon@yahoo.com> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please ...
JavaScript
// 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 law o...
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 ...
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 ...
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 ...
JavaScript
/* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2...
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 ...
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 law o...
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 law o...
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 law o...
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
(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
/* 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
/* * 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
require(['order!../slide_config', 'order!modernizr.custom.45394', 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 'order!slide-deck'], function(someModule) { });
JavaScript
var SLIDE_CONFIG = { // Slide settings settings: { title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs', subtitle: '', useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify: true, // Default: true enableSlideAreas:...
JavaScript
/*! * jQuery Validation Plugin 1.11.1 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright 2013 Jörn Zaefferer * Released under the MIT license: * http://www.opensource.org/licenses/mit-license.php */ (function() { function stripHtml(...
JavaScript
/*Atualizar em tempo real numero de cli*/ atualiza(); function atualiza(){ $.get('../php/numero.php', function(resultado){ $('#tabela').html(resultado); }) }
JavaScript
$(document).ready(function(){ $(".contact_form").submit(function(e){ e.preventDefault(); if ($("#passwordNueva").val()!= $("#passwordNuevaRe").val()){ alert ("nueva password mal reingresada"); return 0; } var dataUpd...
JavaScript
$(document).ready(function() { $("#listadoJqueryTable").dataTable( { "bJQueryUI": true, "sPaginationType": "full_numbers", "oLanguage": { "sProcessing": "Procesando...", "sLengthMenu": "Mostrar _MENU_ registros", "sZeroRecords": "No se encontraron ...
JavaScript
/* * More info at: http://phpjs.org * * This is version: 3.24 * php.js is copyright 2011 Kevin van Zonneveld. * * Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld * (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White * (http://getsprink.com), Waldo Malqu...
JavaScript
$(document).ready(function() { $("#formLogin").submit(function(e){ e.preventDefault(); if ($.trim($("#loginNombre").val())!="" && $.trim($("#loginPassword").val())!=""){ var form_data = { usuUsername: $("#loginNombre").val(), usuPassword: md5($("#log...
JavaScript
// --------------------------------------------------- // BLOGTOC // --------------------------------------------------- // BlogToc creates a clickable Table Of Contents for // Blogger Blogs. // It uses the JSON post feed, and create a ToC of it. // The ToC can be sorted by title or by date, both // ascending an...
JavaScript
(function ($) { var ie = $.browser.msie, iOS = /iphone|ipad|ipod/i.test(navigator.userAgent); $.TE = { version:'1.0', // 版本号 debug: 1, //调试开关 timeOut: 3000, //加载单个文件超时时间,单位为毫秒。 defaults: { //默认参数controls,noRigths,plugins,定义加载插件 controls: "source,|...
JavaScript
function te_upload_interface() { //初始化参数 var _args = arguments, _fn = _args.callee, _data = ''; if( _args[0] == 'reg' ) { //注册回调 _data = _args[1]; _fn.curr = _data['callid']; _fn.data = _data; jQuery('#temaxsize').val(_data['maxsize']); } el...
JavaScript
// 系统自带插件 ( function ( $ ) { //全屏 $.TE.plugin( "fullscreen", { fullscreen:function(e){ var $btn = this.$btn, opt = this.editor.opt; if($btn.is("."+opt.cssname.fulled)){ //取消全屏 this.editor.$main.removeAttr("style"); this.editor.$bottom.find("div").show(); this.editor.resize(opt.width,...
JavaScript
$.TE.plugin("bold",{ title:"标题", cmd:"bold", click:function(){ this.editor.pasteHTML("sdfdf"); }, bold:function(){ alert('sdfsdf'); }, noRight:function(e){ if(e.type=="click"){ alert('noright'); } }, init:function(){ }, ...
JavaScript
var myMap; ymaps.ready(init); window.onload = function() { var path = []; var count = document.getElementById("count").innerHTML, lat = 0, lon = 0, name = "", pathName = ""; var directionsStr = ""; var currentPathName = ""; var currentStation = ""; for (var i = 0; i < count; ++i) { ...
JavaScript
var myMap; var pointsShown; var placemarks; var addingPlacemark; ymaps.ready(init); function init () { initMap(); initPlacemarks(); if (document.title == "Points adding page") checkData(); // Mouse icon should be pointer always document.getElementsByClassName("ymaps-glass-pane ymaps-events-pane")...
JavaScript
var myMap; var pointsShown; var placemarks; var pointsInRoute = 0; ymaps.ready(init); function init () { initMap(); initPlacemarks(); // Mouse icon should be pointer always document.getElementsByClassName("ymaps-glass-pane ymaps-events-pane"). item(0).addEventListener('mouseup', function(e) { this.styl...
JavaScript
var myMap; var start; var finish; ymaps.ready(init); function onClick(e) { if (start != null) myMap.geoObjects.remove(start); var coords = e.get('coordPosition'); document.getElementById("latInput1").setAttribute("value", coords[0]); document.getElementById("lonInput1").setAttribute("value...
JavaScript
var myMap; var pointsShown; var placemarks; var addingPlacemark; var pointsInRoute = 0; ymaps.ready(init); function init () { initMap(); myMap.events.add('click', onClick); initPlacemarks(); if (document.title == "Points adding page") checkData(); document.getElementsByClassName("ymap...
JavaScript
/** * Created by apelsin on 5/8/14. */ var triple_data = { sel:['','',''], //выбранные значения arr:[[],[],[]], //массивы для заполнения, на их основе генерируется вывод dd dd:['','',''], //массив dd объектов ind:['','',''], //индексы в строке вида xx|xx|xx|xx - порядок индексов указывает к какому dd относит...
JavaScript
/*! jQuery UI - v1.10.4 - 2014-01-17 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, ...
JavaScript
var table_data = { tid: '',arr: [],upd_leg: '', add_leg:'', add_url: '', upd_url: '',id_user: '', edit_state: function (el){ if (table_data.tid!='') {scrl("#update_table");return}; var elm_new, elm_current; table_data.tid=el.attr('id').substring(2) for (var i=0; i<table_data.arr.length; i++){ ...
JavaScript
/** * jscolor, JavaScript Color Picker * * @version 1.4.2 * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html * @author Jan Odvarko, http://odvarko.cz * @created 2008-06-15 * @updated 2013-11-25 * @link http://jscolor.com */ var jscolor = { dir : '', // location of js...
JavaScript
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) //...
JavaScript

JavaScript
window.addEvent('domready', function(){ var list = $$('.text'); list.each(function(element){ element.addEvent('focus',function(){ element.addClass('inputfocus'); }); element.addEvent('blur',function(){ element.removeClass('inputfocus'); }); }); });
JavaScript
window.addEvent('domready', function(){ var list = $$('.text'); list.each(function(element){ element.addEvent('focus',function(){ element.addClass('inputfocus'); }); element.addEvent('blur',function(){ element.removeClass('inputfocus'); }); }); });
JavaScript
'use strict'; var EditorState = { CLEAN:0, // NO CHANGES DIRTY:1, // UNSAVED CHANGES SAVE:2, // SAVE IN PROGRESS LOAD:3, // LOADING READONLY:4 }; google.load('picker', '1'); //gapi.load('drive-share'); angular.module('app', ['app.filters', 'app.services', 'app.directives']) .constant('saveInt...
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
/** * 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'; var directive = {}; directive.dropdownToggle = ['$document', '$location', '$window', function ($document, $location, $window) { var openElem...
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
/*! * 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 * * 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'; /** * @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 */ ( /** * @ngdoc interface * @name angular.Module * @description * * Interface for configuring angular {@link angular.module modules}. */ function setupModuleLoader(window) { function ensure(obj, name, fact...
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'; /** * @ngdoc overview * @name ngCookies */ angular.module('ngCookies', ['ng']). /** * @ngdoc object * @name ngCookies.$cookies * @requires $brows...
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, doc, aut...
JavaScript
'use strict'; /* Filters */ angular.module('app.filters', []) .filter('saveStateFormatter', function () { return function (state) { if (state == EditorState.DIRTY) { return 'You have unsaved changes'; } else if (state == EditorState.SAVE) { retur...
JavaScript
'use strict'; var module = angular.module('app.services', []); var ONE_HOUR_IN_MS = 1000 * 60 * 60; // Shared model for current document module.factory('doc', function ($rootScope) { var service = $rootScope.$new(true); service.dirty = false; service.lastSave = 0; service.timeSinc...
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
define('ace/mode/latex', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/latex_highlight_rules', 'ace/range'], function(require, exports, module) { var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var Tokenizer = require("../tokenizer").Tokenizer; va...
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
"no use strict"; var console = { log: function(msg) { postMessage({type: "log", data: msg}); } }; var window = { console: console }; var normalizeModule = function(parentId, moduleName) { // normalize plugin requires if (moduleName.indexOf("!") !== -1) { var chunks = moduleName.spl...
JavaScript