1//ORG CHART FUNCTION 2 //hide all tabs first 3$('.tab-content').hide(); 4//show the first tab content 5$('#tab-1').show(); 6 7$('#select-box').change(function () { 8 dropdown = $('#select-box').val(); 9 //first hide all tabs again when a new option is selected 10 $('.tab-content').hide(); 11 //then show the tab content of whatever option value was selected 12 $('#' + "tab-" + dropdown).show(); 13}); 14 15//ADD ACTIVE STATE TO LINKS IN NAVBAR & ON BRANCHES OF GOVERNMENT 16var selector = ".nav-link"; 17 18$(selector).click(function(){ 19 $(selector).removeClass('active'); 20 $(this).addClass('active'); 21}); 22 23var selector = ".set-on"; 24 25$(selector).click(function(){ 26 $(selector).removeClass('activeON'); 27 $(this).addClass('activeON'); 28}); 29 30//ADD RESPONSIVE STATE TO TABLES 31 32$("table").addClass("table-responsive-stack"); 33 34//PART 2 35 36$(document).ready(function() { 37 38 $('.table-responsive-stack').find("th").each(function (i) { 39 40 $('.table-responsive-stack td:nth-child(' + (i + 1) + ')').prepend('<span class="table-responsive-stack-thead">'+ $(this).text() + ':</span> '); 41 $('.table-responsive-stack-thead').hide(); 42 }); 43 44 45 46 47 48$( '.table-responsive-stack' ).each(function() { 49 var thCount = $(this).find("th").length; 50 var rowGrow = 100 / thCount + '%'; 51 //console.log(rowGrow); 52 $(this).find("th, td").css('flex-basis', rowGrow); 53}); 54 55 56 57 58function flexTable(){ 59 if ($(window).width() < 768) { 60 61 $(".table-responsive-stack").each(function (i) { 62 $(this).find(".table-responsive-stack-thead").show(); 63 $(this).find('thead').hide(); 64 }); 65 66 67 // window is less than 768px 68 } else { 69 70 71 $(".table-responsive-stack").each(function (i) { 72 $(this).find(".table-responsive-stack-thead").hide(); 73 $(this).find('thead').show(); 74 }); 75 76 77 78 } 79// flextable 80} 81 82flexTable(); 83 84window.onresize = function(event) { 85 flexTable(); 86}; 87 88 89// document ready 90});
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.