1// variable that gets set on Site Landing pages to manipulate the pagemenu 2var siteHome; 3 4 5 6 7//Show/hide 'Back to Top' button 8$(document).ready(function() { 9 10 /*------------------ RESPONSIVE TABLES ------------------*/ 11 $('thead').each(function(){ 12 table = $(this).parent(); 13 table.addClass('has-header'); 14 tableRow = table.find('tr'); 15 table.find('td').each(function(){ 16 tdIndex = $(this).index(); 17 if ($(tableRow).find('th').eq(tdIndex).attr('data-label')) { 18 thText = $(tableRow).find('th').eq(tdIndex).data('label'); 19 } else { 20 thText = $(tableRow).find('th').eq(tdIndex).text(); 21 } 22 $(this).attr('data-label', thText + ':'); 23 }); 24 }); 25 26}); 27 28 29 30 31 32 33 34 35 36 37/*--------------------- ACCORDIONS ----------------------*/ 38 39function accordExpand() { 40 $('#accordion').find('h3').each(function(i, ojb) { 41 if( $(this).hasClass('ui-state-default')){ 42 $(this).removeClass('ui-state-default').addClass('ui-state-active'); 43 } 44 }); 45 $('#accordion').find('span').each(function(i, ojb) { 46 if( $(this).hasClass('ui-icon ui-icon-plusthick')){ 47 $(this).removeClass('ui-icon ui-icon-plusthick').addClass('ui-icon ui-icon-minusthick'); 48 } 49 }); 50 51 $('#accordion .ui-accordion-content').show(); 52} 53 54function accordCollapse() { 55 $('#accordion').find('h3').each(function(i, ojb) { 56 if( $(this).hasClass('ui-state-active')){ 57 $(this).removeClass('ui-state-active').addClass('ui-state-default'); 58 } 59 }); 60 $('#accordion').find('span').each(function(i, ojb) { 61 if( $(this).hasClass('ui-icon ui-icon-minusthick')){ 62 $(this).removeClass('ui-icon ui-icon-minusthick').addClass('ui-icon ui-icon-plusthick'); 63 } 64 }); 65 $('#accordion .ui-accordion-content').hide(); 66} 67 68/*-------------------------------------------------------*/ 69 70/*--------------------- Responsive Youtube Iframes ----------------------*/ 71/* hidden 4/2021 by Crystal Ward */ 72/* 73$( document ).ready(function() { 74 var $iframes = $('iframe[src*="youtube.com"]').each(function() { 75 var url = $(this).attr("src") 76 $(this).attr("src",url) 77 }); 78 79 80$iframes.each(function () { 81 //if ( $(this).parents(".hide").length != 1 ) 82 $( this ).data( "ratio", 9 / 16 ) 83 .removeAttr( "width" ) 84 .removeAttr( "height" ); 85}); 86 87 88$( window ).resize( function () { 89 $iframes.each( function() { 90 //if ( $(this).parents(".hide").length != 1 ) 91 var width = $( this ).parent().width(); 92 $( this ).width( width ) 93 .height( width * $( this ).data( "ratio" ) ); 94 }); 95 96}).resize(); 97}); 98*/ 99 100 101/*-------------------------------------------------------*/
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.