code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// Copyright 2011 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 2010 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 |
/**
* @fileoverview Homepage experience animation functionality.
* This file includes all functionality to render the countdown
* clock, and ball physics. Depends on box2d libraries and base.js.
* @author mking@mking.me (Matt King)
*/
var totalDotCount = 0, dotThreshold = 150;
var iterations = 1, timeStep = 1 / 20, gr... | JavaScript |
/**
* @fileoverview Base for helper functions and other globals.
* @author mking@mking.me (Matt King)
*/
/**
* Used globally to determine if functionality should be
* degraded for older browsers. Currently applies to IE7 and older.
*/
var degraded = false;
if (typeof String.prototype.trim !== 'function') {
/*... | JavaScript |
'use strict';
angular.module('alicasperkapp2App')
.controller('MainCtrl', function ($scope, picasaService) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma',
'SitePointtt'
];
$scope.albums = picasaService.loadAlbums();
$scope.navigateTo = function(to) {
... | JavaScript |
'use strict';
angular.module('alicasperkapp2App', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ui.bootstrap',
'dinoboff.gapi',
'picasa'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'Ma... | JavaScript |
'use strict';
angular.module('picasa', [])
.constant('constants', {
userId: '101263606183133134843',
bigThumbSize: 512,
littleThumbSize: 104
})
.service('picasaService', ['$http', '$q', 'picasaFactory', 'constants', function ($http, $q, picasaFactory, constants) {
this.loadAlbums =... | JavaScript |
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['ng-scenario'],
... | JavaScript |
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
... | JavaScript |
// Generated on 2014-02-09 using generator-angular 0.7.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks au... | JavaScript |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('alicasperkapp2App'));
// load the BootstrapUI module
beforeEach(module('ui.bootstrap')); // Add this line
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inje... | JavaScript |
// SelBlocks name-space
var selblocks = { name: "SelBlocks" };
(function($$){
/* Starting with FF4 lots of objects are in an XPCNativeWrapper,
* and we need the underlying object for == and for..in operations.
*/
$$.unwrapObject = function(obj) {
if (typeof(obj) === "undefined" || obj == null)
... | JavaScript |
// selbocks name-space
(function($$){
/* LOG wrapper for SelBlocks-specific behavior
*/
function Logger()
{
this.error = function (msg) { this.logit("error", msg); };
this.warn = function (msg) { this.logit("warn", msg); };
this.info = function (msg) { this.logit("info", msg); };
t... | JavaScript |
// selbocks name-space
(function($$){
/* Function interception
*/
$$.fn = {};
//@TODO It looks like functions intercepted by the following can't have any parameters. -Peter Kehl
// execute the given function before each call of the specified function
$$.fn.interceptBefore = function(targetObj, targ... | JavaScript |
/** Provides richer functionality than is available via Selenium xpathEvaluator.
* Used only by locator-builders, because it assumes a Firefox environment.
*/
// selbocks name-space
(function($$){
$$.xp =
{
// Evaluate an xpathExpression against the given document object.
// The document is als... | JavaScript |
/* Copyright 2011 Chris Noe
* Copyright 2011, 2012, 2013, 2014 Peter Kehl
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 1.1. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/1.1/.
*/
/**
* SelBlocks Global = SelBlocks wit... | JavaScript |
// selbocks name-space
(function($$){
/* This function replaces native Selenium command handling while inside a try block.
*/
$$.handleAsTryBlock = function()
{
try {
selenium.browserbot.runScheduledPollers();
this._executeCurrentCommand();
this.continueTestWhenConditionIsTrue();... | JavaScript |
// selbocks name-space
(function($$){
/* This function replaces native Selenium command handling for the exitScript command.
* It alters command processing such that the script simply halts rather executing the next command.
*/
$$.handleAsExitTest = function()
{
try {
selenium.browserbot.r... | JavaScript |
/** Parse basic expressions.
*/
// selbocks name-space
(function($$){
$$.InfixExpressionParser =
{
_objname : "InfixExpressionParser"
,BRACKET_PAIRS : { "(": ")", "{": "}", "[": "]" }
,trimListValues : true
//- Parse a string into a list on the given delimiter character,
// respect... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'selblocks-global@selite.googlecode.com',
coreUrl: [
'chrome://selite-selblocks-global/content/extensions/name-space.js',
'chrome://selite-selblocks-global/content/extensions/logger.js',
'chrome://selite-selblocks-global/content/extensions/f... | 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 |
/**
* @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 |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Exit Confirmation Checker.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'exit-confirmation-checker@selite.googlecode.com',
coreUrl: 'chrome://selite-exit-confirmation-checker/content/extensions/core.js',
requisitePlugins: {
'testcase-debug-context@selite.googlecode.com': 'SeLite TestCase Debug Context',
'setti... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'misc@selite.googlecode.com',
coreUrl: 'chrome://selite-misc/content/extensions/selite-misc-core.js'
} );
| JavaScript |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Misc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | JavaScript |
/* Copyright 2014 Peter Kehl
This file is part of SeLite Auto Check.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'auto-check@selite.googlecode.com',
coreUrl: ['chrome://selite-auto-check/content/extensions/auto-check.js'],
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'bootstrap@selite.googlecode.com': 'SeLi... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Commands.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'commands@selite.googlecode.com',
coreUrl: 'chrome://selite-commands/content/extensions/commands.js',
xmlUrl: 'chrome://selite-commands/content/reference.xml',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellane... | JavaScript |
//"use strict";
//var global= this;
//var cuckoo;
( function() {
// This file does its job only when it's loaded by Selenium IDE for the first time on any (re)start of Selenium IDE. When Selenium IDE triggers it the second time (within the same run of IDE), the it skips its job. For detecting that: I set a field o... | JavaScript |
/*
* Copyright 2013, 2014 Peter Kehl
*
* 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/lic... | JavaScript |
/*
* Copyright 2013, 2014 Peter Kehl
*
* 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 agre... | JavaScript |
/*
* Copyright 2014 Peter Kehl
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
"use strict";
// If you extend this framework from another file, see https://code.google.com/p/selite/wiki/TestFramework#Extending_a_test_framework
/** @type{... | JavaScript |
"use strict";
Components.utils.import( "chrome://selite-db-objects/content/Db.js" ); // this loads 'SeLiteData' object into Selenium Core scope, so that it can be used by Selenese
Components.utils.import( "chrome://selite-db-objects/content/DbStorage.js" );
Components.utils.import( "chrome://selite-db-objects/content/... | JavaScript |
"use strict";
/** This is a placeholder-like object. All files from SeLite DB Objects add their functionality to this object.
* */
var SeLiteData= {};
var EXPORTED_SYMBOLS=['SeLiteData']; | JavaScript |
"use strict";
/* This contains shortcut-like functions.
/*/
Components.utils.import( 'chrome://selite-misc/content/SeLiteMisc.js' );
Components.utils.import('chrome://selite-db-objects/content/Db.js');
Components.utils.import('chrome://selite-db-objects/content/DbStorage.js');
Components.utils.import('chrome://selite-d... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'db-objects@selite.googlecode.com',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'commands@selite.googlecode.com': 'SeLite Commands',
'sqlite-connection-manager@selite.googlecode.com': 'SQLite Connection Ma... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Db Objects.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or... | JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Db Objects.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | JavaScript |
"use strict";
if( false ) {
var appDB= new SeLiteSettings.Field.SQLite('appDB');
var testDB= new SeLiteSettings.Field.SQLite('testDB', /*defaultKey*/undefined, /*requireAndPopulate*/undefined, /*customValidate*/undefined, /*saveFile*/true);
var vanillaDB= new SeLiteSettings.Field.SQLite('vanillaDB', /*defa... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
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 3 of the License, or
(at your option) ... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
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 3 of the License, or
(at your option) ... | JavaScript |
"use strict";
SeLiteExtensionSequencer.registerPlugin({
pluginId: 'settings@selite.googlecode.com',
coreUrl: 'chrome://selite-settings/content/extensions/core-extension.js',
// There is no xmlUrl field, because this doesn't add any new Selenese
ideUrl: 'chrome://selite-settings/content/extensions/ide-e... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
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 3 of the License, or
(at your option) any later version.
This program is distr... | JavaScript |
"use strict";
/* appDB, testDB and vanillaDB must have those names, since SeLiteSettings.setModuleForReloadButtons() depends on them.
* Also, SeLiteData.getStorageFromSettings() depends on name testDB.
*/
var appDB= new SeLiteSettings.Field.SQLite('appDB');
var testDB= new SeLiteSettings.Field.SQLite('testDB');
var ... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
This file is part of SeLite Settings.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your o... | JavaScript |
/* Copyright 2005 Shinya Kasatani
* Copyright 2013, 2014 Peter Kehl
* Based on Selenium code of ide/main/src/content/testCase.js
*
* This is needed for SelBlocksGlobal to work until Selenium accepts https://code.google.com/p/selenium/issues/detail?id=5495
*
* Licensed under the Apache License, Version 2.0 (the "... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'testcase-debug-context@selite.googlecode.com',
coreUrl: 'chrome://selite-testcase-debug-context/content/extensions/se-testcase-debug-context.js'
} );
| JavaScript |
/* Copyright 2011, 2012, 2013, 2014 Peter Kehl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'sqlite-connection-manager@selite.googlecode.com'
} );
| JavaScript |
/* Copyright 2012, 2013, 2014 Peter Kehl
This file is part of SeLite Bootstrap.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'bootstrap@selite.googlecode.com',
coreUrl: 'chrome://selite-bootstrap/content/extensions/se_bootstrap.js',
requisitePlugins: {
'misc@selite.googlecode.com': 'SeLite Miscellaneous',
'testcase-debug-context@selite.googlecode.com': 'SeLite T... | JavaScript |
/* Copyright 2014 Peter Kehl
(BSD licensed)
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT O... | JavaScript |
/* Copyright 2014 Peter Kehl
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 3 of the License, or
(at your option) any later version.
This program is distributed i... | JavaScript |
/* Copyright 2013, 2014 Peter Kehl
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 3 of the License, or
(at your option) any later version.
This program is distrib... | JavaScript |
/* Copyright 2013 Peter Kehl
See ../web/index.html
*/
//"not using strict";
/* Do not have "use strict"; if you want to set any new global variables/functions that you want to be visible from Selenese.
* Any such functions define using: XXX= function(params...) { ... };
* instead of: function XXX(params...) { ..... | JavaScript |
var getFeed = function(feed) {
var url = feed;
url += "&callback=parse_res"
var scripttag = document.createElement("script");
scripttag.setAttribute("type","text/javascript");
scripttag.setAttribute("charset","utf-8");
scripttag.setAttribute("src",url);
document.getElementsByTagName("body")[0].appendChild(script... | JavaScript |
/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
**/
(function($)
{
$(document).ready(function() {
$('.styleswitch').click(function()
{
switchStylestyle(this.getAttribute("rel"));
return false;
});
var c = r... | JavaScript |
jQuery(document).ready(function($) {
jQuery('#featuredThumbs').flexslider({
namespace: "",
animation: "slide",
asNavFor: '#featuredPosts',
slideshow: fa... | JavaScript |
(function($) {
$(document).ready( function() {
$('.feature-slider a').click(function(e) {
$('.featured-posts section.featured-post').css({
opacity: 0,
visibility: 'hidden'
});
$(this.hash).css({
opacity: 1,
visibility: 'visible'
... | JavaScript |
var farbtastic;
(function($){
var pickColor = function(a) {
farbtastic.setColor(a);
$('#link-color').val(a);
$('#link-color-example').css('background-color', a);
};
$(document).ready( function() {
$('#default-color').wrapInner('<a href="#" />');
farbtastic = $.farbtastic('#colorPickerDiv', pickColor);
... | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
$("#comment-btn").click(function(){
var book_id = $("#book_id").val();
var uid = $("#uid").val();
var uname = $("#uname").val();
var comment = $("#comment").val();
$.post("/comment?id="+book_id,{uid:uid,uname:uname,comment:comment},function(result){
//alert(result);
$("#all_comment").append(result);
}... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
/*
* Simple connect server for phantom.js
* Adapted from Modernizr
*/
var connect = require('connect')
, http = require('http')
, fs = require('fs')
, app = connect()
.use(connect.static(__dirname + '/../../'));
http.createServer(app).listen(3000);
fs.writeFileSync(__dirname + '/pid.txt', process.pi... | JavaScript |
// Simple phantom.js integration script
// Adapted from Modernizr
function waitFor(testFx, onReady, timeOutMillis) {
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5001 //< Default Max Timout is 5s
, start = new Date().getTime()
, condition = false
, interval = setInterval(function () {
... | JavaScript |
// bracketCount.js - JavaScript helper to count open/closed brackets
// Copyright (c) 2003-2005 Andre Eisenbach <andre@ironcreek.net>
//
// bracketCount.js is part of phpSyntaxTree.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publ... | JavaScript |
// hookOnLoad.js - JavaScript helper function to hook up a custom onLoad handler
// Copyright (c) 2003-2005 Andre Eisenbach <andre@ironcreek.net>
//
// hookOnLoad.js is part of phpSyntaxTree.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public Licen... | JavaScript |
// autoSubmit.js - JavaScript helper to force a submit of a form when an option is changed
// Copyright (c) 2003-2005 Andre Eisenbach <andre@ironcreek.net>
//
// autoSubmit.js is part of phpSyntaxTree.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Pu... | 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 |
/**
* 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 |
$(function () {
'use strict';
(function () {
var MIN_NAME_LENGTH = 2,
MIN_TEXT_LENGTH = 5,
NAME_ERROR_TEXT = 'Minimum 2 characters',
EMAIL_ERROR_TEXT = 'Please enter correct e-mail',
MSG_ERROR_TEXT = 'Minimum 5 characters',
ERROR_CLASS_NAME = '... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
$(function () {
'use strict';
/* --------------------------------------------------------------------------- */
/* Flex Slider
/* --------------------------------------------------------------------------- */
(function () {
$('.flexslider').flexslider({
animation: 'fade', ... | JavaScript |
( function( $ ) {
$.fn.hoverfold = function( args ) {
this.each( function() {
$( this ).children( '.view' ).each( function() {
var $item = $( this ),
img = $item.children( 'img' ).attr( 'src' ),
struct = '<div class="slice s1">';
struct +='<div class="slice s2">';
struct +='... | JavaScript |
function FindProxyForURL(url, host) {
PROXY = "PROXY yourhttpproxy:80";
DEFAULT = "DIRECT";
if(/^[\w\-]+:\/+(?!\/)(?:[^\/]+\.)?appspot\.com/i.test(url)) return PROXY;
if(/^[\w\-]+:\/+(?!\/)(?:[^\/]+\.)?blogspot\.com/i.test(url)) return PROXY;
if(/^[\w\-]+:\/+(?!\/)(\d{2,}\.)docs\.google\.com/i.test(url)) return P... | JavaScript |
/******************************************************************************
* tutorials.js
*
* This library includes code that implements web page menus, footers, and other
* functions.
*
* Blaise M. Barney blaiseb@llnl.gov
* Last revised: 01/09/2008
********************************************************... | JavaScript |
// Copyright 2010 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 2010 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 2011 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 2010 Google Inc. All Rights Reserved.
/**
* @fileoverview This file contains the script manager.
*
* @author phu@google.com (Po Hu)
*/
goog.provide('rpf.ScriptManager');
goog.require('rpf.MiscHelper');
/**
* A class for managing a given script.
* @constructor
* @export
*/
rpf.ScriptManager = ... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.