code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// 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 applicabl... | 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 applicabl... | JavaScript |
try {
// code borrowed from http://en.wikipedia.org/wiki/XMLHttpRequest
if(typeof XMLHttpRequest == "undefined") {
XMLHttpRequest = function() {
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(e) {}
try { return new ActiveXOb... | JavaScript |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor aga... | JavaScript |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
return {
title: 'My Dialog',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab1... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a comb... | JavaScript |
/**
* @license wysihtml5 v0.3.0
* https://github.com/xing/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
*
* Copyright (C) 2012 XING AG
* Licensed under the MIT license (MIT)
*
*/
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},... | JavaScript |
/**
* Bootstrap Tree Example
*
* Copyright 2012 Cutters Crossing
*
* 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
*
* Unles... | JavaScript |
/* Set the defaults for DataTables initialisation */
$.extend(true, $.fn.dataTable.defaults, {
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ عدد الصفوف في الصفحة"
}
});
/* Default ... | JavaScript |
/**
* CONFIGURATION START
* EDIT VALUES BELOW THIS LINE
*/
// This option specifies the date at which the counter should stop.
// The counter values (days, minutes etc.) are calculated based on that target date, and the current date.
// The value should be in the format m d Y, H:i:s (see http://www.w3schools... | JavaScript |
/*!
* Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
* Dual-licensed under the BSD or MIT licenses
*/
;(function($, window, document, undefined)
{
var hasTouch = 'ontouchstart' in window;
/**
* Detect CSS pointer-events property
* events are normally disabled on t... | JavaScript |
/**
* jquery.slider - Slider ui control in jQuery
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 1.1.0-RELEASE ($Id$)
*
* Dependencies
*
* jQuery (http://jquery.com)
* jquery.numberformatter (http://code.google.com/p/... | JavaScript |
/**
* draggable - Class allows to make any element draggable
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function( $ ){
function Draggable(){
this._init.apply( this, arguments );
};
... | JavaScript |
/**
* jquery.dependClass - Attach class based on first class in list of current element
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function($) {
$.baseClass = function(obj){
obj = $(obj);... | JavaScript |
/**
* Copyright 2010 Tim Down.
*
* 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 |
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
this.tmpl = function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
cach... | JavaScript |
/**
* jquery.numberformatter - Formatting/Parsing Numbers in jQuery
*
* Written by
* Michael Abernethy (mike@abernethysoft.com),
* Andrew Parry (aparry0@gmail.com)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* @author Michael Abernethy, Andrew Parry
*... | 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 |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | JavaScript |
!function ($) {
"use strict";
// version: 2.8
// by Mattia Larentis - follow me on twitter! @SpiritualGuru
var addToAttribute = function (obj, array, value) {
var i = 0
, length = array.length;
for (; i < length; i++) {
obj = obj[array[i]] = obj[array[i]] || i == ( length - 1) ? value : {}... | JavaScript |
$(function() {
// start the icon carousel
$('#iconCarousel').carousel({
interval: 5000
});
// make code pretty
window.prettyPrint && prettyPrint();
// inject twitter & github counts
$.ajax({
url: 'http://api.twitter.com/1/users/show.json',
data: {screen_name: 'fortaweso_me'},
dataType: '... | JavaScript |
/*
* FullCalendar v1.5.4 Google Calendar Plugin
*
* Copyright (c) 2011 Adam Shaw
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: Tue Sep 4 23:38:33 2012 -0700
*
*/
(function($) {
var fc = $.fullCalendar;
var formatDate = fc.formatDate... | JavaScript |
/**
* @preserve
* FullCalendar v1.5.4
* http://arshaw.com/fullcalendar/
*
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
*
* Copyright (c) 2011 Adam Shaw
* Dual licensed under the MIT and GPL licenses, locate... | JavaScript |
/**
* @version: 1.0.1
* @author: Dan Grossman http://www.dangrossman.info/
* @date: 2012-08-20
* @copyright: Copyright (c) 2012 Dan Grossman. All rights reserved.
* @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0
* @website: http://www.improvely.com/
*/
!function ($) {
... | JavaScript |
// Uses AMD or browser globals to create a jQuery plugin.
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
} (function (jQuery) {
var module = { e... | JavaScript |
;(function(){
/**
* hasOwnProperty.
*/
var has = Object.prototype.hasOwnProperty;
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
... | JavaScript |
/*!
* jQVMap Version 1.0
*
* http://jqvmap.com
*
* Copyright 2012, Peter Schmalfeldt <manifestinteractive@gmail.com>
* Copyright 2011-2012, Kirill Lebedev
* Licensed under the MIT license.
*
* Fork Me @ https://github.com/manifestinteractive/jqvmap
*/
(function ($) {
var apiParams = {
colors: 1,
va... | JavaScript |
/**
* Clockface - v1.0.0
* Clockface timepicker for Twitter Bootstrap
*
* Confusion with noon and midnight:
* http://en.wikipedia.org/wiki/12-hour_clock
* Here considered '00:00 am' as midnight and '12:00 pm' as noon.
*
* Author: Vitaliy Potapov
* Project page: http://github.com/vitalets/clockface
* Copyright (c) 2012... | JavaScript |
/*!
* jQuery twitter bootstrap wizard plugin
* Examples and documentation at: http://github.com/VinceG/twitter-bootstrap-wizard
* version 1.0
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.ht... | JavaScript |
/*
* Gritter for jQuery
* http://www.boedesign.com/
*
* Copyright (c) 2012 Jordan Boesch
* Dual licensed under the MIT and GPL licenses.
*
* Date: February 24, 2012
* Version: 1.7.4
*/
(function($){
/**
* Set it up as an object under the jQuery namespace
*/
$.gritter = {};
/**
* Set up global optio... | JavaScript |
/*
Uniform v1.7.5
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Requires jQuery 1.4 or newer
Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this
Disabling text selection is made possible by Mathias Bynens <http://mathiasbynens.be/>
and his noSelect pl... | JavaScript |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.0 (15/07/2012)
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to vor, eskimoblood... | JavaScript |
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.0.6
*
*/
(function($) {
jQuery.fn.extend({
slimScroll: function(options) {
... | JavaScript |
/*
Flot plugin for stacking data sets, i.e. putting them on top of each
other, for accumulative graphs.
The plugin assumes the data is sorted on x (or y if stacking
horizontally). For line charts, it is assumed that if a line has an
undefined gap (from a null point), then the line above it should have
the same gap - i... | 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 jQuery color ani... | JavaScript |
/*
Flot plugin for showing crosshairs, thin lines, when the mouse hovers
over the plot.
crosshair: {
mode: null or "x" or "y" or "xy"
color: color
lineWidth: number
}
Set the mode to one of "x", "y" or "xy". The "x" mode enables a
vertical crosshair that lets you trace the values on the x axis, "y"
en... | JavaScript |
/*
Flot plugin for adding panning and zooming capabilities to a plot.
The default behaviour is double click and scrollwheel up/down to zoom
in, drag to pan. The plugin defines plot.zoom({ center }),
plot.zoomOut() and plot.pan(offset) so you easily can add custom
controls. It also fires a "plotpan" and "plotzoom" even... | JavaScript |
/*
Flot plugin that adds some extra symbols for plotting points.
The symbols are accessed as strings through the standard symbol
choice:
series: {
points: {
symbol: "square" // or "diamond", "triangle", "cross"
}
}
*/
(function ($) {
function processRawData(plot, series, datapoints) {
... | JavaScript |
/*
Flot plugin for automatically redrawing plots when the placeholder
size changes, e.g. on window resizes.
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 are no options. If you need to disable the plugin for some... | JavaScript |
/*
Flot plugin for thresholding data. Controlled through the option
"threshold" in either the global series options
series: {
threshold: {
below: number
color: colorspec
}
}
or in a specific series
$.plot($("#placeholder"), [{ data: [ ... ], threshold: { ... }}])
The data points below "bel... | JavaScript |
/*
Flot plugin for selecting regions.
The plugin defines the following options:
selection: {
mode: null or "x" or "y" or "xy",
color: color
}
Selection support is enabled by setting the mode to one of "x", "y" or
"xy". In "x" mode, the user will only be able to specify the x range,
similarly for "y" mode... | JavaScript |
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration from jQuery color animation plugin by John Resig.
*
* Released under the MIT license by Ole Laursen, October 2009.
*
* Examples:
*
* $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
* var c = $.color.extrac... | JavaScript |
// Copyright 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | JavaScript |
/*
Flot plugin for computing bottoms for filled line and bar charts.
The case: you've got two series that you want to fill the area
between. In Flot terms, you need to use one as the fill bottom of the
other. You can specify the bottom of each data point as the third
coordinate manually, or you can use this plugin to ... | 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 plugin for plotting images, e.g. useful for putting ticks on a
prerendered complex visualization.
The data syntax is [[image, x1, y1, x2, y2], ...] where (x1, y1) and
(x2, y2) are where you intend the two opposite corners of the image to
end up in the plot. Image must be a fully loaded Javascript image (you
ca... | JavaScript |
/*
jQuery Tags Input Plugin 1.3.3
Copyright (c) 2011 XOXCO, Inc
Documentation for this plugin lives here:
http://xoxco.com/clickable/jquery-tags-input
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
ben@xoxco.com
*/
(function($) {
var delimiter = new Array();
var t... | JavaScript |
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
window.matchMedia = window.matchMedi... | JavaScript |
var UITree = function () {
return {
//main function to initiate the module
init: function () {
// handle collapse/expand for tree_1
$('#tree_1_collapse').click(function () {
$('.tree-toggle', $('#tree_1 > li > ul')).addClass("closed");
... | JavaScript |
/*!
* jquery.confirm
*
* @version 2.0.1
*
* @author My C-Labs
* @author Matthieu Napoli <matthieu@mnapoli.fr>
* @author Russel Vela
*
* @license MIT
* @url http://myclabs.github.io/jquery.confirm/
*/
(function ($) {
/**
* Confirm a link or a button
* @param options {title, text, confirm, cance... | JavaScript |
var DemoGMaps = function () {
var mapBasic = function () {
new GMaps({
div: '#gmap_basic',
lat: -12.043333,
lng: -77.028333
});
}
var mapMarker = function () {
var map = new GMaps({
div: '#gmap_marker',
lat: -... | JavaScript |
var UINestable = function () {
var updateOutput = function (e) {
var list = e.length ? e : $(e.target),
output = list.data('output');
if (window.JSON) {
output.val(window.JSON.stringify(list.nestable('serialize'))); //, null, 2));
} else {
output.... | JavaScript |
/*!
* GMaps.js v0.2.30
* http://hpneo.github.com/gmaps/
*
* Copyright 2012, Gustavo Leon
* Released under the MIT License.
*/
if(window.google && window.google.maps){
var GMaps = (function(global) {
"use strict";
var doc = document;
var getElementById = function(id, context) {
... | JavaScript |
/*!
* jQuery blockUI plugin
* Version 2.53 (01-NOV-2012)
* @requires jQuery v1.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2012 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licens... | JavaScript |
/*!
* jQuery Cookie Plugin v1.3
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function ($, document, undefined) {
... | JavaScript |
var App = function() {
var isMainPage = false;
var isMapPage = false;
var isIE8 = false;
var handleJQVMAP = function() {
if (!sample_data) {
return;
}
var showMap = function(name) {
jQuery('.vmaps').hide();
jQuery('#vmap_' +... | JavaScript |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
| JavaScript |
try {
var pageTracker = _gat._getTracker("UA-18761191-1");
pageTracker._trackPageview();
} catch(err) {}
| JavaScript |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function cargarContenidos(urlDatos){
$.get(urlDatos, function(data) {
$('.row-3').html(data);
});
}
function cargarContenidos1(urlD... | JavaScript |
if($.browser.mozilla||$.browser.opera)
(function(){
window.addEventListener('pageshow', PageShowHandler, false);
window.addEventListener('unload', UnloadHandler, false);
function PageShowHandler() {
window.addEventListener('unload', UnloadHandler, false);
}
function UnloadHandler() {
window.rem... | JavaScript |
(function ($, undefined) {
$.extend(_TMS, {
presets:{
zoomer:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1","easing":"","way":"lines","anim":"zoomer",k:1.8,crds:{bottom:0,right:0}},
fadeThree:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1"... | JavaScript |
Cufon.replace('.slog', { fontFamily: 'Open Sans', hover:true });
Cufon.replace('.menu li a', { fontFamily: 'Open Sans', hover:true });
Cufon.replace('.b1', { fontFamily: 'Open Sans', hover:true });
Cufon.replace('.b2', { fontFamily: 'Open Sans Semibold', hover:true });
Cufon.replace('.b3', { fontFamily: 'Open Sans'... | 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 |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights res... | JavaScript |
/* jQuery based image slider
/* TMSlider 0.3 */
(function($,undefined){
var _TMS=window._TMS=$.fn._TMS=function(_){
_=_||{}
_=$.extend(clone(_TMS),_TMS.presets[_.preset],_)
_.init.call(_.me=_.holder=this,_)
return _.me.data({opt:_})
}
$.extend(_TMS,{
etal:'<div></div>',
items:'.ite... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @name Store Locator for Google Maps API V3
* @version 0.1
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* @license
*
* Copyright 2012 Google Inc.
*
* License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Allows developers to specify a static set of stores to be used in the
* storelocator.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Feature model class for Store Locator library.
*/
/**
* 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 Licens... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* An info panel, which complements the map view of the Store Locator.
* Provides a list of stores, location search, feature filter, and directions.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Store model class for Store Locator library.
*/
/**
* 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 ... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* FeatureSet class for Store Locator library. A mutable, ordered set of
* storeLocator.Features.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | JavaScript |
// A simple demo showing how to grab places using the Maps API Places Library.
// Useful extensions may include using "name" filtering or "keyword" search.
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.... | JavaScript |
/**
* @implements storeLocator.DataFeed
* @constructor
*/
function MedicareDataSource() {
}
MedicareDataSource.prototype.getStores = function(bounds, features, callback) {
var center = bounds.getCenter();
var that = this;
var audioFeature = this.FEATURES_.getById('Audio-YES');
var wheelchairFeature = this.F... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new Medic... | JavaScript |
/**
* @extends storeLocator.StaticDataFeed
* @constructor
*/
function MedicareDataSource() {
$.extend(this, new storeLocator.StaticDataFeed);
var that = this;
$.get('medicare.csv', function(data) {
that.setStores(that.parse_(data));
});
}
/**
* @const
* @type {!storeLocator.FeatureSet}
* @private
*... | JavaScript |
// Store locator with customisations
// - custom marker
// - custom info window (using Info Bubble)
// - custom info window content (+ store hours)
var ICON = new google.maps.MarkerImage('medicare.png', null, null,
new google.maps.Point(14, 13));
var SHADOW = new google.maps.MarkerImage('medicare-shadow.png', nul... | JavaScript |
$(function(){
$('input, textarea').placeholder();
$('#slideshow').slides({
play: 5000,
pause: 2500,
width: 940,
height: 528,
hoverPause: true
});
... | JavaScript |
function DatosGuardados()
{
if(peticion.readyState==4 && peticion.status==200)
{
if(peticion.responseText=="Si")
{
//$("#frmContacto")[0].reset();
document.frmContacto.reset();
//alert(sDatosGuardados);
}
else
{
//alert(sDatosNoGuardados + " " + peticion.responseText);
documen... | JavaScript |
/*
Awkward Showcase - jQuery plugin
http://www.jquery.com
http://www.awkwardgroup.com/sandbox/awkward-showcase-a-jquery-plugin
http://demo.awkwardgroup.com/showcase
Version: 1.1.3
Copyright (C) 2011 Awkward Group (http://www.awkwardgroup.com)
Licensed under Attribution-ShareAlike 3.0 Unported
http://creativ... | JavaScript |
function oAjax(){var j=false;try{j=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{j=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){if(!j && typeof XMLHttpRequest!='undefined') j=new XMLHttpRequest();}}return j;}
var peticion = oAjax();
function ChrCorreo(J){var v=J.indexOf('@'),e=J.indexOf('.'),r=J.lastIndexOf('@... | JavaScript |
var cart_session_oficina = Array();
var cart_session_name = "oficina_cart_ss";
var cart_cookie_show_name = 'oficina_cart_show';
$(document).ready(function() {
initCart(); /*paso 1*/
var contacto = $(".show-car");
var carr = $("#oi-cart");
$(".btn-close").click(function() {
carr.animate({
... | JavaScript |
/*
* Slides, A Slideshow Plugin for jQuery
* Intructions: http://slidesjs.com
* By: Nathan Searles, http://nathansearles.com
* Version: 1.2
* Updated: February 5th, 2013
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | JavaScript |
function oAjax(){var j=false;try{j=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{j=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){if(!j && typeof XMLHttpRequest!='undefined') j=new XMLHttpRequest();}}return j;}
var peticion = oAjax();
function bulls203(J){var v=J.indexOf('@'),e=J.indexOf('.'),r=J.lastIndexOf('@'... | JavaScript |
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
jQuery.cookie = function (key, value, options) {
// key and at least value given, set... | JavaScript |
// embed YouTube API only once
if (typeof(window['gcb_tag_youtube_videos']) == "undefined"){
// send a milestone event every time this many seconds of video are watched
var GCB_VIDEO_TRACKING_CHUNK_SEC = 30;
// video player status
var gcb_youtube_player_ready = false;
// list of videos to embed
var gcb_ta... | JavaScript |
var tag = document.getElementsByName('tag')[0];
if (tag) {
tag.onchange = function(event) {
var value = cb_global.form.getValue();
value.attributes = {};
window.parent.frameProxy.setValue(value);
var tagName = tag.options[tag.selectedIndex].value;
window.location = getAddCustomTagUrl(cb_global, t... | JavaScript |
//server communications timeout
var ajaxRpcTimeoutMillis = 15 * 1000;
// XSSI prefix. Must be kept in sync with models/transforms.py.
var xssiPrefix = ")]}'";
/**
* Compare two JS objects for equality by value.
*/
function deepEquals(x, y) {
if (typeof(x) != "object") {
return x === y;
}
if (typeof(y) != "... | JavaScript |
/**
* Define the methods of the GCB rich text editor here.
*/
function getGcbRteDefs(env, Dom, Editor, Resize) {
return {
setOptions: function(options) {
GcbRteField.superclass.setOptions.call(this, options);
this.options.opts = options.opts || {};
this.options.excludedCustomTags = options.exc... | JavaScript |
/**
* The definitions of the controls used by the iframed popup.
*
* @param frameProxy The proxy which is used to communicate with the editor in
* the parent window.
* @param env The shared GCB envronment variables.
*/
function FramedEditorControls(Y, frameProxy, env) {
this._Y = Y;
this._frameProxy = fra... | JavaScript |
/*
* Copyright 2013 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 applica... | JavaScript |
/*
Copyright 2013 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 2013 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 |
/*
* Holds JavaScript functionality specific to the unit/lesson editor.
*/
function ActivityImporter(Y, env, notify, errorMessageFormatter, confirm) {
this.Y = Y;
this.env = env;
this.notify = notify;
this.errorMessageFormatter = errorMessageFormatter;
this.confirm = confirm
}
ActivityImporter.prototype.CO... | JavaScript |
var SHOW_SCORES_LABEL = 'Assign scores to individual choices';
var HIDE_SCORES_LABEL = 'Return to choice picker view';
var HIDE_SCORES_WARNING_LABEL =
'Return to choice-picker (Note: scores will change)';
/* Whether to show the numeric score or a radio/checkbox. */
var setScores = false;
var setScoresToggleButton... | JavaScript |
var controller = new AssessmentEditorController(
Y,
cb_global.form,
cb_global.xsrf_token,
function(s) { return window.confirm(s); },
cbShowMsg,
formatServerErrorMessage
);
controller.init(); | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.