code
stringlengths
1
2.08M
language
stringclasses
1 value
GMaps.prototype.addStyle = function(options) { var styledMapType = new google.maps.StyledMapType(options.styles, options.styledMapName); this.map.mapTypes.set(options.mapTypeId, styledMapType); }; GMaps.prototype.setStyle = function(mapTypeId) { this.map.setMapTypeId(mapTypeId); };
JavaScript
GMaps.prototype.createMarker = function(options) { if (options.lat == undefined && options.lng == undefined && options.position == undefined) { throw 'No latitude or longitude defined.'; } var self = this, details = options.details, fences = options.fences, outside = options.outside...
JavaScript
GMaps.prototype.checkGeofence = function(lat, lng, fence) { return fence.containsLatLng(new google.maps.LatLng(lat, lng)); }; GMaps.prototype.checkMarkerGeofence = function(marker, outside_callback) { if (marker.fences) { for (var i = 0, fence; fence = marker.fences[i]; i++) { var pos = marker.get...
JavaScript
if (!(typeof window.google === 'object' && window.google.maps)) { throw 'Google Maps API is required. Please register the following JavaScript library http://maps.google.com/maps/api/js?sensor=true.' } var extend_object = function(obj, new_obj) { var name; if (obj === new_obj) { return obj; } ...
JavaScript
/*! * GMaps.js v0.4.4 * http://hpneo.github.com/gmaps/ * * Copyright 2013, Gustavo Leon * Released under the MIT License. */ if (window.google == undefined && window.google.maps == undefined) { throw 'Google Maps API is required. Please register the following JavaScript library http://maps.google.com/...
JavaScript
GMaps.prototype.getFromFusionTables = function(options) { var events = options.events; delete options.events; var fusion_tables_options = options, layer = new google.maps.FusionTablesLayer(fusion_tables_options); for (var ev in events) { (function(object, name) { google.maps.event.a...
JavaScript
GMaps.prototype.on = function(event_name, handler) { return GMaps.on(event_name, this, handler); }; GMaps.prototype.off = function(event_name) { GMaps.off(event_name, this); }; GMaps.custom_events = ['marker_added', 'marker_removed', 'polyline_added', 'polyline_removed', 'polygon_added', 'polygon_removed'...
JavaScript
GMaps.prototype.drawPolyline = function(options) { var path = [], points = options.path; if (points.length) { if (points[0][0] === undefined) { path = points; } else { for (var i=0, latlng; latlng=points[i]; i++) { path.push(new google.maps.LatLng(latlng[0], latlng[1...
JavaScript
GMaps.prototype.drawOverlay = function(options) { var overlay = new google.maps.OverlayView(), auto_show = true; overlay.setMap(this.map); if (options.auto_show != null) { auto_show = options.auto_show; } overlay.onAdd = function() { var el = document.createElement('div'); e...
JavaScript
GMaps.prototype.createControl = function(options) { var control = document.createElement('div'); control.style.cursor = 'pointer'; control.style.fontFamily = 'Arial, sans-serif'; control.style.fontSize = '13px'; control.style.boxShadow = 'rgba(0, 0, 0, 0.398438) 0px 2px 4px'; for (var option in op...
JavaScript
GMaps.prototype.addMapType = function(mapTypeId, options) { if (options.hasOwnProperty("getTileUrl") && typeof(options["getTileUrl"]) == "function") { options.tileSize = options.tileSize || new google.maps.Size(256, 256); var mapType = new google.maps.ImageMapType(options); this.map.mapTypes.set(m...
JavaScript
/* * MultiSelect v0.9.8 * Copyright (c) 2012 Louis Cuny * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Ho...
JavaScript
var select; var msContainer; beforeEach(function() { $('<select id="multi-select" multiple="multiple" name="test[]"></select>').appendTo('body'); for (var i=1; i <= 10; i++) { $('<option value="value'+i+'">text'+i+'</option>').appendTo($("#multi-select")); }; select = $("#multi-select"); }); af...
JavaScript
describe("multiSelect", function() { describe('init', function(){ it ('should be chainable', function(){ select.multiSelect().addClass('chainable'); expect(select.hasClass('chainable')).toBeTruthy(); }); describe('without options', function(){ beforeEach(function() { ...
JavaScript
var readFixtures = function() { return jasmine.getFixtures().proxyCallTo_('read', arguments) } var preloadFixtures = function() { jasmine.getFixtures().proxyCallTo_('preload', arguments) } var loadFixtures = function() { jasmine.getFixtures().proxyCallTo_('load', arguments) } var appendLoadFixtures...
JavaScript
var isCommonJS = typeof window == "undefined"; /** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; if (isCommonJS) exports.jasmine = jasmine; /** * @private */ jasmine.unimplementedMethod_ = function() { throw new Error("u...
JavaScript
jasmine.HtmlReporterHelpers = {}; jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var child = arguments[i]; if (typeof child === 'string') { el.appendChild(document.createTe...
JavaScript
/*jshint undef: true, unused:true */ /*global jQuery: true */ /*!========================================================================= * Bootstrap Dual Listbox * v2.0.1 * * Responsive dual multiple select with filtering. Designed to work on * small touch devices. * * https://github.com/istvan...
JavaScript
/*! * jQuery Color Animations v2.0pre * http://jquery.org/ * * Copyright 2011 John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function( jQuery, undefined ){ var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTo...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a co...
JavaScript
/* Flot plugin for adding the ability to pan and zoom the plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. 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...
JavaScript
/* Flot plugin for selecting regions of a plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: selection: { mode: null or "x" or "y" or "xy", color: color, shape: "round" or "miter" or "bevel", minSize: number of pixels } Selection ...
JavaScript
/* Flot plugin for drawing all elements of a plot on the canvas. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Flot normally produces certain elements, like axis labels and the legend, using HTML elements. This permits greater interactivity and customization, and often looks bet...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There ar...
JavaScript
/* Flot plugin for showing crosshairs when the mouse hovers over the plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: crosshair: { mode: null or "x" or "y" or "xy" color: color lineWidth: number } Set the mode to one of "x", ...
JavaScript
/* Javascript plotting library for jQuery, version 0.8.1. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * ...
JavaScript
/* Flot plugin for plotting textual data or categories. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Consider a dataset like [["February", 34], ["March", 20], ...]. This plugin allows you to plot such a dataset directly. To enable it, you must specify mode: "categories" on th...
JavaScript
/* Flot plugin for stacking data sets rather than overlyaing them. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. 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), th...
JavaScript
/* Flot plugin for computing bottoms for filled line and bar charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. 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 bott...
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 = $.c...
JavaScript
/* Flot plugin for thresholding data. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: series: { threshold: { below: number color: colorspec } } It can also be applied to a single series, like this: $.plot( $("#placeholder...
JavaScript
/* Flot plugin for plotting images. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. 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 Java...
JavaScript
/* Flot plugin for plotting error bars. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Error bars are used to show standard deviation and other statistical properties in a plot. * Created by Rui Pereira - rui (dot) pereira (at) gmail (dot) com This plugin allows you to plo...
JavaScript
/* Flot plugin that adds some extra symbols for plotting points. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The symbols are accessed as strings through the standard symbol options: series: { points: { symbol: "square" // or "diamond", "triangle", "cross" } } ...
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 ...
JavaScript
/* Flot plugin for rendering pie charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes that each series has a single data value, and that each value is a positive integer or zero. Negative numbers don't make sense for a pie chart, and have unpredictable resul...
JavaScript
/* * Flot plugin to order bars side by side. * * Released under the MIT license by Benjamin BUFFET, 20-Sep-2010. * * This plugin is an alpha version. * * To activate the plugin you must specify the parameter "order" for the specific serie : * * $.plot($("#placeholder"), [{ data: [ ... ], bars :{ ord...
JavaScript
/* Pretty handling of time axes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Set axis.mode to "time" to enable. See the section "Time series data" in API.txt for details. */ (function($) { var options = { xaxis: { timezone: null, // "browser" for local to the ...
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: {}, qu...
JavaScript
/** * @license wysihtml5 v0.4.0pre * 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.4.0pre", // namespaces commands: {}, dom: {},...
JavaScript
/** * File: datatables.responsive.js * Version: 0.2.0 * Author: Seen Sai Yang * Info: https://github.com/Comanche/datatables-responsive * * Copyright 2013 Seen Sai Yang, all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license. ...
JavaScript
/*! TableTools 2.2.1 * 2009-2014 SpryMedia Ltd - datatables.net/license * * ZeroClipboard 1.0.4 * Author: Joseph Huckaby - MIT licensed */ /** * @summary TableTools * @description Tools and buttons for DataTables * @version 2.2.1 * @file dataTables.tableTools.js * @author Spry...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+ "t"+ "<'row'<'col-xs-6'i><'col-xs-6'p>>", "oLanguage": { //"sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.extend( $....
JavaScript
/** * * index.html scripts * */ !function(root, $) { /** * Fetch latest commits from Github API and cache them * @link https://gist.github.com/4520294 * */ root["ghcommits"] = { "repo_name": "xaguilars/bootstrap-colorpicker", "cache_enabled": true, //cache...
JavaScript
/* Input Mask plugin extensions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - 2013 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.0.0 Optional extensions on the jquery.inputmask base */ (function ($) { //extra definition...
JavaScript
/* Input Mask plugin extensions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - 2013 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.0.0 Regex extensions on the jquery.inputmask base Allows for using regular expressions as a mask...
JavaScript
/* Input Mask plugin extensions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - 2013 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.0.0 Optional extensions on the jquery.inputmask base */ (function ($) { //number aliases ...
JavaScript
/** * @license Input Mask plugin for jquery * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2013 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 0.0.0 */ (function ($) { if ($.fn.inputmask == undefined) { $.in...
JavaScript
/* Input Mask plugin extensions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - 2012 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.0.0 Optional extensions on the jquery.inputmask base */ (function ($) { //date & time alia...
JavaScript
/** * @license Input Mask plugin for jquery * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2013 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 2.3.17 */ (function ($) { if ($.fn.inputmask == undefined) { $.i...
JavaScript
/*! * jQuery Stepy - A Wizard Plugin * -------------------------------------------------------------- * * jQuery Stepy is a plugin that generates a customizable wizard. * * Licensed under The MIT License * * @version 1.1.0 * @since 2010-07-03 * @author Washington Botelho * ...
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>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page", "sSearch": "" } }); /* Default class modificat...
JavaScript
/* * Set the default display controller to be our bootstrap control */ $.fn.dataTable.Editor.defaults.display = "bootstrap"; /* * Alter the buttons that Editor adds to TableTools so they are suitable for bootstrap */ var i18nDefaults = $.fn.dataTable.Editor.defaults.i18n; i18nDefaults.create.title = "<h3>"+i18n...
JavaScript
/** Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5). You should include **manually** distributives of `wysihtml5` and `bootstrap-wysihtml5`: <link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="style...
JavaScript
/** Address editable input. Internally value stored as {city: "Moscow", street: "Lenina", building: "15"} @class address @extends abstractinput @final @example <a href="#" id="address" data-type="address" data-pk="1">awesome</a> <script> $(function(){ $('#address').editable({ url: '/post', ...
JavaScript
/** Typeahead.js input, based on [Twitter Typeahead](http://twitter.github.io/typeahead.js). It is mainly replacement of typeahead in Bootstrap 3. @class typeaheadjs @extends text @since 1.5.0 @final @example <a href="#" id="country" data-type="typeaheadjs" data-pk="1" data-url="/post" data-title="Input ...
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); ...
JavaScript
/* * jQuery File Upload jQuery UI Plugin 8.7.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, unparam: true */ /*global define, window *...
JavaScript
/* * jQuery Iframe Transport Plugin 1.7 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint unparam: true, nomen: true */ /*global define, window, documen...
JavaScript
/* * jQuery XDomainRequest Transport Plugin 1.1.3 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * Based on Julian Aubourg's ajaxHooks xdr.js: * https://github...
JavaScript
/* * jQuery postMessage Transport Plugin 1.1.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint unparam: true, nomen: true */ /*global define, window, ...
JavaScript
#!/usr/bin/env node /* * jQuery File Upload Plugin Node.js Example 2.1.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2012, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, regexp: true, un...
JavaScript
/** * Bootstro.js Simple way to show your user around, especially first time users * Http://github.com/clu3/bootstro.js * * Credit thanks to * Revealing Module Pattern from * http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/ * * Bootstrap popover vari...
JavaScript
/*! * jQuery Validation Plugin 1.11.1 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright 2013 Jörn Zaefferer * Released under the MIT license: * http://www.opensource.org/licenses/mit-license.php */ (function() { functi...
JavaScript
// ---------------------- // Inline table editor // ---------------------- $(function () { $('#editable td').editable({ closeOnEnter : true, event:"click", touch : true, callback: function(data) { if( data.fontSize ) { alert('You change...
JavaScript
// Demo for FullCalendar with Drag/Drop internal $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var calendar = $('#calendar-drag').fullCalendar({ header: { left: 'prev,next today', center: 'title', right...
JavaScript
$(document).ready(function() { //Load Wizards $('#basicwizard').stepy(); $('#wizard').stepy({finishButton: true, titleClick: true, block: true, validate: true}); //Add Wizard Compability - see docs $('.stepy-navigator').wrapInner('<div class="pull-right"></div>'); //Make Validation C...
JavaScript
$('#bootbox-demo-1').click(function(){ bootbox.alert("Hello world!"); }); $('#bootbox-demo-2').click(function(){ bootbox.alert("Hello world!", function() { alert("Hello world callback"); }); }); $('#bootbox-demo-3').click(functi...
JavaScript
// ------------------------------- // Initialize Data Tables // ------------------------------- $(document).ready(function() { $('.datatables').dataTable({ "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "oLanguage": { ...
JavaScript
// ------------------------------- // Demos // ------------------------------- $(document).ready( function() { $('.popovers').popover({container: 'body', trigger: 'hover', placement: 'top'}); //bootstrap's popover $('.tooltips').tooltip(); //bootstrap's tooltip $(".chathistory").niceScroll({horiz...
JavaScript
$(function(){ //Default $('#crop-default').Jcrop(); //Event Handler $('#crop-handler').Jcrop({ onChange: showCoords, onSelect: showCoords }); function showCoords(c) { $('#x1').val(c.x); $('#y1').val(c.y); $('#x2').val(c.x2); $('#y2').val(c.y2); $('#w').val(c.w); $('#h').val(c.h);...
JavaScript
/* Initialize Image Filter and Sort Plugin for Gallery */ $(function(){ $('.gallery').mixitup({ onMixEnd: function() { onclickofimg(); } }); }); /* Bind filter with selectbox */ $("#galleryfilter").change(function(e) { var cat = $("#galleryfilter option:selected")...
JavaScript
$(function(){ var lineChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { fillColor : "rgba(220,220,220,0.5)", strokeColor : "rgba(220,220,220,1)", pointColor : "rgba(220,220,220,1)", ...
JavaScript
$(function() { $('.mask').inputmask(); });
JavaScript
/** * Basic Map */ $(document).ready(function () { //Basic Maps var map = new GMaps({ el:'#basic-map', lat:-12.043333, lng:-77.028333 }); GMaps.geolocate({ success:function (position) { map.setCenter(position.coords.latitude, position.coords....
JavaScript
jQuery(document).ready(function() { $("#pulsate1").pulsate({glow:false}); $("#pulsate2").pulsate({color:"#09f"}); $("#pulsate3").pulsate({reach:100}); $("#pulsate4").pulsate({speed:2500}); $("#pulsate5").pulsate({pause:1000}); $("#pulsate6").pulsate({onHover:true}); }); function show_rich() { $.pnotif...
JavaScript
$(function() { $(".dial").knob(); // knob //jQuery UI Sliders //------------------------ $('#demoskylo').on('click',function(){ $(document).skylo('start'); setTimeout(function(){ $(document).skylo('set',50); },1000); setTimeout(function(){ ...
JavaScript
$('#datepageinate-ex1').datepaginator(); $('#datepageinate-ex2').datepaginator({ onSelectedDateChanged: function(event, date) { alert("Selected date: " + moment(date).format("Do, MMM YYYY")); } }); $('#datepageinate-ex3').datepaginator({size: "large"}); $('#datepageinate-ex4').datepaginator({...
JavaScript
// Inline Charts examples $(".linecharts").sparkline(); $(".barcharts").sparkline('html', {type: 'bar'}); // Composite line charts, the second using values supplied via javascript $('#compositeline').sparkline('html', { fillColor: false, changeRangeMin: 0, chartRangeMax: 10 }); $('#compositeline').sparkline([4...
JavaScript
jQuery(document).ready(function() { jQuery('#worldmap').vectorMap({ map: 'world_en', backgroundColor: 'transparent', color: '#f5f5f5', hoverOpacity: 0.7, selectedColor: '#0264d2', enableZoom: true, showTooltip: true, values: sample_data, ...
JavaScript
jQuery(document).ready(function() { $("#chat").niceScroll({horizrailenabled:false,railoffset: {left:0}}); });
JavaScript
$(function(){ Morris.Line({ element: 'line-example', data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009', a: 75, b: 65 }, { y: '2010', a: 50, b: 40 }, { y: '20...
JavaScript
$(document).ready(function(){ $("#demo").click(function(){ bootstro.start(".bootstro", { onComplete : function(params) { alert("Reached end of introduction with total " + (params.idx + 1)+ " slides"); }, onExit : function(params) { alert("Introduction stopped at slide #" + (params.idx...
JavaScript
$(function(){ var lineChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { fillColor : "rgba(220,220,220,0.5)", strokeColor : "rgba(220,220,220,1)", pointColor : "rgba(220,220,220,1)", ...
JavaScript
$(function(){ App.init(); // activate Nestable for list 1 $('#nestable_list_1').nestable({ group: 1 }) .on('change', updateOutput); // activate Nestable for list 2 $('#nestable_list_2').nestable({ group: 1 }) .on('change', updateOutput); ...
JavaScript
$(function () { //Interacting with Data Points example var sin = [], cos = []; for (var i = 0; i < 14; i += 0.5) { sin.push([i, Math.sin(i) / i]); cos.push([i, Math.cos(i)]); } var plot = $.plot($("#sincos"), [{ data: sin, label: "sin(x)/x" }, { data: cos, lab...
JavaScript
$(function() { //Parsley Form Validation //While the JS is not usually required in Parsley, we will be modifying //the default classes so it plays well with Bootstrap $('#validate-form').parsley({ successClass: 'has-success', errorClass: 'has-error', errors: { cl...
JavaScript
// ------------------------------- // Demos: Form Components // ------------------------------- $(function() { //FSEditor $(".fullscreen").fseditor({maxHeight: 500}); // iPhone like button Toggle (uncommented because already activated in demo.js) // $('.toggle').toggles({on:true}); ...
JavaScript
jQuery(document).ready(function() { $(".demodrop").pulsate({ color: "#2bbce0", repeat: 10 }); $("#threads,#comments,#users").niceScroll({horizrailenabled:false,railoffset: {left:0}}); try { //Easy Pie Chart $('.easypiechart#returningvisits').easyPieChart({ ...
JavaScript
$(function(){ //Uncomment the line and switch modes //$.fn.editable.defaults.mode = 'inline'; //editables $('#username').editable({ type: 'text', pk: 1, name: 'username', title: 'Enter username' }); $('#firstname').editable({ validate: function(...
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
/* 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
window.onload = function() { myHeight = new fx.Height('nav', {duration: 400}); myHeight.hide(); }
JavaScript
var EditableTable = function () { return { //main function to initiate the module init: function () { function restoreRow(oTable, nRow) { var aData = oTable.fnGetData(nRow); var jqTds = $('>td', nRow); for (var i = 0, iLen = jq...
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
var Nestable = 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.va...
JavaScript
/*---LEFT BAR ACCORDION----*/ $(function() { $('#nav-accordion').dcAccordion({ eventType: 'click', autoClose: true, saveState: true, disableLink: true, speed: 'slow', showCount: false, autoExpand: true, // cookie: 'dcjq-accordion-1', ...
JavaScript
/*! * jQuery Stepy - A Wizard Plugin - http://wbotelhos.com/stepy * ------------------------------------------------------------------------------------ * * jQuery Stepy is a plugin based on FormToWizard that generates a customizable wizard. * * Licensed under The MIT License * * @version 1.0.0 * @sin...
JavaScript
var Script = function () { $.validator.setDefaults({ submitHandler: function() { alert("submitted!"); } }); $().ready(function() { // validate the comment form when it is submitted $("#commentForm").validate(); // validate signup form on keyup and submit ...
JavaScript
var TreeView = function () { return { //main function to initiate the module init: function () { var DataSourceTree = function (options) { this._data = options.data; this._delay = options.delay; }; DataSourceTree.prot...
JavaScript