code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * jQuery plugin that makes elements editable * * @author Victor Jonsson (http://victorjonsson.se/) * @website https://github.com/victorjonsson/jquery-editable/ * @license GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * @version 1.3.6.dev * @donations http://victorjonsson.se/donations/ */ (function($, window) { ...
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 * @documentat...
JavaScript
/* * jQuery Pines Notify (pnotify) Plugin 1.2.0 * * http://pinesframework.org/pnotify/ * Copyright (c) 2009-2012 Hunter Perrin * * Triple license under the GPL, LGPL, and MPL: * http://www.gnu.org/licenses/gpl.html * http://www.gnu.org/licenses/lgpl.html * http://www.mozilla.org/MPL/MPL-1.1.html */ (fu...
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), then the ...
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 plot error-ba...
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. * * Inspiration fr...
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", "y" or "xy". ...
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 better, du...
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 you ea...
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 client or time...
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 :{ order = null...
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" } } */ (function...
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 the axis w...
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 are no opt...
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"), [{ data: [...
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 support is ena...
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. 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 bottom of e...
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 results. Th...
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 Javascript ...
JavaScript
// ------------------------------ // Sidebar Accordion Menu // ------------------------------ $(function () { //if($.cookie('admin_leftbar_collapse') === 'collapse-leftbar') { // $('body').addClass('collapse-leftbar'); //} else { // $('body').removeClass('collapse-leftbar'); //} $('body'...
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({size: "sma...
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,1,5,7,...
JavaScript
jQuery(document).ready(function() { $("#chat").niceScroll({horizrailenabled:false,railoffset: {left:0}}); });
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(function(){ ...
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() { $.pnotify({ titl...
JavaScript
$(function() { $(".dial").knob(); // knob //jQuery UI Sliders //------------------------ $('#demoskylo').on('click',function(){ $(document).skylo('start'); setTimeout(function(){ $(document).skylo('set',50); },1000); setTimeout(function(){ $(document).sk...
JavaScript
$(function(){ // 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); // output initial serialised da...
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(){ //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(value) { ...
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
// ---------------------- // Inline table editor // ---------------------- $(function () { $('#editable td').editable({ closeOnEnter : true, event:"click", touch : true, callback: function(data) { if( data.fontSize ) { alert('You changed the font si...
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.longitude); ...
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: 'month,agen...
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").data('filter...
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({ barColor: "#...
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}); // Autogrow...
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, label: "cos(x)"...
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 + 1)); ...
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: { classHandl...
JavaScript
$(function() { $('.mask').inputmask(); });
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: '2011', a: 7...
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 Compabilit...
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(){ //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
// ------------------------------- // Demos // ------------------------------- $(document).ready( function() { $('.popovers').popover({container: 'body', trigger: 'hover', placement: 'top'}); //bootstrap's popover $('.tooltips').tooltip(); //bootstrap's tooltip $(".chathistory").niceScroll({horizrailenab...
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, scaleC...
JavaScript
jQuery.extend({ tooltip:function(s){ var mainElement=$('#'+s.mainElement); var tipElement=$('#'+s.tipElement); var width=s.width? s.width : 200; var top=s.top? s.top : 10; var left=s.left? s.left : 15; tipElement.css('width', width); mainElement.bind('mouseover', function(e){ x=e.pageX || event.cli...
JavaScript
function q(id) { if(document.getElementById(id)){ obj=document.getElementById(id); }else{ obj=document.getElementsByName(id); if(obj){ obj=obj[0]; } } return obj; }
JavaScript
jQuery.extend({ createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' + id; if(window.ActiveXObject) { var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />'); if(typeof uri==...
JavaScript
// Config.js, Version 1.1, 2005/04 // Copyright (C) 2004 by Hans Bauer, Schillerstr. 30, D-73072 Donzdorf // http://www.h-bauer.de // // 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...
JavaScript
// default.js, Version 1.1, 2005/04 // Copyright (C) 2004 by Hans Bauer, Schillerstr. 30, D-73072 Donzdorf // http://www.h-bauer.de // // 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 Softwar...
JavaScript
// TreeMenu.js, Version 1.1, 2005/04 // Copyright (C) 2004 by Hans Bauer, Schillerstr. 30, D-73072 Donzdorf // http://www.h-bauer.de // // 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 Softwa...
JavaScript
// TreeMenu.js, Version 1.1, 2005/04 // Copyright (C) 2004 by Hans Bauer, Schillerstr. 30, D-73072 Donzdorf // http://www.h-bauer.de // // 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 ...
JavaScript
function open_popup(s){ var settings=jQuery.extend({content:'',id:'',width:600,top:30}, s); //document width & height var dwidth = 0, dheight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE dwidth = window.innerWidth; dheight = window.innerHeight; } else if( document.documentElement && ( docum...
JavaScript
function htmlentities( string ){ // http://kevin.vanzonneveld.net // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // % note: table from http://www.the-art-of-web.com/html/character-codes/ // * ...
JavaScript
function number_format(str,decimal,prefix){ var prefix = prefix || ''; var decimal = decimal || 0; var nStr=''+str; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; if(decimal>0){ if(x2.length>(decimal+1)){ x2=x2.substr(0, decimal+1); }else if(x2.length<(decimal+1)){ ...
JavaScript
function array_flip(trans){var key,tmp_ar={};for(key in trans){tmp_ar[trans[key]]=key;}return tmp_ar;}
JavaScript
var Slate = function () { var chartColors, nav, navTop; chartColors = ["#263849", "#F90", "#666", "#BBB"]; return { start: start, chartColors: chartColors }; function start () { nav = $('#nav'); navTop = nav.offset ().top; bindNavEvents (); bindWidgetEvents (); bindAccordionEvents (); ...
JavaScript
/** Script: Slideshow.js Slideshow - A javascript class for Mootools to stream and animate the presentation of images on your website. License: MIT-style license. Copyright: Copyright (c) 2008 [Aeron Glemann](http://www.electricprism.com/aeron/). Dependencies: Mootools 1.2 Core: Fx.Morph, Fx.Tween, Selectors, El...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software")...
JavaScript
// script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
var Slate = function () { var chartColors, nav, navTop; chartColors = ["#263849", "#F90", "#666", "#BBB"]; return { start: start, chartColors: chartColors }; function start () { nav = $('#nav'); navTop = nav.offset ().top; bindNavEvents (); bindWidgetEvents (); bindAccordionEvents (); ...
JavaScript
//Gradual Elements Fader- By Dynamic Drive at http://www.dynamicdrive.com //Last updated: Nov 8th, 07' var gfader={} gfader.baseopacity=0 //set base opacity when mouse isn't over element (decimal below 1) gfader.increment=0.2 //amount of opacity to increase after each iteration (suggestion: 0.1 or 0.2) document.writ...
JavaScript
//Gradual Elements Fader- By Dynamic Drive at http://www.dynamicdrive.com //Last updated: Nov 8th, 07' var gfader={} gfader.baseopacity=0 //set base opacity when mouse isn't over element (decimal below 1) gfader.increment=0.2 //amount of opacity to increase after each iteration (suggestion: 0.1 or 0.2) document.writ...
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
/** * * 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 api response...
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-meszaros/...
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, document */ (funct...
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 */ (function...
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, document */ ...
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.com/jaubou...
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, unparam: true,...
JavaScript
/* =========================================================== * Bootstrap: fileinput.js v3.1.1 * http://jasny.github.com/bootstrap/javascript/#fileinput * =========================================================== * Copyright 2012-2014 Arnold Daniels * * Licensed under the Apache License, Version 2.0 (the "Lice...
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"); }); afterEach(fun...
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() { select.mul...
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.createTextNode(ch...
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("unimplemented ...
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 = function(...
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 Hocevar. ...
JavaScript
/** * Select2 Brazilian Portuguese translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nenhum resultado encontrado"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caracter...
JavaScript
/* Copyright 2012 Igor Vaynberg Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the...
JavaScript
/** * Select2 Latvian translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Sakritību nav"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us...
JavaScript
/** * Select2 Traditional Chinese translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "沒有找到相符的項目"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";}, formatInputTooLon...
JavaScript
/** * Select2 Slovak translation. * * Author: David Vallner <david@vallner.net> */ (function ($) { "use strict"; // use text for the numbers 2 through 4 var smallNumbers = { 2: function(masc) { return (masc ? "dva" : "dve"); }, 3: function() { return "tri"; }, 4: function() { ret...
JavaScript
/** * Select2 German translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Keine Übereinstimmungen gefunden"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeb...
JavaScript
/** * Select2 Malay translation. * * Author: Kepoweran <kepoweran@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Tiada padanan yang ditemui"; }, formatInputTooShort: function (input, min) { var n = min - input.length; re...
JavaScript
/** * Select2 <Language> translation. * * Author: Your Name <your@email> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return ...
JavaScript
/** * Select2 Croatian translation. * * Author: Edi Modrić <edi.modric@gmail.com> */ (function ($) { "use strict"; var specialNumbers = { 1: function(n) { return (n % 100 != 11 ? "znak" : "znakova"); }, 2: function(n) { return (n % 100 != 12 ? "znaka" : "znakova"); }, 3: function(n)...
JavaScript
/** * Select2 Basque translation. * * Author: Julen Ruiz Aizpuru <julenx at gmail dot com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ez da bat datorrenik aurkitu"; }, formatInputTooShort: function (input, min)...
JavaScript
/** * Select2 Turkish translation. * * Author: Salim KAYABAŞI <salim.kayabasi@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Sonuç bulunamadı"; }, formatInputTooShort: function (input, min) { var n = min - input.length; ...
JavaScript
/** * Select2 Romanian translation. */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nu a fost găsit nimic"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " cara...
JavaScript
/** * Select2 <Language> translation. * * Author: Swen Mun <longfinfunnel@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "결과 없음"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "너무 짧습니다...
JavaScript
/** * Select2 Icelandic translation. * */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ekkert fannst"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n == 1...
JavaScript
/** * Select2 Estonian translation. * * Author: Kuldar Kalvik <kuldar@kalvik.ee> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Tulemused puuduvad"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return ...
JavaScript
/** * Select2 Galician translation * * Author: Leandro Regueiro <leandro.regueiro@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Non se atoparon resultados"; }, formatInputTooShort: function (input, m...
JavaScript
/** * Select2 Vietnamese translation. * * Author: Long Nguyen <olragon@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Không tìm thấy kết quả"; }, formatInputTooShort: function (input, min) { var n = min - input.length; r...
JavaScript