code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
define( ['utf8', 'stuff'], function(utf8, stuff){ return { str2utf8b:function(str){ var strarray = utf8.encode(str); var arr = utf8.ucs2decode(strarray); var buffer = new ArrayBuffer(arr.length); var bufView = new Uint8Array(buffer); for (var i...
JavaScript
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel // MIT license (function() { var lastTime = 0; var vendor...
JavaScript
define(['mimetypes', 'sharedf', 'sharedc'], function (mimetypes, sharedf, sharedc) { var blob = null;//blob; var file = null;//file; var zipreader = null; var gentries = null; var files = {}; var b64blobs = {}; var notifier = null; var fsthref = null; var opfPath = ''; var opf =...
JavaScript
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requ...
JavaScript
define( ['require', 'sharedf'], function(require, sharedf){ var options = null; var filere = /.*fb2|.*epub|.*txt/i; var badtext = "No any book on your SD card. You may try pick it by button above, or put books on SD card and reopen app."; var filenames = []; function parse_storage_ff(sel, obj){ ...
JavaScript
require(['uitouch', 'dict', 'frame', 'options', 'book', 'stuff', 'sound', 'sharedf', 'sharedc', 'require', 'advanced', 'fontwork', 'hammer'], function(uitouch, dict, frame, options, book, stuff, sound, sharedf, sharedc, require, advanced, fontwork){ var ws = null; var dreq = null; var timer = null; var ...
JavaScript
define( ['require', 'sharedf'], function(require, sharedf){ var options = null; var filere = /.*fb2|.*epub|.*txt/i; var badtext = "No any book on your SD card. You may try pick it by button above, or put books on SD card and reopen app."; function parse_storage_cr(sel, obj){ "use strict"; ...
JavaScript
define( ['asmfuncs'], function(asmfuncs){ console.log("Starts sharedf");//NFP function clean_tag(doc, tag){ var tags = doc.getElementsByTagName(tag); for (var i = 0, il = tags.length; i < il; i++) { var ltag = tags[i]; if(ltag){ whi...
JavaScript
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
(function (GLOBAL) { /* * Port of script by Masanao Izumo. * * Wrapped all the variables in a function, created a * constructor for interacting with the lib. Everything * else was written by M. Izumo. * * Original code can be found here: http://www.onicos.com/staff/iz/amuse/javasc...
JavaScript
define( ['stuff', 'encod', 'socket', 'sharedc'], function(stuff, encod, socket, sharedc){ var resp = ''; //var got_def_ev = new Event('got_def'); var gsocketid = 0; var cache = {}; //https://translate.google.ru/translate_a/single?client=t&sl=en&tl=ru&hl=ru&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt...
JavaScript
define( ['app'], function(){ if(window.cordova){ document.addEventListener("deviceready", function(){ var app = require("app"); }, false); } else { var app = require("app"); } } );
JavaScript
define( ['require', 'sds_ff', 'sds_cr'], function(require){ var options = null; var sds_ls = null; if(navigator.getDeviceStorage) sds_ls = require('sds_ff'); if(window.cordova) sds_ls = require('sds_cr'); return { parse:function(sel, obj){ if(sds_ls) sds_ls.parse(se...
JavaScript
define( ['sharedc', 'stuff', 'swac'], function(sharedc, stuff, swac){ var count = 0;; var idx = 0; var word = ''; var audios = []; var intrvl = null; var snd = document.createElement("audio"); var sndcnt = document.getElementById('sndcnt'); var sndbt...
JavaScript
define( [], function(){ if(!callbacks) { var callbacks = {}; } return { register:function(module, funcname, func){ if(!callbacks[module]) callbacks[module] = {}; callbacks[module][funcname] = func; }, exec:func...
JavaScript
define(['stuff', 'sharedf', 'sharedc', 'cordova.js'], function(stuff, sharedf, sharedc){ var fb2 = document.createElement('div');//document.implementation.createDocument ('http://www.w3.org/1999/xhtml', 'html', null);//; //var evo = document.createElement("br"); //var got_book_ev = new Event('got_book'); ...
JavaScript
define( ['thepub', 'thefb2', 'thetxt', 'stuff', 'sharedc'], function(thepub, thefb2, thetxt, stuff, sharedc){ var foliant = null; var thefile = null; var evo = null; var retxt = /[\w\W]+\.txt/; var repub = /[\w\W]+\.(epub|zip)/; var refb2 = /[\w\W]+\.fb2/; v...
JavaScript
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
define( ['sharedc', 'sharedf', 'options', 'images', 'asmfuncs', 'frame'], function(sharedc, sharedf, options, images, asmfuncs, frame){ console.log("advanced loaded");//NFP var advanced = document.getElementById('advanced'); advanced.style.display = "none"; var reader = new FileR...
JavaScript
define( [], function(){ console.log("Starts asms");//NFP function AsmFuncs(stdlib, env, heap) { "use asm"; var absf = stdlib.Math.abs; var imulf = stdlib.Math.imul; var minf = stdlib.Math.min; var floorf = stdlib.Math.floor; var froundf = stdlib.Math.fround; ...
JavaScript
define( ['dict', 'uitouch', 'socket', 'sdstorage', 'sharedc', 'sharedf'], function(dict, uitouch, socket, sdstorage, sharedc, sharedf){ "use strict"; var opts_brd = document.getElementById('options'); var opts_brd_b = document.getElementById('options_block'); var lbl = document.createElement("labe...
JavaScript
define(['jsepubz', 'stuff', 'encod', 'options', 'sharedf', 'sharedc'], function(jsepub, stuff, encod, options, sharedf, sharedc){ var marea = document.getElementById("maintext"); var pageids = []; var pages = []; var anchors = []; var tocels = []; var tocurls = []; //Urls exists in TOC var h...
JavaScript
define( ['sharedf', 'stuff'], function(sharedf, stuff){ var mtext = document.getElementById('maintext'); var cf = document.getElementById('cf'); //Current font var mtextfrm = document.getElementById('mainframe').contentDocument; var savedcolor = null; var savedsize = null; ...
JavaScript
define(['stuff', 'sharedc'], function(stuff, sharedc){ var text = []; var name = ''; var currentpage = 0; function load_txt(file){ var Reader = new FileReader(); Reader.onload = function(evt) { proceedtxt(new String(evt.target.result)); }; Reader.readAsText(fi...
JavaScript
/* JSXML 0.2.2 (2012-07-18) JavaScript XML/XSLT Library Copyright (c) 2007-2012, Anton Zorko All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain ...
JavaScript
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
/* Copyright (c) 2013 Gildas Lormeau. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
JavaScript
/*! http://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { // Detect free variables `exports` var freeExports = typeof exports == 'object' && exports; // Detect free variable `module` var freeModule = typeof module == 'object' && module && module.exports == freeExports && module; // Detect free variab...
JavaScript
/*! Hammer.JS - v2.0.4 - 2014-09-28 * http://hammerjs.github.io/ * * Copyright (c) 2014 Jorik Tangelder; * Licensed under the MIT license */ (function(window, document, exportName, undefined) { 'use strict'; var VENDOR_PREFIXES = ['', 'webkit', 'moz', 'MS', 'ms', 'o']; var TEST_ELEMENT = document.createElement('...
JavaScript
define( ['options', 'stuff', 'sharedc', 'book', 'frame'], function(options, stuff, sharedc, book, frame){ // "use strict"; var dictflag = 0; var liftflag = 0; var hold = 0; var timer = null; var sxG = 0; var syG = 0; var max_Y = 0; var theitm = 'undefined'; ...
JavaScript
define( ['stuff', 'encod', 'cordova.js'], function(stuff, encod){ var sockavail = null; var host = 'localhost'; var port = 2628; var text = ''; var word = ''; var resp = ''; var db = "!"; var rcl = 0; var callback = function(){}; function parse_resp(resp){ "use strict...
JavaScript
javascript:(function () { adsweep(); var version = '2.0.3'; function adsweep(){ if(location.href){ window.adsweepVersion=version; window.ua=navigator.userAgent; window.URL = location.href; var countTries=0; function checkDOM(){ if(countTries<120){ if(document.getElementsByTagName("...
JavaScript
$(function() { $('#side-menu').metisMenu(); }); //Loads the correct sidebar on window load, //collapses the sidebar on window resize. // Sets the min-height of #page-wrapper to window size $(function() { $(window).bind("load resize", function() { topOffset = 51; width = (this.wind...
JavaScript
$(document).ready(function () { //flash var message = $('#flash-message'); if (message.length >0) { alert(message.html()); } //máscaras $(".cep").mask("00000-000", {clearIfNotMatch: true}); $(".data").mask("00/00/0000", {clearIfNotMatch: true}); $(".rg").mask("00.000.000-0", {p...
JavaScript
/* * metismenu - v1.0.3 * Easy menu jQuery plugin for Twitter Bootstrap 3 * https://github.com/onokumus/metisMenu * * Made by Osman Nuri Okumuş * Under MIT License */ ;(function ($, window, document, undefined) { var pluginName = "metisMenu", defaults = { toggle: true }; ...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There ar...
JavaScript
/* Flot plugin for rendering pie charts. The plugin assumes the data is coming is as a single data value for each series, and each of those values is a positive value or zero (negative numbers don't make any sense and will cause strange effects). The data values do NOT need to be passed in as percentage values...
JavaScript
//Flot Line Chart $(document).ready(function() { console.log("document ready"); var offset = 0; plot(); function plot() { var sin = [], cos = []; for (var i = 0; i < 12; i += 0.2) { sin.push([i, Math.sin(i + offset)]); cos.push([i, Math.cos...
JavaScript
/*! Javascript plotting library for jQuery, v. 0.7. * * Released under the MIT license by IOLA, December 2007. * */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration from jQu...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend(true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } }); /* Default class modification */ $.extend...
JavaScript
$(function() { Morris.Area({ element: 'morris-area-chart', data: [{ period: '2010 Q1', iphone: 2666, ipad: null, itouch: 2647 }, { period: '2010 Q2', iphone: 2778, ipad: 2294, itouch...
JavaScript
/* @license morris.js v0.5.0 Copyright 2014 Olly Smith All rights reserved. Licensed under the BSD-2-Clause License. */ (function() { var $, Morris, minutesSpecHelper, secondsSpecHelper, __slice = [].slice, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {...
JavaScript
function Toolbar(options) { this.button = options.button; this.panelButtons = options.panelButtons; this.content = options.content; this.panelClose = options.panelClose; this.keyboardScope = options.keyboardScope; this.currentRequest = options.currentRequest; this.originalRequest = options.originalRequest; } To...
JavaScript
(function(win, doc) { var iframe; var onMessage = function(event) { if (event.data === 'collapse') { iframe.height = 40; iframe.width = 40; return; } if (event.data === 'toolbar') { iframe.height = 40; iframe.width = '100%'; return; } if (event.data === 'expand') { iframe.width = '100%...
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
/** * @license r.js 2.0.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ /* * This is a bootstrap script to allow running RequireJS in the command line * in either a Java/Rhino or Node environ...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or agreed to i...
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 or a...
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 or a...
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 or a...
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 or a...
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 or agreed to i...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
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 or a...
JavaScript
({ appDir: 'static', baseUrl: 'js', dir: 'static-min', paths: {jquery: 'empty:'}, modules: [ {name: 'main'}, {name: 'admin-main'} ] })
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. /** * @fileoverview Holds all logic for Block entity in * the iap-hello-world game. * @author dhermes@google.com (Daniel Hermes) * Requires jQuery */ var STATIC_COLORS = ['#3369E8', // BLUE '#D50F25', // RED '#009925']...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. /** * @fileoverview Holds all logic for Player entity in * the iap-hello-world game. * @author dhermes@google.com (Daniel Hermes) * Requires jQuery, Sprite.js */ /** * Defines basic attributes of player entity * @param {number} x Starting x position of player....
JavaScript
var KEYCODE_ENTER = 13; var CHAT_REFRESH_INTERVAL = 5000; /*---------------------------------------------------------------------------*\ | $() | \*---------------------------------------------------------------------------*/ $(functi...
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
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
(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 o(x, m) { if (light == x) { return; } document.images[light + 1].src = "img/" + lightm + "_off.gif"; light = x; lightm = m; } var last; function h(t) { if (typeof last == "undefined") { last = document.anchors[0]; } last.className = 'n'; t.className = 'nh'; t.blur(); last = t; ...
JavaScript
//============================================================================= // System : Color Syntax Highlighter // File : Highlight.js // Author : Eric Woodruff (Eric@EWoodruff.us) // Updated : 11/13/2007 // Note : Copyright 2006, Eric Woodruff, All rights reserved // // This contains the script to...
JavaScript
//============================================================================= // System : Sandcastle Help File Builder // File : TOC.js // Author : Eric Woodruff (Eric@EWoodruff.us) // Updated : 04/11/2008 // Note : Copyright 2006-2008, Eric Woodruff, All rights reserved // Compiler: JavaScript // //...
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
/* ***** 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
/* 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 Luke Mahe * @authors Eric Bidelman * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; t...
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: 'Title Goes Here<br>Up To Two Lines', subtitle: 'Subtitle Goes Here', //eventInfo: { // title: 'Google I/O', // date: '6/x/2013' //}, useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify...
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