code
stringlengths
1
2.08M
language
stringclasses
1 value
// DATA_TEMPLATE: empty_table oTest.fnStart( "fnCreatedRow tests" ); $(document).ready( function () { var tmp = 0; var complete = false; $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php", fnCreatedRow: function () { tmp++; } } )...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sZeroRecords" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.oPaginate" ); /* Note that the paging language information only has relevence in full numbers */ $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "fnDrawCallback" ); /* Fairly boring function compared to the others! */ $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bAutoWidth" ); /* It's actually a little tricky to test this. We can't test absolute numbers because * different browsers and different platforms will render the width of the columns slightly * differently. However, we certainly can test the principle of what should happ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "aoColumns.bUseRendered" ); /* bUseRendered is used to alter sorting data, if false then the original data is used for * sorting rather than the rendered data */ $(document).ready( function () { /* Check the default */ var mTmp = 0; var oTable = $('#example').dataTa...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bLengthChange" ); $(document).ready( function () { /* Check the default */ $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); oTest.fnWaitTest( "Length div exists by default", nul...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "fnCreatedCell tests" ); $(document).ready( function () { var tmp = 0; var complete = false; $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php", "aoColumnDefs": [ { fnCreatedCell: functio...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "aoColumns.bSortable" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); o...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "Destroy with hidden columns" ); $(document).ready( function () { var mTest; $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php", "aoColumnDefs": [ { "bSearchable": false, "bVisible": f...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bInfo" ); $(document).ready( function () { /* Check the default */ $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); oTest.fnWaitTest( "Info div exists by default", null, funct...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bSortClasses" ); $(document).ready( function () { /* Check the default */ $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); oTest.fnWaitTest( "Sorting classes are applied by defaul...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bInfiniteScroll" ); $(document).ready( function () { var oTable = $('#example').dataTable( { "bScrollInfinite": true, "sScrollY": "200px", "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); oTest.fnWaitTest(...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "aoColumns.bSeachable" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "aoColumns.bVisible" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); oT...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bProcessing" ); /* It's actually a bit hard to set this one due to the fact that it will only be shown * when DataTables is doing some kind of processing. The server-side processing is a bit * better to test this than here - so we just the interal functions to enable it ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sInfoPostFix" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "asStripeClasses" ); $(document).ready( function () { /* Check the default */ $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); oTest.fnWaitTest( "Default row striping is applied", ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "bServerSide" ); /* All the other scripts blast the ssp processing */ $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" }...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "sDom" ); /* This is going to be brutal on the browser! There is a lot that can be tested here... */ $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/sc...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "fnHeaderCallback" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); var mP...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "sPaginationType" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); oTest...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sInfoEmpty" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sLengthMenu" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
JavaScript
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sInfo" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); oTest...
JavaScript
// DATA_TEMPLATE: empty_table /* * NOTE: There are some differences in this zero config script for server-side * processing compared to the other data sources. The main reason for this is the * difference in how the server-side processing does it's filtering. Also the * sorting state is always reset on each draw. ...
JavaScript
/** * Initialisation options that can be given to DataTables at initialisation * time. * @namespace */ DataTable.defaults = { /** * An array of data to use for the table, passed in at initialisation which * will be used in preference to any data which is already in the DOM. This is * particularly useful...
JavaScript
/** * Template object for the way in which DataTables holds information about * each individual row. This is the object format used for the settings * aoData array. * @namespace */ DataTable.models.oRow = { /** * TR element for the row * @type node * @default null */ "nTr": null, /** * Data ob...
JavaScript
/** * DataTables settings object - this holds all the information needed for a * given table, including configuration, data and current application of the * table options. DataTables does not have a single instance for each DataTable * with the settings attached to that instance, but rather instances of the * Da...
JavaScript
/** * DataTables extension options and plug-ins. This namespace acts as a collection "area" * for plug-ins that can be used to extend the default DataTables behaviour - indeed many * of the build in methods use this method to provide their own capabilities (sorting methods * for example). * * Note that this na...
JavaScript
/** * Template object for the column information object in DataTables. This object * is held in the settings aoColumns array and contains all the information that * DataTables needs about each individual column. * * Note that this object is related to {@link DataTable.defaults.columns} * but this one is the ...
JavaScript
/** * Column options that can be given to DataTables at initialisation time. * @namespace */ DataTable.defaults.columns = { /** * Allows a column's sorting to take multiple columns into account when * doing a sort. For example first name / last name columns make sense to * do a multi-column sort over the...
JavaScript
/** * Template object for the way in which DataTables holds information about * search information for the global filter and individual column filters. * @namespace */ DataTable.models.oSearch = { /** * Flag to indicate if the filtering should be case insensitive or not * @type boolean * @default true ...
JavaScript
/* * This is really a good bit rubbish this method of exposing the internal methods * publicly... - To be fixed in 2.0 using methods on the prototype */ /** * Create a wrapper function for exporting an internal functions to an external API. * @param {string} sFunc API function name * @returns {function} wrap...
JavaScript
/** * Provide a common method for plug-ins to check the version of DataTables being used, in order * to ensure compatibility. * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the * formats "X" and "X.Y" are also acceptable. * @returns {boolean} true if this version of...
JavaScript
/** * Perform a jQuery selector action on the table's TR elements (from the tbody) and * return the resulting jQuery object. * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on * @param {object} [oOpts] Optional parameters for modifying the rows to be included * @param {string} ...
JavaScript
/** * @summary DataTables * @description Paginate, search and sort HTML tables * @version 1.9.4 * @file jquery.dataTables.js * @author Allan Jardine (www.sprymedia.co.uk) * @contact www.sprymedia.co.uk/contact * * @copyright Copyright 2008-2012 Allan Jardine, all rights reserved. * * T...
JavaScript
/** * Convert a CSS unit width to pixels (e.g. 2em) * @param {string} sWidth width to be converted * @param {node} nParent parent to get the with for (required for relative widths) - optional * @returns {int} iWidth width in pixels * @memberof DataTable#oApi */ function _fnConvertToWidth ( sWidth, nParent ) {...
JavaScript
/** * Generate the node required for filtering text * @returns {node} Filter control element * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnFeatureHtmlFilter ( oSettings ) { var oPreviousSearch = oSettings.oPreviousSearch; var sSearchStr = oSettings.oLangu...
JavaScript
/** * Update the table using an Ajax call * @param {object} oSettings dataTables settings object * @returns {boolean} Block the table drawing or not * @memberof DataTable#oApi */ function _fnAjaxUpdate( oSettings ) { if ( oSettings.bAjaxDataGet ) { oSettings.iDraw++; _fnProcessingDisplay( oSettings, tru...
JavaScript
/** * Add any control elements for the table - specifically scrolling * @param {object} oSettings dataTables settings object * @returns {node} Node to add to the DOM * @memberof DataTable#oApi */ function _fnFeatureHtmlTable ( oSettings ) { /* Check if scrolling is enabled or not - if not then leave the DOM un...
JavaScript
/** * Draw the table for the first time, adding all required features * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnInitialise ( oSettings ) { var i, iLen, iAjaxStart=oSettings.iInitDisplayStart; /* Ensure that the table data is fully initialised */ if ( o...
JavaScript
/** * Return the settings object for a particular table * @param {node} nTable table we are using as a dataTable * @returns {object} Settings object - or null if not found * @memberof DataTable#oApi */ function _fnSettingsFromNode ( nTable ) { for ( var i=0 ; i<DataTable.settings.length ; i++ ) { if ( Data...
JavaScript
var i=0, iLen, j, jLen, k, kLen; var sId = this.getAttribute( 'id' ); var bInitHandedOff = false; var bUsePassedData = false; /* Sanity check */ if ( this.nodeName.toLowerCase() != 'table' ) { _fnLog( null, 0, "Attempted to initialise DataTables on a node which is not a "+ "table: "+this.nodeName ); return; } /*...
JavaScript
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Note that most of the paging logic is done in * DataTable.ext.oPagination */ /** * Generate the node required for default pagination * @param {object} oSettings dataTables settings object * @returns {node} Paginat...
JavaScript
/** * Create a new TR element (and it's TD children) for a row * @param {object} oSettings dataTables settings object * @param {int} iRow Row to consider * @memberof DataTable#oApi */ function _fnCreateTr ( oSettings, iRow ) { var oData = oSettings.aoData[iRow]; var nTd; if ( oData.nTr === null ) { oData...
JavaScript
/** * Add a column to the list used for the table with default values * @param {object} oSettings dataTables settings object * @param {node} nTh The th element for this column * @memberof DataTable#oApi */ function _fnAddColumn( oSettings, nTh ) { var oDefaults = DataTable.defaults.columns; var iCol = oSett...
JavaScript
/** * Change the order of the table * @param {object} oSettings dataTables settings object * @param {bool} bApplyClasses optional - should we apply classes or not * @memberof DataTable#oApi */ function _fnSort ( oSettings, bApplyClasses ) { var i, iLen, j, jLen, k, kLen, sDataType, nTh, aaSort = [], a...
JavaScript
/** * Save the state of a table in a cookie such that the page can be reloaded * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnSaveState ( oSettings ) { if ( !oSettings.oFeatures.bStateSave || oSettings.bDestroying ) { return; } /* Store the interesting va...
JavaScript
/** * Generate the node required for the info display * @param {object} oSettings dataTables settings object * @returns {node} Information element * @memberof DataTable#oApi */ function _fnFeatureHtmlInfo ( oSettings ) { var nInfo = document.createElement( 'div' ); nInfo.className = oSettings.oClasses.sInfo;...
JavaScript
/** * Add a data array to the table, creating DOM node etc. This is the parallel to * _fnGatherData, but for adding rows from a Javascript source, rather than a * DOM source. * @param {object} oSettings dataTables settings object * @param {array} aData data array to be added * @returns {int} >=0 if successful...
JavaScript
/** * Generate the node required for user display length changing * @param {object} oSettings dataTables settings object * @returns {node} Display length feature node * @memberof DataTable#oApi */ function _fnFeatureHtmlLength ( oSettings ) { if ( oSettings.oScroll.bInfinite ) { return null; } /* This...
JavaScript
/** * Generate the node required for the processing node * @param {object} oSettings dataTables settings object * @returns {node} Processing element * @memberof DataTable#oApi */ function _fnFeatureHtmlProcessing ( oSettings ) { var nProcessing = document.createElement( 'div' ); if ( !oSettings.aanFeature...
JavaScript
$.extend( DataTable.ext.oSort, { /* * text sorting */ "string-pre": function ( a ) { if ( typeof a != 'string' ) { a = (a !== null && a.toString) ? a.toString() : ''; } return a.toLowerCase(); }, "string-asc": function ( x, y ) { return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }, "string-desc": fu...
JavaScript
$.extend( DataTable.ext.aTypes, [ /* * Function: - * Purpose: Check to see if a string is numeric * Returns: string:'numeric' or null * Inputs: mixed:sText - string to check */ function ( sData ) { /* Allow zero length strings as a number */ if ( typeof sData === 'number' ) { return 'numeric...
JavaScript
/* * Variable: oPagination * Purpose: * Scope: jQuery.fn.dataTableExt */ $.extend( DataTable.ext.oPagination, { /* * Variable: two_button * Purpose: Standard two button (forward/back) pagination * Scope: jQuery.fn.dataTableExt.oPagination */ "two_button": { /* * Function: oPagination.two_but...
JavaScript
$.extend( DataTable.ext.oStdClasses, { "sTable": "dataTable", /* Two buttons buttons */ "sPagePrevEnabled": "paginate_enabled_previous", "sPagePrevDisabled": "paginate_disabled_previous", "sPageNextEnabled": "paginate_enabled_next", "sPageNextDisabled": "paginate_disabled_next", "sPageJUINext": "", "sPageJUIP...
JavaScript
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; Syntax...
JavaScript
/* * File: ColReorder.js * Version: 1.0.8 * CVS: $Id$ * Description: Allow columns to be reordered in a DataTable * Author: Allan Jardine (www.sprymedia.co.uk) * Created: Wed Sep 15 18:23:29 BST 2010 * Modified: $Date$ by $Author$ * Language: Javascript * License: GPL v2 o...
JavaScript
/* * File: KeyTable.js * Version: 1.1.7 * CVS: $Idj$ * Description: Keyboard navigation for HTML tables * Author: Allan Jardine (www.sprymedia.co.uk) * Created: Fri Mar 13 21:24:02 GMT 2009 * Modified: $Date$ by $Author$ * Language: Javascript * License: GPL v2 or BSD 3 po...
JavaScript
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; Syntax...
JavaScript
/** * @summary FixedColumns * @description Freeze columns in place on a scrolling DataTable * @file FixedColumns.js * @version 2.0.3 * @author Allan Jardine (www.sprymedia.co.uk) * @license GPL v2 or BSD 3 point style * @contact www.sprymedia.co.uk/contact * * @copyright Copyright 2...
JavaScript
/* * File: TableTools.js * Version: 2.1.4 * Description: Tools and buttons for DataTables * Author: Allan Jardine (www.sprymedia.co.uk) * Language: Javascript * License: GPL v2 or BSD 3 point style * Project: DataTables * * Copyright 2009-2012 Allan Jardine, all rights reserved. * ...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard_TableTools = { version: "1.0.4-TableTools2", clients: {}, // registered upload clients on page, indexed by id moviePath: '', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function ...
JavaScript
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; Syntax...
JavaScript
/* * File: ColVis.js * Version: 1.0.8 * CVS: $Id$ * Description: Controls for column visiblity in DataTables * Author: Allan Jardine (www.sprymedia.co.uk) * Created: Wed Sep 15 18:23:29 BST 2010 * Modified: $Date$ by $Author$ * Language: Javascript * License: GPL v2 or BSD...
JavaScript
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; Syntax...
JavaScript
/** * @summary Scroller * @description Virtual rendering for DataTables * @file Scroller.js * @version 1.1.0 * @author Allan Jardine (www.sprymedia.co.uk) * @license GPL v2 or BSD 3 point style * @contact www.sprymedia.co.uk/contact * * @copyright Copyright 2011-2012 Allan Jardine, ...
JavaScript
(function() { var showingNav = true; $(document).ready( function () { var jqNav = $('div.fw_nav'); jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2); var n = $('div.nav_blocker')[0]; n.style.height = $(jqNav).outerHeight()+"px"; n.style.width = ($(jqNav).outerWidth()+20)+"px"; Syntax...
JavaScript
/* * File: AutoFill.js * Version: 1.1.2 * CVS: $Id$ * Description: AutoFill for DataTables * Author: Allan Jardine (www.sprymedia.co.uk) * Created: Mon 6 Sep 2010 16:54:41 BST * Modified: $Date$ by $Author$ * Language: Javascript * License: GPL v2 or BSD 3 point * Projec...
JavaScript
/* * File: FixedHeader.js * Version: 2.0.6 * Description: "Fix" a header at the top of the table, so it scrolls with the table * Author: Allan Jardine (www.sprymedia.co.uk) * Created: Wed 16 Sep 2009 19:46:30 BST * Language: Javascript * License: GPL v2 or BSD 3 point style * Project:...
JavaScript
module.exports = function( grunt ) { "use strict"; var // files coreFiles = [ "jquery.ui.core.js", "jquery.ui.widget.js", "jquery.ui.mouse.js", "jquery.ui.draggable.js", "jquery.ui.droppable.js", "jquery.ui.resizable.js", "jquery.ui.selectable.js", "jquery.ui.sortable.js", "jquery.ui.effect.js" ]...
JavaScript
/* ** Anderson Ferminiano ** [email protected] -- feel free to contact me for bugs or new implementations. ** jQuery ScrollPagination ** 28th/March/2011 ** http://andersonferminiano.com/jqueryscrollpagination/ ** You may use this script for free, but keep my credits. ** Thank you. */ (function( $ ){ ...
JavaScript
//slideshow $(function(){ $("#faded").faded({ speed: 5, crossfade: true, autoplay: 6000, autopagination:true, autorestart: true }); }); //slide 2 function mycarousel_initCallback(carousel) { // Disable autoscrolling if the user clicks the prev or next button. carousel.buttonNext.bi...
JavaScript
/* * faded 0.3.1 - jQuery plugin * written by Nathan Searles * http://nathansearles.com/faded/ * * Copyright (c) 2009 Nathan Searles (http://nathansearles.com/) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Built for jQuery library * http://jquery.com *...
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 Plugin JS Example 8.2 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, regexp: true */ /*global $, window, navigator, blueimp ...
JavaScript
/* * jQuery File Upload Plugin Angular JS Example 1.1.2 * 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, regexp: true */ /*global window, angular, nav...
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
$(document).ready(function(e) { $("#sidebar-left ul.list-new-member li").hover( function () { $(this).find(".bg-gray").animate({"bottom": "+=0px", "opacity": "show", height:"120px"}, "slow"); }, function () { $(this).find(".bg-gray").stop(true,true).animate({"bottom": "+=0px", "opacity": "hid...
JavaScript
//Sur fin du chargement du document $(document).ready( function() { // $("option[value*='.']").attr('style','background-color:#dcdcc3'); // // $("option[value*='.']").attr('disabled','disabled'); // Sur click bouton reset recupUrl(); // recupere l'url pour savoir q...
JavaScript
var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var myMap; function codeAddresse(adresseVendeur, adresseUser) { geocoder = new google.maps.Geocoder(); /* Récupération de la valeur de l'adresse saisie */ /* Appel au service de geocodage avec l'adresse en para...
JavaScript
// First Chart Example - Area Line Chart Morris.Area({ // ID of the element in which to draw the chart. element: 'morris-chart-area', // Chart data records -- each entry in this array corresponds to a point on // the chart. data: [ { d: '2012-10-01', visits: 802 }, { d: '2012-10-02', visits: 783 }...
JavaScript
$(function() { $("table").tablesorter({debug: true}); });
JavaScript
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.5b * @requires jQuery v1.2.3 * * Copyright (c) 2007 Christian Bach * Examples and docs at: http://tablesorter.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http:...
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 jQu...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There ar...
JavaScript
/* Flot plugin for rendering pie charts. The plugin assumes the data is coming is as a single data value for each series, and each of those values is a positive value or zero (negative numbers don't make any sense and will cause strange effects). The data values do NOT need to be passed in as percentage values...
JavaScript
$(function() { $( "#datepicker" ).datepicker({ minDate: 1 }); $( "#datepicker" ).datepicker( "option", "dateFormat", 'yy-mm-dd' ); }); function delQuestion(where) { $(where).parents("div:first").remove(); } function addAnswer(where) { var qID = $(where).parent().parent().find(':hidden').va...
JavaScript
$(document).ready(function(){ // hack for backwards compatibility document.createElement('meter'); // create polyfill function makeMeter(meterElement) { // parse values and attributes function attr(attributeName, defaultValue) { return meterElement.getAttribute(attribu...
JavaScript
/* * (c) 2008 Thomas Winningham [email protected] */ function $tuioSimulator() { var thisPtr=this; this.inlet1=new this.inletClass("inlet1",this,"accepts the output of oscreceive"); this.outlet1 = new this.outletClass("outlet1",this,"finger list"); this.outlet2 = new this.outletClass("outlet2",this,"finger coo...
JavaScript
/* * (c) 2008 Thomas Winningham [email protected] */ function $touchdb() { var thisPtr=this; thisPtr.the_database={}; this.inlet1=new this.inletClass("inlet1",this,"accepts finger list from tuio2dcur"); this.inlet2=new this.inletClass("inlet2",this,"accepts coordinate updates from tuio2dcur"); this.outlet1 = n...
JavaScript
/* * (c) 2008 Thomas Winningham [email protected] */ function $touchhistory() { var thisPtr=this; thisPtr.the_database={}; this.inlet1=new this.inletClass("inlet1",this,"touchdb finger add"); this.inlet2=new this.inletClass("inlet2",this,"touchdb finger update"); this.inlet3=new this.inletClass("inlet3",this,...
JavaScript
/* * (c) 2008 Thomas Winningham [email protected] */ function $touchspot(param) { var thisPtr=this; var paramArr=LilyUtils.splitArgs(param); if(!paramArr.length) { LilyDebugWindow.error("The touchspot object needs arguments to be useful. Please specify x1, y1, x2, y2 as the bounding box, ...
JavaScript
/* * (c) 2008 Thomas Winningham [email protected] */ function $touchlibOsc() { var thisPtr=this; this.inlet1=new this.inletClass("inlet1",this,"accepts the output of oscreceive"); this.outlet1 = new this.outletClass("outlet1",this,"finger list"); this.outlet2 = new this.outletClass("outlet2",this,"finger coord...
JavaScript
function show(type) { count = 0; for (var key in methods) { var row = document.getElementById(key); if ((methods[key] & type) != 0) { row.style.display = ''; row.className = (count++ % 2) ? rowColor : altColor; } else row.style.displ...
JavaScript
function show(type) { count = 0; for (var key in methods) { var row = document.getElementById(key); if ((methods[key] & type) != 0) { row.style.display = ''; row.className = (count++ % 2) ? rowColor : altColor; } else row.style.displ...
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
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
JavaScript