code
stringlengths
1
2.08M
language
stringclasses
1 value
/* ***** 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
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. var numericRE = /^\d+$/; var commitRE = /^(?:\d+:)?([0-9a-f]{6,20})$/; // e.g "8486:ab29d2698a47" or "ab29d2698a47" var pkgRE = /^[a-z0-9_\/]+$/; function urlF...
JavaScript
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /** * A class to hold information about the Codewalk Viewer. * @param {jQuery} context The top element in whose context the viewer should * operate. It...
JavaScript
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // opts is an object with these keys // codeEl - code editor element // outputEl - program output element // runEl - run button element // fmtEl - fmt butt...
JavaScript
/* http://www.w3.org/Talks/Tools/Slidy/slidy.js Copyright (c) 2005 W3C (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply, see: http://www.w3.org/Consortium/Legal/copyright-documents http://www.w3.org/Consortium/Legal/copyright-software */...
JavaScript
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. function godocs_bindPopups(data) { $('#content span').bind('mouseenter', function() { var id = $(this).attr('id'); //var txt = $(this).text(); if...
JavaScript
// Except as noted, this content is licensed under Creative Commons // Attribution 3.0 /* A little code to ease navigation of these documents. * * On window load we: * + Generate a table of contents (godocs_generateTOC) * + Add links up to the top of the doc from each section (godocs_addTopLinks) */ /* We want...
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. /** * @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 2013 Google Inc. /** * @author Chris Broadfoot (Google) * @fileoverview * Provides access to store data through Google Maps Engine. */ /** * 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...
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 * 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
// 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 * 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
// 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
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
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 store...
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
/** * @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
/** * @implements storeLocator.DataFeed * @constructor */ function MedicareDataSource() { } MedicareDataSource.prototype.getStores = function(bounds, features, callback) { var that = this; var center = bounds.getCenter(); var audioFeature = this.FEATURES_.getById('Audio-YES'); var wheelchairFeature = this.F...
JavaScript
/** @interface */ function storeLocator_Feature() {}; storeLocator_Feature.prototype.getId = function(var_args) {}; storeLocator_Feature.prototype.getDisplayName = function(var_args) {}; /** @interface */ function storeLocator_FeatureSet() {}; storeLocator_FeatureSet.prototype.toggle = function(var_args) {}; storeLoca...
JavaScript
/* ============================================================= * flatui-checkbox v0.0.3 * ============================================================ */ !function ($) { /* CHECKBOX PUBLIC CLASS DEFINITION * ============================== */ var Checkbox = function (element, options) { this.init(elemen...
JavaScript
/*! http://mths.be/placeholder v2.0.7 by @mathias */ ;(function(window, document, $) { var isInputSupported = 'placeholder' in document.createElement('input'), isTextareaSupported = 'placeholder' in document.createElement('textarea'), prototype = $.fn, valHooks = $.valHooks, hooks, placeholde...
JavaScript
// Some general UI pack related JS // Extend JS String with repeat method String.prototype.repeat = function(num) { return new Array(num + 1).join(this); }; (function($) { // Add segments to a slider $.fn.addSliderSegments = function (amount, orientation) { return this.each(function () { if (orien...
JavaScript
/*! * typeahead.js 0.9.3 * https://github.com/twitter/typeahead * Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT */ (function($) { var VERSION = "0.9.3"; var utils = { isMsie: function() { var match = /(msie) ([\w.]+)/i.exec(navigator.userAgent); return ma...
JavaScript
jQuery("select.select1").selectpicker({style: 'btn-hg btn-primary', menuStyle: 'dropdown-inverse'});
JavaScript
/* ============================================================= * flatui-radio v0.0.3 * ============================================================ */ !function ($) { /* RADIO PUBLIC CLASS DEFINITION * ============================== */ var Radio = function (element, options) { this.init(element, options...
JavaScript
/* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ window.onload = function() { function addIcon(el, entity) { var html = el.innerHTML; el.innerHTML = '<span style="font-family: \'Flat-UI-Icons\'">' + entity + '</span>' + html; } var icons = { 'fui-arrow-right' : '&#xe...
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
// 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
/* Holder - 1.9 - client side image placeholders (c) 2012-2013 Ivan Malopinsky / http://imsky.co Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 Commercial use requires attribution. */ var Holder = Holder || {}; (function (app, win) { var preempted = false, fallback = false, canva...
JavaScript
/// <reference path="../../../lib/jquery-1.2.6.js" /> /* Masked Input plugin for jQuery Copyright (c) 2007-2009 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.2.2 (03/09/2009 22:39:06) */ (function($) { var pasteEventName = ($....
JavaScript
/** * SMOF js * * contains the core functionalities to be used * inside SMOF */ jQuery.noConflict(); /** Fire up jQuery - let's dance! */ jQuery(document).ready(function($){ //(un)fold options in a checkbox-group jQuery('.fld').click(function() { var $fold='.f_'+this.id; $($fold).slideToggle('n...
JavaScript
// tipsy, facebook style tooltips for jquery // version 1.0.0a // (c) 2008-2010 jason frame [jason@onehackoranother.com] // released under the MIT license (function($) { function maybeCall(thing, ctx) { return (typeof thing == 'function') ? (thing.call(ctx)) : thing; }; function Tipsy(ele...
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 applicabl...
JavaScript
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.5b * @requires jQuery v1.2.3 * * Copyright (c) 2007 Christian Bach * Examples and docs at: http://tablesorter.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http:...
JavaScript
$(function() { $("table").tablesorter({debug: true}); });
JavaScript
$(function() { $('#side-menu').metisMenu(); }); //Loads the correct sidebar on window load, //collapses the sidebar on window resize. $(function() { $(window).bind("load resize", function() { width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width; if (wid...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend(true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>", "oLanguage": { "sLengthMenu": "_MENU_ Registros por página" } }); /* Default class modification */ $.ex...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.integer = { enableByHtml5: function($field) { return ('number' == $field.attr('type')); }, /** * Return true if the input value is an integer * * @param {BootstrapValidator} validator The validator plug...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.phone = { html5Attributes: { message: 'message', country: 'country' }, /** * Return true if the input value contains a valid US phone number only * * @param {BootstrapValidator} validator Va...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.callback = { /** * Return result from the callback method * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options Can consist of the...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.between = { html5Attributes: { message: 'message', min: 'min', max: 'max', inclusive: 'inclusive' }, enableByHtml5: function($field) { if ('range' == $field.attr('type')) { ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.emailAddress = { enableByHtml5: function($field) { return ('email' == $field.attr('type')); }, /** * Return true if and only if the input value is a valid email address * * @param {BootstrapValidator} v...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.cusip = { /** * Validate a CUSIP * Examples: * - Valid: 037833100, 931142103, 14149YAR8, 126650BG6 * - Invalid: 31430F200, 022615AC2 * * @see http://en.wikipedia.org/wiki/CUSIP * @param {Bootstra...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.isbn = { /** * Return true if the input value is a valid ISBN 10 or ISBN 13 number * Examples: * - Valid: * ISBN 10: 99921-58-10-7, 9971-5-0210-0, 960-425-059-0, 80-902734-1-6, 85-359-0277-5, 1-84356-028-3, 0-684-84328-5, ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.hexColor = { enableByHtml5: function($field) { return ('color' == $field.attr('type')); }, /** * Return true if the input value is a valid hex color * * @param {BootstrapValidator} validator The validat...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.remote = { html5Attributes: { message: 'message', url: 'url', name: 'name' }, /** * Request a remote server to check the input value * * @param {BootstrapValidator} validator Plu...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.base64 = { /** * Return true if the input value is a base 64 encoded string. * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.lessThan = { html5Attributes: { message: 'message', value: 'value', inclusive: 'inclusive' }, enableByHtml5: function($field) { var max = $field.attr('max'); if (max) { ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.grid = { /** * Validate GRId (Global Release Identifier) * Examples: * - Valid: A12425GABC1234002M, A1-2425G-ABC1234002-M, A1 2425G ABC1234002 M, Grid:A1-2425G-ABC1234002-M * - Invalid: A1-2425G-ABC1234002-Q * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.ip = { html5Attributes: { message: 'message', ipv4: 'ipv4', ipv6: 'ipv6' }, /** * Return true if the input value is a IP address. * * @param {BootstrapValidator} validator The va...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.siret = { /** * Check if a string is a siret number * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options Consist of key: * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.imei = { /** * Validate IMEI (International Mobile Station Equipment Identity) * Examples: * - Valid: 35-209900-176148-1, 35-209900-176148-23, 3568680000414120, 490154203237518 * - Invalid: 490154203237517 * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.stringCase = { html5Attributes: { message: 'message', 'case': 'case' }, /** * Check if a string is a lower or upper case one * * @param {BootstrapValidator} validator The validator plugin in...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.creditCard = { /** * Return true if the input value is valid credit card number * Based on https://gist.github.com/DiegoSalazar/4075533 * * @param {BootstrapValidator} validator The validator plugin instance * @pa...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.isin = { // Available country codes // See http://isin.net/country-codes/ COUNTRY_CODES: 'AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.stringLength = { html5Attributes: { message: 'message', min: 'min', max: 'max' }, enableByHtml5: function($field) { var maxLength = $field.attr('maxlength'); if (maxLength) { ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.ean = { /** * Validate EAN (International Article Number) * Examples: * - Valid: 73513537, 9780471117094, 4006381333931 * - Invalid: 73513536 * * @see http://en.wikipedia.org/wiki/European_Article_Number ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.choice = { html5Attributes: { message: 'message', min: 'min', max: 'max' }, /** * Check if the number of checked boxes are less or more than a given number * * @param {BootstrapV...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.iban = { html5Attributes: { message: 'message', country: 'country' }, /** * Validate an International Bank Account Number (IBAN) * To test it, take the sample IBAN from * http://www.nordea.c...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.vat = { html5Attributes: { message: 'message', country: 'country' }, /** * Validate an European VAT number * * @param {BootstrapValidator} validator The validator plugin instance * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.zipCode = { html5Attributes: { message: 'message', country: 'country' }, /** * Return true if and only if the input value is a valid country zip code * * @param {BootstrapValidator} validato...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.sedol = { /** * Validate a SEDOL (Stock Exchange Daily Official List) * Examples: * - Valid: 0263494, B0WNLY7 * * @see http://en.wikipedia.org/wiki/SEDOL * @param {BootstrapValidator} validator The valida...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.ismn = { /** * Validate ISMN (International Standard Music Number) * Examples: * - Valid: M230671187, 979-0-0601-1561-5, 979 0 3452 4680 5, 9790060115615 * - Invalid: 9790060115614 * * @see http://en.wiki...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.greaterThan = { html5Attributes: { message: 'message', value: 'value', inclusive: 'inclusive' }, enableByHtml5: function($field) { var min = $field.attr('min'); if (min) { ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.notEmpty = { enableByHtml5: function($field) { var required = $field.attr('required') + ''; return ('required' == required || 'true' == required); }, /** * Check if input value is empty or not * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.uri = { enableByHtml5: function($field) { return ('url' == $field.attr('type')); }, /** * Return true if the input value is a valid URL * * @param {BootstrapValidator} validator The validator plugin ins...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.cvv = { html5Attributes: { message: 'message', ccfield: 'creditCardField' }, /** * Return true if the input value is a valid CVV number. * * @param {BootstrapValidator} validator The validat...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.different = { html5Attributes: { message: 'message', field: 'field' }, /** * Return true if the input value is different with given field's value * * @param {BootstrapValidator} validator Th...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.uuid = { html5Attributes: { message: 'message', version: 'version' }, /** * Return true if and only if the input value is a valid UUID string * * @see http://en.wikipedia.org/wiki/Universall...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.regexp = { html5Attributes: { message: 'message', regexp: 'regexp' }, enableByHtml5: function($field) { var pattern = $field.attr('pattern'); if (pattern) { return { ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.siren = { /** * Check if a string is a siren number * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options Consist of key: * - message: The invalid message * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.hex = { /** * Return true if and only if the input value is a valid hexadecimal number * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Objec...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.digits = { /** * Return true if the input value contains digits only * * @param {BootstrapValidator} validator Validate plugin instance * @param {jQuery} $field Field element * @param {Object} options * @...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.mac = { /** * Return true if the input value is a MAC address. * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options Can consist o...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.date = { html5Attributes: { message: 'message', format: 'format' }, /** * Return true if the input value is valid date * * @param {BootstrapValidator} validator The validator plugin instance...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.file = { html5Attributes: { extension: 'extension', maxsize: 'maxSize', message: 'message', type: 'type' }, /** * Validate upload file. Use HTML 5 API if the browser supports ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.rtn = { /** * Validate a RTN (Routing transit number) * Examples: * - Valid: 021200025, 789456124 * * @see http://en.wikipedia.org/wiki/Routing_transit_number * @param {BootstrapValidator} validator The v...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.numeric = { html5Attributes: { message: 'message', separator: 'separator' }, /** * Validate decimal number * * @param {BootstrapValidator} validator The validator plugin instance * ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.issn = { /** * Validate ISSN (International Standard Serial Number) * Examples: * - Valid: 0378-5955, 0024-9319, 0032-1478 * - Invalid: 0032-147X * * @see http://en.wikipedia.org/wiki/International_Standa...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.identical = { html5Attributes: { message: 'message', field: 'field' }, /** * Check if input value equals to value of particular one * * @param {BootstrapValidator} validator The validator pl...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.id = { html5Attributes: { message: 'message', country: 'country' }, /** * Validate identification number in different countries * * @see http://en.wikipedia.org/wiki/National_identification_...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.vin = { /** * Validate an US VIN (Vehicle Identification Number) * * @param {BootstrapValidator} validator The validator plugin instance * @param {jQuery} $field Field element * @param {Object} options Consist of ...
JavaScript
(function($) { $.fn.bootstrapValidator.validators.step = { html5Attributes: { message: 'message', base: 'baseValue', step: 'step' }, /** * Return true if the input value is valid step one * * @param {BootstrapValidator} validato...
JavaScript
var DataSourceTree = function(options) { this._data = options.data; this._delay = options.delay; } DataSourceTree.prototype.data = function(options, callback) { var self = this; var $data = null; if(!("name" in options) && !("type" in options)){ $data = this._data;//the root tree callback({ data:...
JavaScript
//http://datatables.net/plug-ins/pagination#bootstrap $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "Display _MENU_ records" } } ); /* API method to get paging information *...
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 document; /** * Detect CSS pointer-events property * events are normally disabled on...
JavaScript
var ws; var t; function init() { document.getElementById('updateme').innerHTML = "connecting to websocket"; OpenWebSocket(); } function OpenWebSocket() { if ("WebSocket" in window) { ws = new WebSocket("%%WEBSOCKET_URL%%"); ws.onopen = function() { // Web Socket is connected document.getEleme...
JavaScript
function WebSocketTest() { if ("WebSocket" in window) { alert("WebSocket supported here! :)\r\n\r\nBrowser: " + navigator.appName + " " + navigator.appVersion + "\r\n\r\n(based on Google sample code)"); } else { // Browser doesn't support WebSocket alert("WebSocket NOT supported here! :(\r\n\r\nBrowser: " ...
JavaScript
function WebSocketTest2() { if ("WebSocket" in window) { var ws = new WebSocket("%%WEBSOCKET_URL%%"); ws.onopen = function() { // Web Socket is connected alert("websocket is open"); // You can send data now ws.send("Hey man, you got the time?"); }; ws.onmessage = function(evt) { alert("recei...
JavaScript
function WebSocketTest() { if ("WebSocket" in window) { alert("WebSocket supported here! :)\r\n\r\nBrowser: " + navigator.appName + " " + navigator.appVersion + "\r\n\r\n(based on Google sample code)"); } else { // Browser doesn't support WebSocket alert("WebSocket NOT supported here! :(\r\n\r\nBrowser: " ...
JavaScript
function form_submit( form ) { for ( var name in CKEDITOR.instances ) CKEDITOR.instances[name].updateElement(); return CheckForm.validate( form ); } function checkAllBoxes( checked ) { $('#table input:checkbox').attr('checked',checked); } function module_param_card() { var $param_type = $('#card select[name="pa...
JavaScript
/* Copyright (c) 2003-2009, 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 example: // config.language = 'fr'; // config.uiColor = '#AADC6...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript