code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * Translated default messages for bootstrap-select. * Locale: ES (Spanish) * Region: CL (Chile) */ (function ($) { $.fn.selectpicker.defaults = { noneSelectedText: 'No hay selección', noneResultsText: 'No hay resultados {0}', countSelectedText: 'Seleccionados {0} de {1}', maxOptionsText: ['Lími...
JavaScript
/* * Translated default messages for bootstrap-select. * Locale: RU (Russian; Русский) * Region: RU (Russian Federation) */ (function ($) { $.fn.selectpicker.defaults = { noneSelectedText: 'Ничего не выбрано', noneResultsText: 'Совпадений не найдено {0}', countSelectedText: 'Выбрано {0} из {1}', m...
JavaScript
module.exports = function (grunt) { // From TWBS RegExp.quote = function (string) { return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&'); }; // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('package.json'), banner: '/*!\n' + ' * Bootstrap-select v<%= p...
JavaScript
'use strict'; // Build script from https://github.com/nodeca/mincer/tree/master/examples // // Require module // var Mincer = require('mincer'); // // Get Mincer environment // // // Configure Mincers logger, by default, all // messages are going to the middle of nowhere // Mincer.logger.use(console); // /...
JavaScript
//= require jquery //= require bootstrap-sprockets
JavaScript
/* ======================================================================== * Bootstrap: tooltip.js v3.3.2 * http://getbootstrap.com/javascript/#tooltip * Inspired by the original jQuery.tipsy by Jason Frame * ======================================================================== * Copyright 2011-2015 Twitter, I...
JavaScript
/* ======================================================================== * Bootstrap: modal.js v3.3.2 * http://getbootstrap.com/javascript/#modals * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstra...
JavaScript
/* ======================================================================== * Bootstrap: transition.js v3.3.2 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twb...
JavaScript
/* ======================================================================== * Bootstrap: scrollspy.js v3.3.2 * http://getbootstrap.com/javascript/#scrollspy * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/b...
JavaScript
/* ======================================================================== * Bootstrap: carousel.js v3.3.2 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/boo...
JavaScript
/* ======================================================================== * Bootstrap: collapse.js v3.3.2 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/boo...
JavaScript
/* ======================================================================== * Bootstrap: dropdown.js v3.3.2 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bo...
JavaScript
/* ======================================================================== * Bootstrap: popover.js v3.3.2 * http://getbootstrap.com/javascript/#popovers * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/boot...
JavaScript
/* ======================================================================== * Bootstrap: alert.js v3.3.2 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstra...
JavaScript
/* ======================================================================== * Bootstrap: button.js v3.3.2 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootst...
JavaScript
/* ======================================================================== * Bootstrap: tab.js v3.3.2 * http://getbootstrap.com/javascript/#tabs * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/bl...
JavaScript
/* ======================================================================== * Bootstrap: affix.js v3.3.2 * http://getbootstrap.com/javascript/#affix * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap...
JavaScript
/* Inspired by Lee Byron's test data generator. */ function stream_layers(n, m, o) { if (arguments.length < 3) o = 0; function bump(a) { var x = 1 / (.1 + Math.random()), y = 2 * Math.random() - .5, z = 10 / (.1 + Math.random()); for (var i = 0; i < m; i++) { var w = (i / m - y) * z; ...
JavaScript
//A little snippet of D3 code that creates a button that lets you toggle whether a chart is the only one visible on a page or not. d3.selectAll(".chart button").on("click",function() { var thisId = this.parentElement.id; var chartContainer = d3.select("#" + thisId); if (chartContainer.attr("class").match("sel...
JavaScript
module.exports = function(grunt) { //Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: '' }, dist: { src: [ 'src/intro.js', ...
JavaScript
/* Inspired by Lee Byron's test data generator. */ function stream_layers(n, m, o) { if (arguments.length < 3) o = 0; function bump(a) { var x = 1 / (.1 + Math.random()), y = 2 * Math.random() - .5, z = 10 / (.1 + Math.random()); for (var i = 0; i < m; i++) { var w = (i / m - y) * z; ...
JavaScript
(function(){ var nv = window.nv || {}; nv.version = '1.2.0'; nv.dev = false; //set false when in production window.nv = nv; nv.tooltip = nv.tooltip || {}; // For the tooltip system nv.utils = nv.utils || {}; // Utility subsystem nv.models = nv.models || {}; //stores all the possible models/components nv.charts = {};...
JavaScript
/* Tooltip rendering model for nvd3 charts. window.nv.models.tooltip is the updated,new way to render tooltips. window.nv.tooltip.show is the old tooltip code. window.nv.tooltip.* also has various helper methods. */ (function() { "use strict"; window.nv.tooltip = {}; /* Model which can be instantiated to handle...
JavaScript
})();
JavaScript
nv.utils.windowSize = function() { // Sane defaults var size = {width: 640, height: 480}; // Earlier IE uses Doc.body if (document.body && document.body.offsetWidth) { size.width = document.body.offsetWidth; size.height = document.body.offsetHeight; } // IE can use depending o...
JavaScript
/* Utility class to handle creation of an interactive layer. This places a rectangle on top of the chart. When you mouse move over it, it sends a dispatch containing the X-coordinate. It can also render a vertical line where the mouse is located. dispatch.elementMousemove is the important event to latch onto. It is f...
JavaScript
(function(){
JavaScript
nv.models.cumulativeLineChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , xAxis = nv.models.axis() , yAxis = nv.mode...
JavaScript
nv.models.multiBarChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var multibar = nv.models.multiBar() , xAxis = nv.models.axis() , yAxis = nv.mod...
JavaScript
nv.models.pieChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var pie = nv.models.pie() , legend = nv.models.legend() ; var margin = {top: 30, r...
JavaScript
nv.models.ohlcBar = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , height = 500 ...
JavaScript
nv.models.linePlusBarWithFocusChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , lines2 = nv.models.line() , bars = nv...
JavaScript
nv.models.discreteBarChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var discretebar = nv.models.discreteBar() , xAxis = nv.models.axis() , yAxis...
JavaScript
nv.models.multiBar = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , height = 500 ...
JavaScript
nv.models.linePlusBarChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , bars = nv.models.historicalBar() , xAxis = nv...
JavaScript
nv.models.multiBarTimeSeries = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , height ...
JavaScript
nv.models.lineWithFocusChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , lines2 = nv.models.line() , xAxis = nv.model...
JavaScript
nv.models.stackedArea = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , height = 500 ...
JavaScript
nv.models.sparklinePlus = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var sparkline = nv.models.sparkline(); var margin = {top: 15, right: 100, bottom: 10...
JavaScript
nv.models.lineChart = function() { "use strict"; var margin = {top: 30, right: 20, bottom: 50, left: 60} , color = nv.utils.defaultColor() , width = null , height = null , showLegend = true , showControls = true , fisheye = 0 , pauseFisheye = false , tooltips = true ...
JavaScript
nv.models.multiBarTimeSeriesChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var multibar = nv.models.multiBarTimeSeries() , xAxis = nv.models.axis() ...
JavaScript
nv.models.pie = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 500 , height = 500 , get...
JavaScript
//TODO: consider deprecating and using multibar with single series for this nv.models.historicalBar = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin =...
JavaScript
nv.models.stackedAreaChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var stacked = nv.models.stackedArea() , xAxis = nv.models.axis() , yAxis = n...
JavaScript
nv.models.multiBarHorizontalChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var multibar = nv.models.multiBarHorizontal() , xAxis = nv.models.axis() ...
JavaScript
nv.models.scatterChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var scatter = nv.models.scatter() , xAxis = nv.models.axis() , yAxis ...
JavaScript
nv.models.multiBarHorizontal = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , height...
JavaScript
nv.models.chartName = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 30, right: 10, bottom: 10, left: 10} , width = 960 , height = 5...
JavaScript
nv.models.legend = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 5, right: 0, bottom: 5, left: 0} , width = 400 , height = 20 , g...
JavaScript
//Code adapted from Jason Davies' "Parallel Coordinates" // http://bl.ocks.org/jasondavies/1341281 nv.models.parallelCoordinates = function() { "use strict"; //============================================================ // Public Variables with Default Settings //---------------------------------------------...
JavaScript
// Chart design based on the recommendations of Stephen Few. Implementation // based on the work of Clint Ivy, Jamie Love, and Jason Davies. // http://projects.instantcognition.com/protovis/bulletchart/ nv.models.bullet = function() { "use strict"; //============================================================ ...
JavaScript
// Chart design based on the recommendations of Stephen Few. Implementation // based on the work of Clint Ivy, Jamie Love, and Jason Davies. // http://projects.instantcognition.com/protovis/bulletchart/ nv.models.bullet = function() { //============================================================ // Public Varia...
JavaScript
// Chart design based on the recommendations of Stephen Few. Implementation // based on the work of Clint Ivy, Jamie Love, and Jason Davies. // http://projects.instantcognition.com/protovis/bulletchart/ nv.models.bulletChart = function() { //============================================================ // Public V...
JavaScript
nv.models.axis = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var axis = d3.svg.axis() ; var margin = {top: 0, right: 0, bottom: 0, left: 0} , width...
JavaScript
//TODO: consider deprecating by adding necessary features to multiBar model nv.models.discreteBar = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {...
JavaScript
nv.models.scatter = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 960 , heig...
JavaScript
nv.models.multiChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 30, right: 20, bottom: 50, left: 60}, color = d3.scale.category20(...
JavaScript
// Chart design based on the recommendations of Stephen Few. Implementation // based on the work of Clint Ivy, Jamie Love, and Jason Davies. // http://projects.instantcognition.com/protovis/bulletchart/ nv.models.bulletChart = function() { "use strict"; //===========================================================...
JavaScript
nv.models.distribution = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} , width = 400 //technically widt...
JavaScript
nv.models.lineChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , xAxis = nv.models.axis() , yAxis = nv.models.axis() ...
JavaScript
nv.models.sparkline = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 2, right: 0, bottom: 2, left: 0} , width = 400 , height = 32 ...
JavaScript
nv.models.line = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var scatter = nv.models.scatter() ; var margin = {top: 0, right: 0, bottom: 0, left: 0} ...
JavaScript
nv.models.indentedTree = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var margin = {top: 0, right: 0, bottom: 0, left: 0} //TODO: implement, maybe as margin on...
JavaScript
nv.models.scatterPlusLineChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var scatter = nv.models.scatter() , xAxis = nv.models.axis() ...
JavaScript
nv.models.historicalBarChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var bars = nv.models.historicalBar() , xAxis = nv.models.axis() , yAxis = ...
JavaScript
nv.models.line = function() { "use strict"; //Default Settings var margin = {top: 0, right: 0, bottom: 0, left: 0}, width = 960, height = 500, color = nv.utils.defaultColor(), // function that returns colors id = Math.floor(Math.random() * 10000), //Create semi-unique ID incase user doesn...
JavaScript
var nv = window.nv || {}; nv.version = '1.2.0'; nv.dev = false; //set false when in production window.nv = nv; nv.tooltip = nv.tooltip || {}; // For the tooltip system nv.utils = nv.utils || {}; // Utility subsystem nv.models = nv.models || {}; //stores all the possible models/components nv.charts = {}; //stores all...
JavaScript
(function(d3) { var cie = d3.cie = {}; cie.lab = function(l, a, b) { return arguments.length === 1 ? (l instanceof Lab ? lab(l.l, l.a, l.b) : (l instanceof Lch ? lch_lab(l.l, l.c, l.h) : rgb_lab((l = d3.rgb(l)).r, l.g, l.b))) : lab(+l, +a, +b); }; cie.lch = function(l, c, h...
JavaScript
(function(exports){ crossfilter.version = "1.0.3"; function crossfilter_identity(d) { return d; } crossfilter.permute = permute; function permute(array, index) { for (var i = 0, n = index.length, copy = new Array(n); i < n; ++i) { copy[i] = array[index[i]]; } return copy; } var bisect = crossfilter.bisect ...
JavaScript
// This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/). var colorbrewer = {YlGn: { 3: ["#f7fcb9","#addd8e","#31a354"], 4: ["#ffffcc","#c2e699","#78c679","#238443"], 5: ["#ffffcc","#c2e699","#78c679","#31a354","#006837"], 6: ["#ffffcc","#d9f0a3","#addd8e","#78c679...
JavaScript
d3.hive = {}; d3.hive.link = function() { var source = function(d) { return d.source; }, target = function(d) { return d.target; }, angle = function(d) { return d.angle; }, startRadius = function(d) { return d.radius; }, endRadius = startRadius, arcOffset = -Math.PI / 2; function lin...
JavaScript
d3.sankey = function() { var sankey = {}, nodeWidth = 24, nodePadding = 8, size = [1, 1], nodes = [], links = []; sankey.nodeWidth = function(_) { if (!arguments.length) return nodeWidth; nodeWidth = +_; return sankey; }; sankey.nodePadding = function(_) { if (!ar...
JavaScript
(function() { d3.fisheye = { scale: function(scaleType) { return d3_fisheye_scale(scaleType(), 3, 0); }, circular: function() { var radius = 200, distortion = 2, k0, k1, focus = [0, 0]; function fisheye(d) { var dx = d.x - focus[0], ...
JavaScript
(function() { d3.horizon = function() { var bands = 1, // between 1 and 5, typically mode = "offset", // or mirror interpolate = "linear", // or basis, monotone, step-before, etc. x = d3_horizonX, y = d3_horizonY, w = 960, h = 40, duration = 0; var colo...
JavaScript
$(function() { var ads = [ { quote: "Take your icon game to the next level.", content: "ad_1_next_level"}, { quote: "Subset your icons, add your own, and serve up from a CDN.", content: "ad_2_all_value_add"}, { quote: "Make your icons load 10x faster!", content: "ad_3_faster_loading"}, { quote: "Looki...
JavaScript
$(function() { // start the icon carousel $('#iconCarousel').carousel({ interval: 5000 }); // make code pretty // $('pre').addClass('prettyprint'); // window.prettyPrint && prettyPrint(); // Disable links with href="#" inside <section>, so users can click on them // to preview :active state witho...
JavaScript
$(function(){ window.prettyPrint && prettyPrint(); }(window.jQuery)); jQuery(document).ready(function($) { //Download Link Highlight if($("body").data("page")==="frontpage"){ $(window).scroll(function(){ var scrolled = $(window).scrollTop(); var downloadLink = $("#top-nav").find(".download") if...
JavaScript
/* * jQuery OwlCarousel v1.3.3 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ * * Licensed under MIT * */ /*JS Lint helpers: */ /*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */ /*jslint nomen: true, continue:true */ if (typeof Object.cr...
JavaScript
/*! Autosize 1.18.17 license: MIT http://www.jacklmoore.com/autosize */ (function ($) { var defaults = { className: 'autosizejs', id: 'autosizejs', append: '\n', callback: false, resizeDelay: 10, placeholder: true }, // border:0 is unnecessary, but avoids a bug in Firefox on OSX copy = '<textarea t...
JavaScript
/*! * jQuery.scrollTo * Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT * http://flesler.blogspot.com/2007/10/jqueryscrollto.html * @projectDescription Easy element scrolling using jQuery. * @author Ariel Flesler * @version 1.4.14 */ ;(function(d...
JavaScript
$.fn.test = function(){ if( location.search == '?notest' ) return this; testScrollable(); $.scrollTo.defaults.axis = 'xy'; this._scrollable().find('div').html( navigator.userAgent + '<br />' + 'document.compatMode is "' + document.compatMode + '"' + '<br />' + 'scrolling the ' + this._...
JavaScript
function Trim(TrimString) { var tempObj; if (TrimString) { tempObj = TrimString; TrimString = tempObj.value; } if (TrimString == "undefined" || TrimString == null) return null; if (TrimString.length == 0) TrimString = ""; else { var Lcont = 0, TempStrArray = TrimString.split(" "), Rco...
JavaScript
var ItemCount = 0; var OrderItemInfo = ""; $(document).ready(function () { OrderItemInfo = $.parseJSON($("#hid_today_item_list").val()); ItemCount = OrderItemInfo["ItemCount"]; bindTiemList(OrderItemInfo["ItemList"]); $('#tbl_menu_list').tablePagination(); var currDate = new Date(); i...
JavaScript
$(document).ready(function () { var tblOrderList = $("#tbl_order_history_list"); if (tblOrderList.find("tbody>tr").length == 0) { var html = "<tr><td colspan='5' style='text-align:center;'>您还没有订餐记录</td></tr>" tblOrderList.find("tbody").append(html); } else { tblOrderList.tablePagi...
JavaScript
/** * tablePagination - A table plugin for jQuery that creates pagination elements * * http://neoalchemy.org/tablePagination.html * * Copyright (c) 2009 Ryan Zielke (neoalchemy.com) * licensed under the MIT licenses: * http://www.opensource.org/licenses/mit-license.php * * @name tablePagination * @...
JavaScript
var QueryData = function (url, cmd) { this.Data["AjaxRequest"] = new Object(); this.Data["AjaxRequest"]["URL"] = url; this.Data["AjaxRequest"]["Command"] = cmd; this.URL = url; this.Command = cmd; } QueryData.prototype = { URL: "", Command: "", Data: new Object(), SetQuer...
JavaScript
$(document).ready(function () { $('#tbl_order_list').tablePagination(); $(".datepicker").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" }); }); function editOrder(obj) { var currTr = $(obj).closest("tr"); var data = new QueryData("Us...
JavaScript
 $(document).ready(function () { $('#tbl_user_list').tablePagination(); }); function editUser(obj) { var currTr = $(obj).closest("tr"); var currTbody = $(currTr).closest("tbody"); $(".editShow", currTbody).hide(); $(".editHide", currTbody).show(); $(".editShow", currTr).show();...
JavaScript
/* * Copyright (c) 2008 Greg Weber greg at gregweber.info * Dual licensed under the MIT and GPL licenses * * jquery plugin * make an html table editable by the user * user clicks on a cell, edits the value, * then presses enter or clicks on any cell to save the new value * pressing escape returns...
JavaScript
/*! * jQuery blockUI plugin * Version 2.59.0-2013.04.05 * @requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licens...
JavaScript
/*! * jQuery contextMenu - Plugin for simple contextMenu handling * * Version: 1.6.5 * * Authors: Rodney Rehm, Addy Osmani (patches for FF) * Web: http://medialize.github.com/jQuery-contextMenu/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://opensource.org/...
JavaScript
/*! http://mths.be/placeholder v2.0.7 by @mathias */ ;(function(window, document, $) { // Opera Mini v7 doesn’t support placeholder although its DOM seems to indicate so var isOperaMini = Object.prototype.toString.call(window.operamini) == '[object OperaMini]'; var isInputSupported = 'placeholder' in document....
JavaScript
/* author: istockphp.com */ jQuery(function($) { $("a.topopup").click(function() { loading(); // loading setTimeout(function(){ // then show popup, deley in .5 second loadPopup(); // function show popup }, 500); // .5 second return false; }); /* event for close the popup */ $("div...
JavaScript
var definedemotions; var emoticons, codesMap = {}, primaryCodesMap = {}, regexp, metachars = /[[\]{}()*+?.\\|^$\-,&#\s]/g, entityMap; entityMap = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;', '/': '&#x2F;' }; function escape(string) { return emr...
JavaScript
/* http://keith-wood.name/datepick.html Date picker for jQuery v4.1.0. Written by Keith Wood (kbwood{at}iinet.com.au) February 2010. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. ...
JavaScript
var globalLightPopups = new Array("stupdtsec"); var currentOpenPopup = ""; //Supportive function to open lightbox enabled div function openLightbox(divLight, divFade, divLightSuffix) { window.scrollTo(0, 0); if (divLightSuffix.toString().length > 0) { if (document.getElementById(divLight + "_" + d...
JavaScript
function checkPasswordComplexity(pwd) { var letter = /[a-zA-Z]/; var number = /[0-9]/; var valid = number.test(pwd) && letter.test(pwd); //match a letter _and_ a number return valid; } function get_browser(){ var N=navigator.appName, ua=navigator.userAgent, tem; var M=ua.match(/(o...
JavaScript
//<![CDATA[ var emailpattern =/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; function trim (myString) { return myString.replace(/^\s+|\s+$/g, ""); } function change_order(type,orderby) { if(orderby=="asc") { orderby="desc"; } else { orderby="asc"; } document.getElemen...
JavaScript
/*=================================================================================================================== * @name: bPopup * @type: jQuery * @author: (c) Bjoern Klinggaard - @bklinggaard * @demo: http://dinbror.dk/bpopup * @version: 0.9.4 * @requires jQuery 1.4.3 *=======================...
JavaScript
(function($, exports, window, name) { if (!exports) { exports = {}; if ($) { $[name] = exports; } else { window[name] = exports; } } var emoticons, codesMap = {}, primaryCodesMap = {}, regexp, metachars = /[[\]{}()*+?.\\|^$\-,&#\s]/g, entityMap; entityMap = { ...
JavaScript