1/*----------------------------------------------------------------------------------- 2 3 Theme Name: Birmingham Shopping District 4 Theme URI: http://www.enjoybirmingham.com/ 5 Description: Custom website design for Birmingham Shopping District 6 Author: Designed by Samir Alley & HTML/CSS by Tom Gooden | [email protected] 7 Author URI: http://www.revize.com/ 8 9 Version: 1.2 / June 10,2014 10 - Added Mega Menu 11 12 Version: 1.1 / June 2,2014 13 - Added twitter feed 14 15 Version: 1 / JAN 9,2014 16 17 Table of content 18 #Mega Menu 19 #Responsive Nav 20 #Flexslider 21 #Responsive Tables 22 #Twitter Feed 23 24/* ----------------------------------------- 25 26#Responsive Tables 27 28-----------------------------------------*/ 29$( "table" ).wrap( "<div id='dataTable' class='table-responsive'></div>" ); 30 31//--------------------DCO 10-14-2014--------------------\\ 32// The plugin function for adding a new filtering routine 33if (document.getElementById('dateRange') != null) 34{ 35 var dataTableWrap = document.getElementById('dataTable') 36 $.fn.dataTableExt.afnFiltering.push( 37 function(oSettings, aData, iDataIndex) 38 { 39 var dateStart = parseDateValue($("#dateStart").val()); 40 var dateEnd = parseDateValue($("#dateEnd").val()); 41 // aData represents the table structure as an array of columns, so the script access the date value 42 // in the first column of the table via aData[0] 43 var evalDate= parseDateValue(aData[5]); 44 45 if (evalDate >= dateStart && evalDate <= dateEnd) { 46 return true; 47 } 48 else { 49 return false; 50 } 51 } 52 ); 53 54 // Function for converting a mm/dd/yyyy date value into a numeric string for comparison (example 08/12/2010 becomes 20100812 55 function parseDateValue(rawDate) { 56 var dateArray= rawDate.split("/"); 57 var parsedDate= dateArray[2] + dateArray[0] + dateArray[1]; 58 return parsedDate; 59 } 60 61 $(function() { 62 // Implements the dataTables plugin on the HTML table 63 var $dTable= $("table.table").dataTable(); 64 65 // The dataTables plugin creates the filtering and pagination controls for the table dynamically, so these 66 // lines will clone the date range controls currently hidden in the baseDateControl div and append them to 67 // the feedbackTable_filter block created by dataTables 68 $dateControls= $("#baseDateControl").children("div").clone(); 69 $("#feedbackTable_filter").prepend($dateControls); 70 71 // Create event listeners that will filter the table whenever the user types in either date range box or 72 // changes the value of either box using the Datepicker pop-up calendar 73 $("#dateStart").keyup ( function() { $dTable.fnDraw(); } ); 74 $("#dateStart").change( function() { $dTable.fnDraw(); } ); 75 $("#dateEnd").keyup ( function() { $dTable.fnDraw(); } ); 76 $("#dateEnd").change( function() { $dTable.fnDraw(); } ); 77 }); 78} 79//--------------------DCO 10-14-2014--------------------//
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.