code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
define('ace/mode/golang', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/golang_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 T... | 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 |
/* ***** 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/
*
* 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 |
/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.1
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for y... | JavaScript |
<script language="javascript" type="text/javascript">
function dge_DrawNextPrevPagesEx ( int from, int pageCount, int foundCount, String strLink, String name, String coment )
prevIdx = from - pageCount
nextIdx = from + pageCount
If prevIdx < 1 Then
prevIdx = 1
End If
pageCount = from + page... | JavaScript |
<script language="javascript" type="text/javascript">
function dge_DrawNextPrevPagesEx ( int from, int pageCount, int foundCount, String strLink, String name, String coment )
prevIdx = from - pageCount
nextIdx = from + pageCount
If prevIdx < 1 Then
prevIdx = 1
End If
pageCount = from + page... | JavaScript |
/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.1
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for y... | JavaScript |
/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.1
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for y... | JavaScript |
/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.1
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for y... | JavaScript |
function dge_DrawNextPrevPagesEx ( int from, int pageCount, int foundCount, String strLink, String name, String coment )
prevIdx = from - pageCount
nextIdx = from + pageCount
If prevIdx < 1 Then
prevIdx = 1
End If
pageCount = from + pageCount - 1
If pageCount > foundCount Then
pageCount = ... | JavaScript |
/* ************************************************************************************* *\
* The MIT License
* Copyright (c) 2007 Fabio Zendhi Nagao - http://zend.lojcomm.com.br
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation f... | JavaScript |
/*
Script: Core.js
MooTools - My Object Oriented JavaScript Tools.
License:
MIT-style license.
Copyright:
Copyright (c) 2006-2007 [Valerio Proietti](http://mad4milk.net/).
Code & Documentation:
[The MooTools production team](http://mootools.net/developers/).
Inspiration:
- Class implementation inspired by [Bas... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
PrimeFaces.locales['uk'] = {
closeText: 'Закрити',
prevText: 'Попередній',
nextText: 'Наступний',
currentText: 'Поточний',
monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень','Лип... | JavaScript |
/*
Copyright (c) 2012, comScore Inc. All rights reserved.
version: 5.0.3
*/
var _sr_config = "broker-config.js";
var _sr_builder = "builder.js";
var _sr_sql08_URL = false;
var qI_flag=false;
var qI_loaded=true;
var SR_url = window.location.toString().toLowerCase();
var URLrange= [/\/\/[\w\.]+\/[a-k]/i, /\/\/[\w\.]+\/[... | JavaScript |
rh({"Error":null,"Segments":[9022,9030]}); | JavaScript |
/*
Copyright (c) 2013, comScore Inc. All rights reserved.
version: 5.0.3
*/
var SRtempCookie = document.cookie.toString();
function _set_SessionCookie(_url){
var c = 'captlinks=' + _url
+ '; path=/'
+ '; domain=microsoft.com';
document.cookie = c;
}
_set_SessionCookie("0");
if(/[\w\.]+\/en-u... | JavaScript |
function cnnGetId(query)
{
var queryId = cnnGetQueryId( query);
var wId = cnnGetWindowNameId();
var idsMatch = (queryId == wId);
var imageObj = document.createElement('img');
imageObj.setAttribute('src','http://i.cdn.turner.com/cnn/images/1.gif?csiTestMatch='+idsMatch);
if(document.documentElement)
{
docu... | JavaScript |
{
var now = new Date();
var shortterm = new Date(now.getTime() + 26*60*60*1000);
var longterm = new Date(now.getTime() + 365*24*60*60*1000);
document.cookie = 'ug=510229d208894c0a3d146b46f700566a; expires='+longterm.toGMTString()+'; path=/';
document.cookie = 'ugs=1; expires='+shortterm.toGMTString()+'; path... | JavaScript |
function dclkToObject(id) {
if(document.layers){
return (document.layers[id])?eval(document.layers[id]):null;
}
else if(document.all && !document.getElementById){
return (eval("window."+id))?eval("window."+id):null;
}
else if(document.getElementById && document.body.style) {
return (document.getEleme... | JavaScript |
function cnnGetId(query)
{
var queryId = cnnGetQueryId( query);
var wId = cnnGetWindowNameId();
var idsMatch = (queryId == wId);
var imageObj = document.createElement('img');
imageObj.setAttribute('src','http://i.cdn.turner.com/cnn/images/1.gif?csiTestMatch='+idsMatch);
if(document.documentElement)
{
docu... | JavaScript |
var cnnad_transactionID = null;
function cnnad_getTransactionID() {
if (cnnad_transactionID == null) {
cnnad_transactionID = "";
cnnad_transactionID = Math.floor(Math.random()*9007199254740992);
}
return cnnad_transactionID;
}
function cnnad_readCookie( name ) {
if ( document.cookie == '' ) { // there is... | JavaScript |
(function() {
if (typeof window.janrain.engage !== "object") window.janrain.engage = {};
if (!janrain.settings.capture) janrain.settings.capture = {};
if (!janrain.settings.common) janrain.settings.common = {};
if (!janrain.settings.language) janrain.settings.language = 'en';
//if (!janrain.settings... | JavaScript |
if( location.hash != '' && location.hash.indexOf( '#!' ) == 0 ) {
var newHref = location.hash.substr( 2 );
if( newHref.indexOf( '/' ) != 0 ) {
newHref = '/' + newHref;
}
location.href = newHref;
}
try { Typekit.load(); } catch(e) {}
(function(){
var thirdpartyDisabled = gawker_parseQueryStrin... | JavaScript |
function interstitial_init(runtime, auto_start, auto_finish) {
window.parent.interstitial_init(runtime, auto_start, auto_finish);
}
function interstitial_start() {
window.parent.interstitial_start();
}
function interstitial_skippable() {
window.parent.interstitial_skippable();
}
function interstitial_stop() {
windo... | JavaScript |
crtg_content = '';
function writeCtoCookie(){
document.cookie='cto_gawk=' + escape(crtg_content)+ '; path=/; expires=Sun, 24 Feb 2013 07:48:23 GMT;' + 'domain=.deadspin.com; ';
}
writeCtoCookie();
| JavaScript |
if(typeof(async_site_pixel_request_sent) == "undefined") {
var fmJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
var fm_query_string = window.location.search.substr(1).split('&');
var fm_pairs = {};
for (var i = 0; i < fm_query_string.length; i++) {
var pair = fm_query_string[i].s... | JavaScript |
function setMenu() {
// var k = $("#ja-mainnav ul")[0].childNodes;
// for (var i = 0; i < k.length; i++) {
// alert('i=' + i);
// if (k[i].localName == "li") {
// var thetr = k[i].childNodes;
// for (var j = 0; j < thetr.length; j++) {
// alert('j=' + j);... | JavaScript |
/// <reference path="jquery-1.4.1.min.js" />
(function () {
$.fn.popbox = function (options) {
var settings = $.extend({
selector: this.selector,
open: '.moreOptionStatus',
box: '.moreStatusOptionBox',
arrow: '.arrow',
arrow_border: '.arr... | JavaScript |
var XmlHttp;
function getXmlHttp() {
try {
//Neu la trinh duyet Firefox, Opera 8.0 +, Safari
XmlHttp = new XMLHttpRequest();
}
catch (e1) {
// Neu la Internet Explorer 6.0+
try {
XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch ... | JavaScript |
{
"table": {
"cols": ["VoteCount-1", "VoteCount-2", "VoteCount-3", "VoteCount-4", "VoteCount-5", "VoteCount-6", "VoteCount-7", "VoteCount-8", "VoteCount-9", "VoteCount-10", "VoteCount-11", "VoteCount-12", "VoteCount-13", "ID", "ValidVotesCount"],
"rows": [
[ 0, 0, 0, 0, 100, 0, 0, 0, 0, 200, ... | JavaScript |
{
"table": {
"cols": ["VoteCount-1", "VoteCount-2", "VoteCount-3", "VoteCount-4", "VoteCount-5", "VoteCount-6", "VoteCount-7", "VoteCount-8", "VoteCount-9", "VoteCount-10", "VoteCount-11", "VoteCount-12", "VoteCount-13", "ID", "ValidVotesCount", "NumDistricts", "NumDistrictsReported"],
"rows": [
... | JavaScript |
{
"table": {
"cols": ["VoteCount-1", "VoteCount-2", "VoteCount-3", "VoteCount-4", "VoteCount-5", "VoteCount-6", "VoteCount-7", "VoteCount-8", "VoteCount-9", "VoteCount-10", "VoteCount-11", "VoteCount-12", "VoteCount-13", "ID", "ValidVotesCount"],
"rows": [
[ 10, 10, 10, 10, 200, 10, 10, 10, 1... | JavaScript |
// results-gadget.js
// By Michael Geary - http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice.
// Parse the query string in a URL and return an object of
// the key=value pairs.
// Example:
// var url = 'http://example.com/test?a=b&c=d'
// var p = parseQuery(url);
// Now p contain... | JavaScript |
// scriptino.js
// By Michael Geary - http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice.
if( ! Array.prototype.forEach ) {
Array.prototype.forEach = function( fun /*, thisp*/ ) {
if( typeof fun != 'function' )
throw new TypeError();
var thisp = arguments[1];
for( var i = 0, ... | JavaScript |
// elections.js
// By Michael Geary - http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice.
var candidatesEG2012 = [
// Candidate order must match the candidate-photos image for this election
{ color: '#E2FF00', id: '1', firstName: 'أبو العز', lastName: 'الحريرى', fullName: 'أبو العز الح... | JavaScript |
// results-map.js
// By Michael Geary - http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice.
var times = {
gadgetLoaded: now(),
offset: 0
};
// Default params
params.source = ( params.source == 'gop' ? 'gop' : 'ap' );
var hostPrefix = location.host.split('.')[0];
var match = hostPrefix.... | JavaScript |
// polygonzo.js
// By Ernest Delgado and Michael Geary
// http://ernestdelgado.com/
// http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice
PolyGonzo = {
// PolyGonzo.Frame() - Canvas/VML frame
Frame: function( a ) {
var frame = this;
if( ! PolyGonzo.onetime ) {
onetime();
... | JavaScript |
loadStrings({
"allCandidates": "Tous les candidats",
"allCandidatesShort": "Tous",
"automaticUpdate": "Cette page se met \u00e0 jour automatiquement",
"candidate": "Candidat",
"caucus": "Comit\u00e9 \u00e9lectoral",
"caucuses": "Comit\u00e9s \u00e9lectoraux",
"city": "Ville",
"clickForLocal": "Cliquez pour obten... | JavaScript |
loadStrings({
"allCandidates": "All Candidates",
"allCandidatesShort": "All",
"automaticUpdate": "This page updates automatically",
"candidate": "Candidate",
"caucus": "Caucus",
"caucuses": "Caucuses",
"city": "City",
"clickForLocal": "Click for detailed results",
"countdownHeading": "Live results in:",
"count... | JavaScript |
loadStrings({
"electionTitle": "نتائج انتخابات الرئاسة المصرية 2012",
"allCandidates": "جميع المرشحين",
"allCandidatesShort": "All",
"automaticUpdate": "هذه البيانات يتم تحديثها تلقائيا",
"candidate": "المرشح",
"caucus": "Caucus",
"caucuses": "Caucuses",
"city": "City",
"clickForLocal": "اضغط على المحافظة لمزيد ... | JavaScript |
/**
* global jQuery
* !
* Sidy.js v1.1.0
* https://github.com/reactivestudio/Sidy.js
*
* Sidy.js is a responsive off-, on- canvas sidebar navigation
* using CSS3 transforms & transitions.
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2014, Reactive St... | JavaScript |
$(document).ready(function () {
$("#dgvProveedores td").hover(function () {
$("td", $(this).closest("tr")).addClass("hover_row");
}, function () {
$("td", $(this).closest("tr")).removeClass("hover_row");
});
}); | JavaScript |
$(document).ready(function() {
// Expand Panel
$("#slideit").click(function(){
$("div#slidepanel").slideDown("slow");
});
// Collapse Panel
$("#closeit").click(function(){
$("div#slidepanel").slideUp("slow");
});
// Switch buttons from "Log In | Register" to "Close Panel" on click
... | JavaScript |
$(function () {
$('#featured_slide').after('<div id="fsn"><ul id="fs_pagination">').cycle({
timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance)
fx: 'fade', // choose a transition type, ex: fade, scrollUp, shuffle, etc...
pager: '#fs_pagination... | JavaScript |
/**
* Javascript functions to show top nitification
* Error/Success/Info/Warning messages
* Developed By: Ravi Tamada
* url: http://androidhive.info
* © androidhive.info
*
* Created On: 10/4/2011
* version 1.0
*
* Usage: call this function with params
showNotification(params);
**/
function showNotificat... | JavaScript |
if($.browser.msie)$(function(){
var parseCSS=function(sheet){
var ret=[];
$(sheet=sheet.replace(/\/\*.*\*\//g,'').replace(/\s+/g,' ').split('}')).each(function(){
var tmp={};
if((tmp.sel=this.split('{')[0].replace(/^\s|\s$/g,''))&&(tmp.styles=this.split('{')[1].split(';')))
ret.push(tmp);
});
return ... | JavaScript |
// Create new HTML5 elements ===================================================
// -----------------------------------------------------------------------------
// This script should load before any others. We want the new elements to be
// parsed before pretty much anything happens.
// Plus, IE does not behave ot... | JavaScript |
$(function() {
//all the menu items
var $items = $('#cc_menu .cc_item');
//number of menu items
var cnt_items = $items.length;
//if menu is expanded then folded is true
var folded = false;
//timeout to trigger the mouseenter event on the menu items
var menu_time;
/**
... | JavaScript |
function clearInput(el){
if(el instanceof Array)
for(var i=0;i<el.length;i++)
clearInput(el[i])
el=document.getElementById(el)
if(el&&el.tagName.toLowerCase()=='form'){
var a=el.getElementsByTagName('*')
for(var i in a){
if(a[i].value){
if(!a[i].defaultValue)a[i].defaultValue=a[i].value
... | JavaScript |
Cufon.now();
var $content = $('#content'), $contentDD = $('#content>dd');
$(document).ready(function() {
$content.css({
marginTop : '-600px'
});
$("a[rel^='prettyPhoto']").prettyPhoto({
theme : 'facebook'
});
clearInput('contact_form');
$contentDD.css({
display : 'none'
});
});
$(window).... | JavaScript |
Cufon.replace('header h1 a, h2', { fontFamily: 'Exmouth' })
.replace('header h1 .desc', { fontFamily: 'Century Gothic' }); | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
function getXmlHttpRequest() {
try
{
// Firefox, Opera 8.0+, Safari
return new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer... | JavaScript |
/**
* jGrowl 1.2.5
*
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Written by Stan Lemon <stosh1985@gmail.com>
* Last updated: 2009.12.15
*
* jGrowl is a jQuery plugin implementing unobtrusive user... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function() {
alert ('loaded ' + $('#recForm\\:userid'));
//$('a[title]').qtip();
$('#tForm\\:luid').qtip({
content: 'Please enter name'
});
});
| JavaScript |
/*
* qTip2 - Pretty powerful tooltips
* http://craigsworks.com/projects/qtip2/
*
* Version: nightly
* Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com
*
* Dual licensed under MIT or GPLv2 licenses
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function() {
alert ('loaded ' + $('#recForm\\:userid'));
//$('a[title]').qtip();
$('#linkmy').qtip({
content: 'Short hand notation'
});
});
| JavaScript |
/*
* qTip2 - Pretty powerful tooltips
* http://craigsworks.com/projects/qtip2/
*
* Version: nightly
* Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com
*
* Dual licensed under MIT or GPLv2 licenses
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License... | 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 |
/* ***** 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 |
"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 |
/* vim:ts=4:sts=4:sw=4:
* ***** 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://... | 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/
*
* Softw... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* The Original Code is Ajax.org Code Editor (ACE).
*
* Contributor(s):
* Jonathan Camile <jonathan.camile 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... | 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 |
/* ***** 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/java', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/javascript', 'ace/tokenizer', 'ace/mode/java_highlight_rules'], function(require, exports, module) {
var oop = require("../lib/oop");
var JavaScriptMode = require("./javascript").Mode;
var Tokenizer = require("../tokenizer").Tokenizer;... | 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/
*
* 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.