code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Created by IR on 12/24/2014. */ jQuery.deparam = function (querystring) { querystring = querystring.substring(querystring.indexOf('?')+1).split('&'); var params = {}, pair, d = decodeURIComponent, i; for (i = querystring.length; i > 0;) { pair = querystring[--i].split('='); ...
JavaScript
//source : https://ga-dev-tools.appspot.com/embed-api/ (function(){ var panels = [ { html : '<div class="alert"><div id="embed-api-auth-container" ></div></div><div id="view-selector-container"></div>' ,id : 0 ,cls : 'col-md-2' ,title:'Config' } , { ...
JavaScript
$(function(){ $.getScript("http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js", function(data, textStatus, jqxhr) { if ( ! window._sql_editor){ window._sql_editor = ace.edit("sql_editor"); window._sql_editor.getSession().setMode("ace/mode/sql"); } }); ...
JavaScript
(function(ui){ var doc_leave_timer = false; function dragEnter(e) { clearTimeout(doc_leave_timer); e.preventDefault(); opts.dragEnter.call(this, e); } function dragOver(e) { clearTimeout(doc_leave_timer); e.preventDefault(); opts.docOver.call(this, e); opts.dragOver...
JavaScript
// to do lang (function(ui){ ui.docLoad(function(){ $("#basecontrol").after('<hr /><a href="?backup=1" target="_blank" class="btn-turquise" style="display:block;margin:10px;"> <i class="icon-archive" ></i> Sauvgarde' +'</a>' ) ; }) }(UI));
JavaScript
(function(ui){ ui.sql_exec = function(sql){ $.ajax('?set_sql=1&sql='+sql,{ context:$(this).closest(".context") ,success: function(o){ if (o.error){ $('.LAY-message',this).html('<div>'+o.error+'</div>'); }else { $('.LAY-message',this).html('<div>'+o.sql+'</div>'); if (o....
JavaScript
(function(ui){ ui.filebrowser = '.filebrowser_workspace' ; ui.current_iframe = null ; ui.filebrowser_upload_settings = {}; ui.filebrowser_current_path = ''; ui.browseFiles_initialize = false ; ui.docLoad(function(){ //CREATE var BTN = '<span class="btn-file btn-green"><input type="file" name...
JavaScript
(function(ui){ ui.handleSortable = function(e){ if (e.type =='keypress' && e.keyCode == 13 || e.type == 'focusout') { e.preventDefault(); data = { val : $(this).val() ,fld : $(this).data('name') ,tbl : $(this).closest(".context").data('contexttbl') ,id :...
JavaScript
(function(ui){ //Override : UI.file_upload_shared_settings.maxfiles = 20 ; /* WIll be activted by : ->_File('path','Fichier',array('extends'=>' multiple ')) */ UI.file_upload_shared_settings.uploadFinished = function(i,ofile,res){ // c('uploadFinish',this,file); f = thi...
JavaScript
(function(ui){ ui.inputValidation = function(){ this._link = { pattern :/([-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)|^$/gi ,fix:function(v){ return $.trim(v); } ,msg: UI.lang.UNVALID_URL } this._url = { pattern : /(^[-a-z0-9\.]+$)|^$/ ,fix:function...
JavaScript
(function(ui){ ui.lang = { CONFIRM_ITEM_SUPPRESSION : 'Etes-vous sur de vouloir supprimer l\'élément ?' ,CONFIRM_ITEM_DUPPLICATION : 'Etes-vous sur de vouloir duppliquer l\'élément ?' ,POST_BACK_MODIFIED :' a été modifié avec succès' ,POST_BACK_DELETED :' a été supprimé avec succès' ,POST_...
JavaScript
(function(ui){ ui.lang = { CONFIRM_ITEM_SUPPRESSION : 'אתה בטוח שאתה רוצה למחוק?' ,CONFIRM_ITEM_DUPPLICATION : 'אתה בטוח שאתה רוצה להעתיק ?' ,POST_BACK_MODIFIED :' שונה בהצלחה' ,POST_BACK_DELETED :' נמחק בהצלחה' ,POST_BACK_ADDED :' נשמר בהצלחה' ,POST_BACK_DUPLICATED :' הועתק בהצלחה...
JavaScript
/* mColorPicker Version: 1.0 r34 Copyright (c) 2010 Meta100 LLC. http://www.meta100.com/ Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php */ // After this script loads set: // $.fn.mColorPicker.init.elm_replace = '.myclass' // to have this script apply to input.myclass, // ...
JavaScript
/* html5slider - a JS implementation of <input type=range> for Firefox 16 and up https://github.com/fryn/html5slider Copyright (c) 2010-2012 Frank Yan, <http://frankyan.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
JavaScript
/* html5number - a JS implementation of <input type=number> for Firefox 16 and up BASED ON : html5slider - a JS implementation of <input type=range> for Firefox 16 and up https://github.com/fryn/html5slider */ //var c = console.log ; (function() { var MutationObserver = window.MutationObserver || ...
JavaScript
(function(ui){ ui.file_upload_shared_settings = { maxfiles: 1 ,maxfilesize:1000 ,queuefiles:0 ,refresh:300 ,progressUpdated:function(index,file,prec) { f = this.droparea.find("."+file.name.replace(/[^a-zA-Z0-9]+/g,'-')); f.find('progress').attr({value: prec,max:100});...
JavaScript
if (window.console){ c = console.log ; } // ajax submit by me ;(function($){ $.fn.ajaxSubmit = function(o){ return this.submit(function(response){ if (o.validation && o.validation instanceof Function ) { if (! o.validation(this)){ return false; } } var f = $(this) var data = o....
JavaScript
var UI = { version:1.1 ,log:function(x){ if (window.console && window.console.log) console.log(x) ; } ,docLoad : function(func){ UI._doc_load.push(func) ; } ,_doc_load :[] ,formLoad:function(func){ UI._form_load.push(func) ; },_form_load :[] ,formReady:function(form){ for( var i = 0 ; i< UI._form_load.le...
JavaScript
/*global jQuery:false, alert:false */ /* * Default text - jQuery plugin for html5 dragging files from desktop to browser * * Author: Weixi Yen * * Email: [Firstname][Lastname]@gmail.com * * Copyright (c) 2010 Resopollution * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license...
JavaScript
(function(ui){ ui.formSubmit = { serializeForm:function(f){ var data = $(f).serializeArray() ; $(f).find('.tab:eq(0) input:checkbox:not(:checked)').each(function() { data.push({'name':$(this).attr('name'),'value':0}) }); return data ; } ,validation:fun...
JavaScript
/* * jQuery RTE plugin 0.5.1 - create a rich text form for Mozilla, Opera, Safari and Internet Explorer * * Copyright (c) 2009 Batiste Bieler * Distributed under the GPL Licenses. * Distributed under the MIT License. */ // define the rte light plugin (function($) { if(typeof $.fn.rte === "undefined") { ...
JavaScript
(function(ui){ ui.parseAjaxForm = function (rs){ return rs.substring(rs.indexOf("<!--AJAX_FORM-->") ,rs.indexOf("<!--/AJAX_FORM-->"))+"<!--/AJAX_FORM-->" ; } ui.parseAjaxList = function (rs){ return rs.substring(rs.indexOf("<!--AJAX_LIST-->") ,rs.indexOf("<!--/AJAX_LIST-->"))+"<!--/AJAX_LIST-->" ; } u...
JavaScript
(function(ui){ ui.Validator = function(){ this.check = function(elm){ var type = elm.data('type'); var require = elm.data('require'); var limit = elm.data('limit'); if(require){ if (! $.trim(elm.val())){ this.show(elm, UI.lang.VALIDATION_DATA_REQUIRED) ; return false; ...
JavaScript
;(function($) { var default_opts = { docEnter: empty, docOver: empty, docLeave: empty, docDrop: empty } ,doc_leave_timer, stop_loop = false $.fn.dragEvent = function(options) { if ( ! this.is(document)) alert('should applay to document'); var opts = $.e...
JavaScript
/* http://jdpicker.paulds.fr jdPicker 1.0 Requires jQuery version: >= 1.2.6 2010 - ? -- Paul Da Silva, AMJ Groupe Copyright (c) 2007-2008 Jonathan Leighton & Torchbox Ltd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
JavaScript
(function(ui){ ui.docLoad(function(){ // Paging $(document).on('change',".form-filter select",function(){ ui.getFilterPagingList.call($(this).closest('.context'), 0); }) $(document).on('keyup',".form-filter input",function(){ var that = this ; if (window.timeout_filter) clearTimeou...
JavaScript
tinymce.addI18n('fr_FR',{ "Cut": "Couper", "Heading 5": "En-t\u00eate 5", "Header 2": "Titre 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Votre navigateur ne supporte pas la copie directe. Merci d'utiliser les touches Ctrl+X\/C\/V.", "Headi...
JavaScript
tinymce.addI18n('he_IL',{ "Cut": "\u05d2\u05d6\u05d5\u05e8", "Heading 5": "\u05db\u05d5\u05ea\u05e8\u05d5\u05ea 5", "Header 2": "\u05db\u05d5\u05ea\u05e8\u05ea 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u05d4\u05d3\u05e4\u05d3\u05e4\u05d...
JavaScript
/** * plugin.js * * Copyright, Alberto Peripolli * Released under Creative Commons Attribution-NonCommercial 3.0 Unported License. * * Contributing: https://github.com/trippo/ResponsiveFilemanager */ tinymce.PluginManager.add('responsivefilemanager', function(editor) { function responsivefilemanager_onMessage...
JavaScript
(function() { tinymce.create('tinymce.plugins.ResponsiveFileManager', { init : function(editor, url) { function responsivefilemanager_onMessage(event){ if(editor.settings.external_filemanager_path.toLowerCase().indexOf(event.origin.toLowerCase()) === 0){ if(event.data.sender === 'responsivefileman...
JavaScript
/** * plugin.js * * Copyright, Alberto Peripolli * Released under Creative Commons Attribution-NonCommercial 3.0 Unported License. * * Contributing: https://github.com/trippo/ResponsiveFilemanager */ tinymce.PluginManager.add('filemanager', function(editor) { tinymce.activeEditor.settings.file_browser_callbac...
JavaScript
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
JavaScript
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* Copyright 2012 Mozilla Foundation * * 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....
JavaScript
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* Copyright 2012 Mozilla Foundation * * 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....
JavaScript
var /**@const{!string}*/pdfjs_version = "d45d7bc";
JavaScript
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* Copyright 2012 Mozilla Foundation * * 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....
JavaScript
/** * @license * Copyright (C) 2012 KO GmbH <copyright@kogmbh.com> * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License * (GNU AGPL) as published by the Free Software Foundation, either version 3 of ...
JavaScript
/** * Copyright (C) 2012 KO GmbH <copyright@kogmbh.com> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 of * ...
JavaScript
/** * @license * Copyright (C) 2013-2014 KO GmbH <copyright@kogmbh.com> * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License * (GNU AGPL) as published by the Free Software Foundation, either version ...
JavaScript
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* Copyright 2012 Mozilla Foundation * * 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....
JavaScript
var version = "9.8.1"; var active_contextmenu = false; var copy_count=0; window.w_console = 0 ; $(document).ready(function(){ // Right click menu if (active_contextmenu) { $.contextMenu({ selector:'figure:not(.back-directory), .list-view2 figure:not(.back-directory)', autoHide:true, bui...
JavaScript
/*! * jQuery Scrollstop Plugin v1.1.0 * https://github.com/ssorallen/jquery-scrollstop */ (function($) { // $.event.dispatch was undocumented and was deprecated in jQuery 1.7[1]. It // was replaced by $.event.handle in jQuery 1.9. // // Use the first of the available functions to support jQuery <1.8....
JavaScript
/*! * jQuery contextMenu - Plugin for simple contextMenu handling * * Version: git-master * * 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...
JavaScript
/* * Lazy Load - jQuery plugin for lazy loading images * * Copyright (c) 2007-2013 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/lazyload * * Version: 1.9.3 * */ (function($, window, documen...
JavaScript
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.1.6 */ (function(window, undefined) { "use strict";...
JavaScript
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.1.6 */ (function(window, undefined) { "use strict";...
JavaScript
/* * jPlayerInspector Plugin for jPlayer Plugin for jQuery JavaScript Library * http://www.jplayer.org * * Copyright (c) 2009 - 2013 Happyworm Ltd * Dual licensed under the MIT and GPL licenses. * - http://www.opensource.org/licenses/mit-license.php * - http://www.gnu.org/copyleft/gpl.html * * Autho...
JavaScript
/* * jPlayer Player Plugin for Popcorn JavaScript Library * http://www.jplayer.org * * Copyright (c) 2013 Happyworm Ltd * Licensed under the MIT license. * http://opensource.org/licenses/MIT * * Author: Mark J Panaghiston * Version: 1.1.1 * Date: 5th June 2013 * * For Popcorn Version: 1.3 * Fo...
JavaScript
/* lazyload.js (c) Lorenzo Giuliani * MIT License (http://www.opensource.org/licenses/mit-license.html) * * expects a list of: * `<img src="blank.gif" data-original="my_image.png" width="600" height="400" class="lazy-loaded">` */ !function(window){ var $q = function(q, res){ if (document.qu...
JavaScript
/*The MIT License (MIT) Copyright (c) 2014 https://github.com/kayalshri/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
JavaScript
/** * jsPDF * (c) 2009 James Hall * * Some parts based on FPDF. */ var jsPDF = function(){ // Private properties var version = '20090504'; var buffer = ''; var pdfVersion = '1.3'; // PDF Version var defaultPageFormat = 'a4'; var pageFormats = { // Size in mm of various paper formats 'a3': [841.89, 11...
JavaScript
/** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; va...
JavaScript
function sprintf( ) { // Return a formatted string // // version: 903.3016 // discuss at: http://phpjs.org/functions/sprintf // + original by: Ash Searle (http://hexmen.com/blog/) // + namespaced by: Michael White (http://getsprink.com) // + tweaked by: Jack // + improved by:...
JavaScript
/* html2canvas 0.4.1 <http://html2canvas.hertzen.com> Copyright (c) 2013 Niklas von Hertzen Released under MIT License */ (function(window, document, undefined){ //"use strict"; var _html2canvas = {}, previousElement, computedCSS, html2canvas; _html2canvas.Util = {}; _html2canvas.Util.log = function(a) { ...
JavaScript
/*jslint adsafe: false, bitwise: true, browser: true, cap: false, css: false, debug: false, devel: true, eqeqeq: true, es5: false, evil: false, forin: false, fragment: false, immed: true, laxbreak: false, newcap: true, nomen: false, on: false, onevar: true, passfail: false, plusplus: true, regexp: false, rhino:...
JavaScript
/** * Created by IR on 12/24/2014. */ jQuery.deparam = function (querystring) { querystring = querystring.substring(querystring.indexOf('?')+1).split('&'); var params = {}, pair, d = decodeURIComponent, i; for (i = querystring.length; i > 0;) { pair = querystring[--i].split('='); ...
JavaScript
//source : https://ga-dev-tools.appspot.com/embed-api/ (function(){ return ; var panels = [ { html : '<div class="alert"><div id="embed-api-auth-container" ></div></div><div id="view-selector-container"></div>' ,id : 0 ,cls : 'col-md-2' ,title:'Config' } ...
JavaScript
$(function(){ $.getScript("http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js", function(data, textStatus, jqxhr) { if ( ! window._sql_editor){ window._sql_editor = ace.edit("sql_editor"); window._sql_editor.getSession().setMode("ace/mode/sql"); } }); ...
JavaScript
!function($) { //$.removeAllStorages() ; 'use strict'; $.extend($.fn.bootstrapTable.defaults, { state: true, onStateInit: function () {return false;}, onStateSave: function (field, row, oldValue, $el) {return false;} }); $.extend($.fn.bootstrapTable.Construc...
JavaScript
/** * Created by IR on 2/4/2015. */ $(document).ready(function(){ $('.table').on('editable-save.bs.table',function(e,field,row,old_value,el_caller){ //console.log(e,field,row,value,el_caller) ; $.ajax('?sorteditable_exec=1&tbl='+ row._tbl +"&id="+row.id +'&fld='+field+'&value='+row[field] ...
JavaScript
var ph = function(){ } ph.prototype.init = function(){ that = this; that.handleHash() $(document).keyup(function(e){ var elid = $(document.activeElement).is("input:focus, textarea:focus"); if(e.keyCode === 8 && !elid){ that.handleHash() }; }) setInterval(function(){ that.handl...
JavaScript
/* * AutoSuggest * Copyright 2009-2010 Drew Wilson * www.drewwilson.com * code.drewwilson.com/entry/autosuggest-jquery-plugin * * Version 1.4 - Updated: Mar. 23, 2010 * * This Plug-In will auto-complete or auto-suggest completed search queries * for you as you type. You can add multiple selection...
JavaScript
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r6 // 2011.02.26 // jQue...
JavaScript
/** * jQuery bxSlider v3.0 * http://bxslider.com * * Copyright 2011, Steven Wanderski * http://bxcreative.com * * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * */ (function($){ $.fn.bxSlider = function(options){ var defaults...
JavaScript
// Camera slideshow v1.3.4 - a jQuery slideshow with many effects, transitions, easy to customize, using canvas and mobile ready, based on jQuery 1.4+ // Copyright (c) 2012 by Manuel Masia - www.pixedelic.com // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ;(function($){$.fn.cam...
JavaScript
/** * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. * @requires jQuery v1.2 or above * * http://gmarwaha.com/jquery/jcarousellite/ * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/license...
JavaScript
/** * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. * @requires jQuery v1.2 or above * * http://gmarwaha.com/jquery/jcarousellite/ * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org...
JavaScript
/* * jQuery Color Animations v@VERSION * http://jquery.org/ * * Copyright 2011 John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Date: @DATE */ (function( jQuery, undefined ){ var stepHooks = "backgroundColor borderBottomColor borderLeftColor bord...
JavaScript
/*! * jQuery Transit - CSS3 transitions and transformations * Copyright(c) 2011 Rico Sta. Cruz <rico@ricostacruz.com> * MIT Licensed. * * http://ricostacruz.com/jquery.transit * http://github.com/rstacruz/jquery.transit */ (function($) { "use strict"; $.transit = { version: "0.1.3", ...
JavaScript
/** * @author Alexander Farkas * v. 1.22 */ (function($) { if(!document.defaultView || !document.defaultView.getComputedStyle){ // IE6-IE8 var oldCurCSS = $.curCSS; $.curCSS = function(elem, name, force){ if(name === 'background-position'){ name = 'backgroundPosition'; } if(name !== 'backgroundPo...
JavaScript
/** * @author Alexander Farkas * v. 1.02 http://snook.ca/technical/jquery-bg/ http://snook.ca/archives/javascript/jquery-bg-image-animations */ (function($) { $.extend($.fx.step,{ backgroundPosition: function(fx) { if (fx.state === 0 && typeof fx.end == 'string') { var s...
JavaScript
/*! * jQuery Cookie Plugin v1.3 * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ (function ($, document, undefined) { ...
JavaScript
(function ($) { $.fn.swipe = function (options) { var defaults = { threshold: { x: 500, y: 500 }, swipeLeft: function () { log('swiped left') }, swipeRight: function () { log('swiped right...
JavaScript
// // rating Plugin // By Chris Richards // Last Update: 6/21/2011 // Turns a select box into a star rating control. // // // Updated by Dovy Paukstys 21 Sept. 2011 // Fixed the click to clear out stars not working with newer jquery, but may not have ever worked. // Also fixed it so on a new page load it will properly ...
JavaScript
/*! nanoScrollerJS - v0.7 * http://jamesflorentino.github.com/nanoScrollerJS/ * Copyright (c) 2013 James Florentino; Licensed MIT */ (function($, window, document) { "use strict"; var BROWSER_IS_IE7, BROWSER_SCROLLBAR_WIDTH, DOMSCROLL, DOWN, DRAG, KEYDOWN, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEUP, MOUSEWHEEL, ...
JavaScript
/** * jQuery.timers - Timer abstractions for jQuery * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com) * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/). * Date: 2009/02/08 * * @author Blair Mitchelmore * @version 1.1.2 * **/ jQuery.fn.extend({ everyTime: function(interv...
JavaScript
/** http://www.zazar.net/developers/jquery/zweatherfeed/ * Plugin: jquery.zWeatherFeed * * Version: 1.2.1 * (c) Copyright 2011-2013, Zazar Ltd * * Description: jQuery plugin for display of Yahoo! Weather feeds * * History: * 1.2.1 - Handle invalid locations * 1.2.0 - Added forecast data option ...
JavaScript
//tabs by tlissak ;(function($){ $.fn.tabsLite = function() { return this.each(function(){ var rnd = parseInt(Math.random() *1000000000) var _parent = $(this) if (_parent.hasClass("tabsLite")) return ; _parent.addClass("tabsLite").data("tabs_id",rnd) .find('ul:eq(0)').addClass("...
JavaScript
/*global jQuery:false, alert:false */ /* * Default text - jQuery plugin for html5 dragging files from desktop to browser * * Author: Weixi Yen * * Email: [Firstname][Lastname]@gmail.com * * Copyright (c) 2010 Resopollution * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * *...
JavaScript
var Hashtable = function () { function n(t) { var r; if (typeof t == "string") return t; if (typeof t.hashCode == e) return r = t.hashCode(), typeof r == "string" ? r : n(r); if (typeof t.toString == e) return t.toString(); try { return String(t) } catch (i) { return Object.proto...
JavaScript
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * 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: 0.6.5 * */ (function($) { jQuery.fn.extend({ slimScrollHorizontal: funct...
JavaScript
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * 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: 0.5.0 * */ // Define a global variable to track priority scrolling. This can be used if t...
JavaScript
// poup by tlissak ;(function($){ $.box = function(_opt){ var $box,$mask,$popup ,$cont , $form,$close , $buttons ; var opt = (_opt !== undefined) ? $.extend({},$.box.defaults,_opt) :$.extend({},$.box.defaults) ; opt.id = opt.id ? opt.id : parseInt(Math.random() * 1000000000000) ; opt._...
JavaScript
;$(function() { $.fn.ajaxSubmit = function(ret_func) { return this.submit(function(e){ e.preventDefault(); var f = $(this) ; $.ajax({ url:f.attr('action')?f.attr('action'):'#' ,data:f.serialize() ,type:f.attr('method') ,success:function(s){ ret_func ? ret_func(s,f) : alert(s) ; }}) ; ...
JavaScript
/** * jQuery Unveil * A very lightweight jQuery plugin to lazy load images * http://luis-almeida.github.com/unveil * * Licensed under the MIT license. * Copyright 2013 Luís Almeida * https://github.com/luis-almeida */ ;(function($) { $.fn.unveil = function(threshold, callback) { var $w = $(window), ...
JavaScript
// Diapo slideshow v1.0.4 - a jQuery slideshow with many effects, transitions, easy to customize, using canvas and mobile ready, based on jQuery 1.4+ // Copyright (c) 2011 by Manuel Masia - www.pixedelic.com // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ;(function($){$.fn.diap...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
(function ($) { // Monkey patch jQuery 1.3.1+ css() method to support CSS 'transform' // property uniformly across Safari/Chrome/Webkit, Firefox 3.5+, IE 9+, and Opera 11+. // 2009-2011 Zachary Johnson www.zachstronaut.com // Updated 2011.05.04 (May the fourth be with you!) function getTransfor...
JavaScript
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and ...
JavaScript
;(function($) { var default_opts = { docEnter: empty, docOver: empty, docLeave: empty, docDrop: empty } ,doc_leave_timer, stop_loop = false $.fn.dragEvent = function(options) { if ( ! this.is(document)) alert('should applay to document'); var opts = $.e...
JavaScript
//LATERAL SUB-MENU $(document).ready(function(e) { // return; if ($(".lateralNavigation").length) { $(".lateralNavigation li ul").hide(); $(".lateralNavigation li ul li ul").hide(); $(".lateralNavigation li ul").parent().addClass("plus"); $(".lateralNavigation li ul").parent().hoverIntent({ sensi...
JavaScript
/** * BxSlider v4.1 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2012, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ */ ...
JavaScript
/*! /** * Monkey patch jQuery 1.3.1+ to add support for setting or animating CSS * scale and rotation independently. * https://github.com/zachstronaut/jquery-animate-css-rotate-scale * Released under dual MIT/GPL license just like jQuery. * 2009-2012 Zachary Johnson www.zachstronaut.com */ (function ($) { // ...
JavaScript
/** * Copyright 2009 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 agree...
JavaScript
/** * Copyright 2009 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 agree...
JavaScript
/** * Copyright 2009 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 agree...
JavaScript
/** * Copyright 2009 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 agree...
JavaScript
/** * Copyright 2009 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 agree...
JavaScript