code
stringlengths
1
2.08M
language
stringclasses
1 value
TableSorter = function(id, dateParser) { this.id = id; this.table = document.getElementById(id); this.activeSort = null; this.dateParser = dateParser; this.getSortDirection = function(sortCol) { if (this.activeSort == null || this.activeSort.column != sortCol) this.activeSort = new SortReference(sortCol, "a...
JavaScript
// Copyright (C) 2004 by Alain Bienvenue. All rights reserved. // Released under the terms of the GNU General Public License version 2 or later. function SelectionSpreadsheetToWiki(textArea) { var translator = new SpreadsheetTranslator(); translator.parseExcelTable(textArea.value); textArea.value = translator.getFi...
JavaScript
var collapsableOpenCss = "collapsable"; var collapsableClosedCss = "hidden"; var collapsableOpenImg = "/files/images/collapsableOpen.gif"; var collapsableClosedImg = "/files/images/collapsableClosed.gif"; function toggleCollapsable(id) { var div = document.getElementById(id); var img = document.getElementById("img"...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. /** * @fileoverview This script posts to the data servlet with a request for data * to display until either the servlet responds with data or responds that it * failed. The servlet responds to each post with a message, which the script * displays to the user and d...
JavaScript
var timerlen = 5; var slideAniLen = 250; var timerID = new Array(); var startTime = new Array(); var obj = new Array(); var endHeight = new Array(); var moving = new Array(); var dir = new Array(); function slidedown(objname){ if(moving[objname]) return; if(document.getEle...
JavaScript
function onlyNumbers(evt) { var e = event || evt; // for trans-browser compatibility var charCode = e.which || e.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } function tblshowhide(id, imgid, url) { if(document.getElementById(id)...
JavaScript
function ajaxSlide(id, url){ $.get(url, function(data) { if(document.getElementById(id).style.display == 'none') { document.getElementById(id).innerHTML = data; $("#"+id).slideDown(500); } else { $("#"+id).slideUp(500, function() { document.getElementById(id).innerHTML = data; $("#"...
JavaScript
(function($) { $.fn.paginate = function(options) { var opts = $.extend({}, $.fn.paginate.defaults, options); return this.each(function() { $this = $(this); var o = $.meta ? $.extend({}, opts, $this.data()) : opts; var selectedpage = o.start; $.fn.draw(o,$this,selectedpage); }); }; var ou...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Contributors : * * Michael Hurni <michael.hurni@gmail.com> * * This program is free software; you can redistribute it and/or modify it under the...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Developers: * Fernando M.A.d.S. <fermads@gmail.com> * Michael Hurni <michael.hurni@gmail.com> * Contributors: * Martin D. Kirk * * This pr...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2007 Fernando M.A.d.S. <fermads@gmail.com> * * Developers: * Fernando M.A.d.S. <fermads@gmail.com> * Michael Hurni <michael.hurni@gmail.com> * Contributors: * Martin D. Kirk * * This pr...
JavaScript
/* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2006 Fernando M.A.d.S. <fermads@gmail.com> * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by ...
JavaScript
/* * CodePress regular expressions for C# syntax highlighting * By Edwin de Jonge */ Language.syntax = [ // C# { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(abstract|a...
JavaScript
/* * CodePress regular expressions for PHP syntax highlighting */ // PHP Language.syntax = [ { input : /(&lt;[^!\?]*?&gt;)/g, output : '<b>$1</b>' }, // all tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags { input : /(&lt;script.*?&gt;)(.*?)...
JavaScript
/* * CodePress regular expressions for Perl syntax highlighting * By J. Nick Koston */ // Perl Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /([\$\@...
JavaScript
/* * CodePress regular expressions for ASP-vbscript syntax highlighting */ // ASP VBScript Language.syntax = [ // all tags { input : /(&lt;[^!%|!%@]*?&gt;)/g, output : '<b>$1</b>' }, // style tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // script ta...
JavaScript
/* * CodePress regular expressions for Java syntax highlighting */ // Java Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>'}, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote { input : /\b(abstract|continue|for|new|swi...
JavaScript
/* * CodePress regular expressions for ASP-vbscript syntax highlighting */ // ASP VBScript Language.syntax = [ // all tags { input : /(&lt;[^!%|!%@]*?&gt;)/g, output : '<b>$1</b>' }, // style tags { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // script ta...
JavaScript
/* * CodePress regular expressions for Text syntax highlighting */ // plain text Language.syntax = [] Language.snippets = [] Language.complete = [] Language.shortcuts = []
JavaScript
/* * CodePress regular expressions for HTML syntax highlighting */ // HTML Language.syntax = [ { input : /(&lt;[^!]*?&gt;)/g, output : '<b>$1</b>' }, // all tags { input : /(&lt;a .*?&gt;|&lt;\/a&gt;)/g, output : '<a>$1</a>' }, // links { input : /(&lt;img .*?&gt;)/g, output : '<big>$1</big>' }, // images { inpu...
JavaScript
/* * CodePress regular expressions for SQL syntax highlighting * By Merlin Moncure */ // SQL Language.syntax = [ { input : /\'(.*?)(\')/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|c...
JavaScript
/* * CodePress regular expressions for XSL syntax highlighting * By RJ Bruneel */ Language.syntax = [ // XSL { input : /(&lt;[^!]*?&gt;)/g, output : '<b>$1</b>' // all tags },{ input : /(&lt;a.*?&gt;|&lt;\/a&gt;)/g, output : '<a>$1</a>' // links },{ input : /(&lt;img .*?&gt;)/g, output : '<big>$1</big>' //...
JavaScript
/* * CodePress regular expressions for CSS syntax highlighting */ // CSS Language.syntax = [ { input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values { input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys { input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters ...
JavaScript
/* * CodePress regular expressions for generic syntax highlighting */ // generic languages Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(abstract|co...
JavaScript
/* * CodePress regular expressions for JavaScript syntax highlighting */ // JavaScript Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /\b(break|continue...
JavaScript
/* * CodePress regular expressions for Perl syntax highlighting */ // Ruby Language.syntax = [ { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote { input : /([\$\@\%]+)([\w\.]*)/g, output...
JavaScript
document.write('<script src="/ad-delivery-system/dwr/engine.js"></script>'); document.write('<script src="/ad-delivery-system/dwr/interface/AdService.js"></script>');
JavaScript
// ---------------- extract user context ------------- var summary = document.body.innerHTML; summary = summary.replace(/<style[\s\S]*style>/gi, ""); // filter style summary = summary.replace(/<script[\s\S]*script>/gi, ""); // filter script summary = summary.replace(/<[^>\n]*>/gi, ""); // filter tag summary = summ...
JavaScript
jQuery(function($){ $('#formDataSource').submitAjax(); $('#remove').removeAjax(); $('table.server').dataTableCustom('/datasource/dataTable', ['teste','/datasource/get/'], ['remove','/datasource/remove/']); });
JavaScript
/** * Controls: Link plugin * * Depends on jWYSIWYG * * By: Esteban Beltran (academo) <sergies@gmail.com> */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.link.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: publ...
JavaScript
$(document).ready(function() { if($("#id").val() != ""){ $("#submit").html('<span>Alterar</span>'); } else{ $("#submit").html('<span>Criar</span>'); } });
JavaScript
jQuery.fn.extend({ addMessage: function(messages){ var msg = ''; if($.isArray(messages)) { $.each(messages, function(index) { msg += '<div class="system ' + messages[index].type.toLowerCase() + '">' + messages[index].message + '</div>'; }); } else { msg += '<div class="system ' + messages...
JavaScript
jQuery.fn.extend({ submitAjax: function() { var tag = this; $(tag).submit(function() { // habilita os inputs para que os valores possam ser recuperados e salvos tag.find(':input:disabled').removeAttr('disabled'); $.ajax({url: $(tag).attr('action'), type: $(tag).attr('method'), data: $(tag).seriali...
JavaScript
jQuery.fn.extend({ dataTableCustom: function(urlApplication, edit, remove) { var tag = this; if(tag.length > 0){ addHeaderEditAndDelete(tag[0].localName + ' thead tr th', edit[0], remove[0]); } $(this).dataTable({ "bInfo": false, "iDisplayLength": 5, "aLengthMenu": [[5, 10, ...
JavaScript
$(document).ready(function() { // Store variables var accordion_head = $('#accordion > li > a'), accordion_body = $('#accordion > li > .sub-menu'); // Open the first tab on load accordion_head.first().addClass('activeAccordion').next().slideDown('normal'); // Click function accordion_head.on('click', fun...
JavaScript
jQuery(function($){ var breadcrumbs = getItemMenu('login'); var itensMenu = menu.split('|'); $.each(itensMenu, function(index) { breadcrumbs += getItemMenu(itensMenu[index]); }); $("#breadcrumbs ul").html(breadcrumbs); }); function getItemMenu(item){ var application = location.pathname.split('/')[1]...
JavaScript
$(document).ready(function(){ // HIDE BOXES $('.title .hide').click( function() { $(this).parent().next('.content').slideToggle(400); }); // SELECTBOXES $(function() { $('.dataTables_length input, select').not("select.multiple").selectmenu({ style: 'dropdown', transferClasses...
JavaScript
/** * WYSIWYG - jQuery plugin 0.97 * (0.97.2 - From infinity) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.g...
JavaScript
// Copyright (C) 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 t...
JavaScript
/** * Controls: Table plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.table.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } var insertTable = function (colCount, rowCount, filler) { if (isNaN(rowCount) ||...
JavaScript
/* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: j...
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
(function($) { $.fn.graphTable = function(_graphArgs,_flotArgs) { var args = { /* * options for reading the table -- defaults will work in most cases except * you'll want to override the default args.series if your series are in columns * * note that anywhere the word "ind...
JavaScript
/** * * Color picker * Author: Stefan Petre www.eyecon.ro * * Dual licensed under the MIT and GPL licenses * */ (function ($) { var ColorPicker = function () { var ids = {}, inAction, charMin = 65, visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div><...
JavaScript
/*-------------------------------------------------------------------- * jQuery plugin: customInput() * by Maggie Wachs and Scott Jehl, http://www.filamentgroup.com * Copyright (c) 2009 Filament Group * Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgroup.com/examples/gpl...
JavaScript
// tipsy, facebook style tooltips for jquery // version 1.0.0a // (c) 2008-2010 jason frame [jason@onehackoranother.com] // releated under the MIT license (function($) { function fixTitle($ele) { if ($ele.attr('title') || typeof($ele.attr('original-title')) != 'string') { $ele.attr('origin...
JavaScript
/** * Controls: Image plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.image.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: public properties and methods */ $.wysiwyg.controls.im...
JavaScript
/** * rmFormat plugin * * Depends on jWYSIWYG */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.rmFormat.js depends on $.wysiwyg"; } /* * Wysiwyg namespace: public properties and methods */ var rmFormat = { name: "rmFormat", version: "", defaults: { rules: { heading: false, ...
JavaScript
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) // jPrompt( me...
JavaScript
var page = require('webpage').create(); console.log('The default user agent is ' + page.settings.userAgent); page.open('http://localhost/cxStudio.UI.Frontend/Account', function () { page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js", function () { page.evaluate(function () ...
JavaScript
$(function () { showFrame('desktop'); var $buttons = $('#responsivator li'); var $hideButton = $('#hide-button'); $buttons.click(function () { var $item = $(this); $buttons.removeClass('selected'); $item.addClass('selected'); showFrame($item.attr('id'))...
JavaScript
var errorEnum = { EXECUTE_FAIL: 'update fail', TIMEOUT: 'timeout' }, ajaxContentTypeEnum = { JSON: 'application/json;charset=utf-8' }, keyCodeEnum = { F5: 116, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, BACKSPACE: 8, ...
JavaScript
/*jshint strict:false, browser:true, jquery:true, unused:false, evil:true, devel:false, undef:false */ /* * Global variables */ window.isMobileBrowser = jQuery.browser.mobile || /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent); $.extend({ ajaxRequest: function (options) { ...
JavaScript
var templates = {}; templates.tabs = [ '{{#isFirstTab}}<ul class="nav nav-tabs">{{/isFirstTab}}', '<li tab-index="{{{tabIndex}}}" tab-name="{{{tabName}}}"{{#updateId}} update-id="{{updateId}}"{{/updateId}}>', '<a href="{{tabId}}" data-toggle="tab">{{tabTitle}}', '<i class...
JavaScript
/*jshint strict:false, browser:true, jquery:true, unused:false, evil:true, devel:false */ /*global popup:false, tooltip:false, escape:false,toggleLeftMenu:false, iScroll:false, expandSearchInput:false,getFocusTabIndex:true */ // Test on Firefox, Chrome $(function () { if (!window.isMobileBrowser) { ...
JavaScript
// both UPPER and lower, you choose var JSONH, jsonh = JSONH = function (Array, JSON) { "use strict"; // if you want /** * Copyright (C) 2011 by Andrea Giammarchi, @WebReflection * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software an...
JavaScript
// @author Andrea Giammarchi (function (cache) { /** JSON.hpack(homogeneousCollection:Array[, compression:Number]):Array * @param Array mono dimensional homogeneous collection of objects to pack * @param [Number] optional compression level from 0 to 4 - default 0 * @return Array ...
JavaScript
/* json2.js 2012-10-08 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM S...
JavaScript
/* * * Copyright (c) 2006-2014 Sam Collett (http://www.texotela.co.uk) * 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.4 * Demo: http://www.texotela.co.uk/code/jquery/numeric/ * */ (functi...
JavaScript
/*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ /*global define: false*/ (function (root, factory) { if (typeof exports === "object" && exports) { factory(exports); // CommonJS } else { var mustache = {}; factory(mustache); if (typeo...
JavaScript
/** * A Javascript object to encode and/or decode html characters using HTML or Numeric entities that handles double or partial encoding * Author: R Reid * source: http://www.strictly-software.com/htmlencode * Licences: GPL, The MIT License (MIT) * Copyright: (c) 2011 Robert Reid - Strictly-Software.com * ...
JavaScript
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to bu...
JavaScript
CKEDITOR.plugins.add('imageuploader', { init: function (editor) { var $fileControl = $('#file-' + editor.name), buttonName = 'ImageUploader'; editor.ui.addButton(buttonName, { label: 'Insert image', command: 'OpenFileDialog', icon: ...
JavaScript
/* * @file image paste plugin for CKEditor Feature introduced in: https://bugzilla.mozilla.org/show_bug.cgi?id=490879 doesn't include images inside HTML (paste from word): https://bugzilla.mozilla.org/show_bug.cgi?id=665341 * Copyright (C) 2011-13 Alfonso Martínez de Lizarrondo * * == BEGIN LICENSE == * ...
JavaScript
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
JavaScript
CKEDITOR.plugins.add('eventpaste', { init: function (editor) { editor.on('paste', function (e) { var data = e.data, html = (data.html || (data.type && data.type == 'html' && data.dataValue)); if (!html) return; html.replace(/<img src="data:image\/...
JavaScript
/** * @license Copyright (c) 2003-2013, 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-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md 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 combo ...
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.0 Timestamp: Tue May 14 08:27:33 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 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 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
/** * Select2 Catalan translation. * * Author: David Planella <david.planella@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "No s'ha trobat cap coincidència"; }, formatInputTooShort: function (input, min) { var n = min -...
JavaScript
/** * Select2 French translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Aucun r&eacute;sultat trouv&eacute;"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caract...
JavaScript
/** * Select2 Danish translation. * * Author: Anders Jenbo <anders@jenbo.dk> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ingen resultater fundet"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return...
JavaScript
/** * Select2 Japanese translation. */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "該当項目なし"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; }, formatInputTooLong: funct...
JavaScript
/** * Select2 Chinese translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "没有找到匹配项"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";}, formatInputTooLong: function (i...
JavaScript
/** * Select2 Portuguese (Portugal) translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nenhum resultado encontrado"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " carac...
JavaScript
/** * Select2 lithuanian translation. * * Author: CRONUS Karmalakas <cronus dot karmalakas at gmail dot com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Atitikmenų nerasta"; }, formatInputTooShort: function (input, min) { ...
JavaScript
/** * Select2 Norwegian translation. * * Author: Torgeir Veimo <torgeir.veimo@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ingen treff"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return...
JavaScript
/** * Select2 Swedish translation. * * Author: Jens Rantil <jens.rantil@telavox.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Inga träffar"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "V...
JavaScript
/** * Select2 Polish translation. * * Author: Jan Kondratowicz <jan@kondratowicz.pl> */ (function ($) { "use strict"; var pl_suffix = function(n) { if(n == 1) return ""; if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return "i"; return "ów"; }; $....
JavaScript
/** * Select2 Hebrew translation. * * Author: Yakir Sitbon <http://www.yakirs.net/> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "לא נמצאו התאמות"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "נא ...
JavaScript
/** * Select2 <Language> translation. * * Author: bigmihail <bigmihail@bigmir.net> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Нічого не знайдено"; }, formatInputTooShort: function (input, min) { var n = min - input.length, s = ...
JavaScript
/** * Select2 Russian translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Совпадений не найдено"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (...
JavaScript
/** * Select2 Italian translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nessuna corrispondenza trovata"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter"...
JavaScript
/** * Select2 Macedonian translation. * * Author: Marko Aleksic <psybaron@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Нема пронајдено совпаѓања"; }, formatInputTooShort: function (input, min) { var n = min - input.len...
JavaScript
/** * Select2 Hungarian translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Nincs találat."; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Túl rövid. Még " + n + " karakter hiányzik."; }, ...
JavaScript
/** * Select2 Spanish translation */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "No se encontraron resultados"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor adicione " + n + " caracter"...
JavaScript
/** * Select2 Czech translation. * * Author: Michal Marek <ahoj@michal-marek.cz> * Author - sklonovani: David Vallner <david@vallner.net> */ (function ($) { "use strict"; // use text for the numbers 2 through 4 var smallNumbers = { 2: function(masc) { return (masc ? "dva" : "dvě"); }, ...
JavaScript