1jQuery(function() { 2 jQuery('table.contentpaneopen > tbody > tr > td').wrapInner('<div class="content-wrapper"></div>'); 3 /* Slide Menu */ 4 jQuery('.site-container').click(function(){ 5 jQuery('input#menu-toggle').attr('checked', false); 6 }); 7 jQuery('.mobile-menu > ul.menu a').bind('click', function(e){ 8 e.preventDefault(); 9 jQuery('input#menu-toggle').attr('checked', false) 10 var href = jQuery( this ).attr( 'href' ); 11 setTimeout(function(){ 12 location.href = href; 13 }, 300); 14 return false; 15 }); 16 /* Footer Menu Columns */ 17 var listHeight = jQuery('.ftr-menu > ul.menu').outerHeight(); 18 var colHeight = 0; 19 jQuery('.ftr-menu > ul.menu > li').each(function(){ 20 var itemHeight = jQuery(this).outerHeight(); 21 if (colHeight < listHeight*0.45){ 22 colHeight = colHeight + itemHeight; 23 } else { 24 jQuery(this).addClass('right-col').css({"top": -colHeight}); 25 } 26 }); 27 jQuery('.ftr-menu > ul.menu').css({'height': colHeight}); 28 /* Smooth Scroll */ 29 jQuery('a#RTT, a#RTT-2').click(function(e) { 30 e.preventDefault(); 31 jQuery('html,body').animate({ 32 scrollTop: 0}, 500); 33 }); 34 jQuery('#menu-button a').click(function(e) { 35 e.preventDefault(); 36 var target = jQuery('#footer'); 37 jQuery('html,body').animate({ 38 scrollTop: target.offset().top 39 }, 500); 40 }); 41 /* 42 MemberClicks Classic Member Search 43 jQuery('input.inputbox.mc-search.member-search').removeAttr('onkeydown').keyup(function( event ) { 44 if ( event.which == 13 ) { 45 if( jQuery(this).val() != 'search our membership'){ 46 window.location='index.php?option=com_mc&mcid=45&st='+jQuery(this).val(); 47 } 48 } 49 }); 50 */ 51 majorBreakpoint(); 52 tableWrapper(); 53 turnLeft(); 54 hideKids(); 55 RTT(); 56}); 57jQuery(window).bind('resize orientationchange', function() { 58 contentWidth = jQuery('#component-wrap').outerWidth(); 59 majorBreakpoint(); 60 tableWrapper(); 61 turnLeft(); 62 RTT(); 63}); 64var RTT = function(){ 65 var tps = 0; 66 if (jQuery('#tablet-portrait').is(':visible')) { 67 tps = jQuery('.socnets').outerHeight() + 30; 68 } 69 var ftrMenuH = jQuery('#footer ul.resp-menu').outerHeight() - 64 - tps; 70 var viewportH = jQuery(window).height(); 71 if (ftrMenuH > viewportH) { 72 jQuery('#RTT-2').addClass('big-footer'); 73 } else { 74 jQuery('#RTT-2').removeClass('big-footer'); 75 } 76}; 77var majorBreakpoint = function () { 78 if (jQuery('#phone-landscape').is(':visible')) { 79 jQuery('#bkg').addClass('phone-landscape').removeClass('tablet-landscape tablet-portrait'); 80 } 81 if (jQuery('#tablet-portrait').is(':visible')) { 82 jQuery('#bkg').addClass('tablet-portrait').removeClass('tablet-landscape phone-landscape'); 83 } 84 if (jQuery('#tablet-landscape').is(':visible')) { 85 jQuery('#bkg').addClass('tablet-landscape').removeClass('tablet-portrait phone-landscape'); 86 jQuery('.mc-touch #primary-menu li.parent').bind('click', function(e) { 87 e.preventDefault(); 88 jQuery(this).unbind(e); 89 }); 90 } 91 var newBkgClass = jQuery('#bkg').attr('class'); 92 if (bkgClass != newBkgClass) { 93 jQuery('input#menu-toggle').attr('checked', false); 94 } 95 bkgClass = newBkgClass; 96}; 97/* Scripts for all templates */ 98var articlePageClass = function(){ 99 var mcClass = jQuery('meta[name="keywords"]').attr('content'); 100 if (mcClass.contains("full-width")){ 101 jQuery('#bkg').addClass('full-width'); 102 } 103 if (mcClass.contains("mc-columns")){ 104 jQuery('#bkg').addClass('mc-columns'); 105 } 106}; 107articlePageClass(); 108jQuery('table.contentpaneopen td table').addClass('content-table'); 109jQuery('table.content-table table').removeClass('content-table'); 110jQuery('table.content-table').wrap('<div><div class="table-wrapper"></div></div>'); 111var bkgClass = jQuery('#bkg').attr('class'); 112var contentWidth = jQuery('#component-wrap').outerWidth(); 113var tableWrapper = function(){ 114 jQuery('div.content-wrapper').css({'width':contentWidth}); 115 jQuery('div.table-wrapper').css({'width': contentWidth - 2}); 116 jQuery('table.content-table').each(function(){ 117 var tableWidth = jQuery(this).outerWidth(); 118 if ((contentWidth-2) < tableWidth){ 119 jQuery(this).parent('div.table-wrapper').parent('div').addClass('scroll-indicator'); 120 } else { 121 jQuery(this).parent('div.table-wrapper').parent('div').removeClass('scroll-indicator'); 122 } 123 }); 124}; 125var turnLeft = function(){ 126 if (jQuery('#tablet-landscape').is(':visible')) { 127 var siteW = jQuery('#header .site-width').outerWidth(); 128 var bkgW = jQuery('#bkg').outerWidth(); 129 var hoverSpace = siteW+((bkgW-siteW)/2); 130 jQuery('#primary-menu .resp-menu > li.parent').each(function(){ 131 var liPos = jQuery(this).position().left; 132 var menuW = jQuery(this).children('ul').outerWidth(); 133 if (liPos > (hoverSpace - menuW)) { 134 jQuery(this).addClass('turn-left').removeClass('third-level'); 135 } else if (jQuery(this).find('li.parent').length && liPos > (hoverSpace - (menuW * 2))) { 136 jQuery(this).addClass('third-level').removeClass('turn-left'); 137 } else { 138 jQuery(this).removeClass('turn-left third-level'); 139 } 140 }); 141 } else { 142 jQuery('#primary-menu').find('li.parent').removeClass('turn-left third-level'); 143 } 144}; 145var hideKids = function(){ 146 jQuery('#primary-menu ul').each(function(){ 147 if (!jQuery(this).children('li').length) { 148 jQuery(this).addClass('no-kids'); 149 } 150 }); 151}; 152var gridTable = function(){ 153 var tableContents = jQuery(this).html() 154 .replace(/<tbody/gi, "<div class='grid-layout'") 155 .replace(/<tr/gi, "<div") 156 .replace(/<\/tr>/gi, "</div>") 157 .replace(/<td/gi, "<div class='grid-box'") 158 .replace(/<\/td>/gi, "</div>") 159 .replace(/<\/tbody/gi, "</div") 160 ; 161 return tableContents; 162}; 163jQuery('table.grid-table table').each(function(){ 164 jQuery(this).replaceWith(jQuery(this).html()); 165}); 166jQuery('table.grid-table').each(function(){ 167 jQuery(this).replaceWith(gridTable); 168});
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.