1(function($) { 2 $(function() { 3 function syncTopicBoxHeight() { 4 var rows = $('.subsite__topic-row'); 5 rows.each(function(i, e) { 6 var elems = $(e).find("div[class^='subsite__topic-box'],div[class*=' subsite__topic-box']"); 7 // reset the box heights 8 elems.each(function(idx, box) { 9 $(box).css('height', ''); 10 }); 11 var heights = $.map(elems, function(ob, idx) { 12 return $(ob).outerHeight(); 13 }); 14 var maxHeight = Math.max.apply(null, heights); 15 // sync the box heights 16 elems.each(function(idx, box) { 17 $(box).css('height', maxHeight); 18 }); 19 }); 20 } 21 function syncSubsiteHeadingBoxes() { 22 var subsiteHeaders = $('.panel-home__subsites header'); 23 var numHeaders = subsiteHeaders.length; 24 var maxHeight = 0; 25 for(var i = 0; i < numHeaders; i++) { 26 var currHeight = $(subsiteHeaders[i]).height(); 27 if(currHeight > maxHeight) { 28 maxHeight = currHeight; 29 } 30 } 31 for(var i = 0; i < numHeaders; i++) { 32 $(subsiteHeaders[i]).height(maxHeight); 33 } 34 } 35 function syncFeaturedRecipeHeader() { 36 var candidateSections = $('.panel-recipe--teaser'); 37 if(candidateSections.length > 0) { 38 var section = $(candidateSections[0]); 39 var header = section.siblings('h2').first(); 40 var img = section.find('img').first(); 41 var imgOffset = img.offset(); 42 var headerOffset = header.offset(); 43 console.log(imgOffset); 44 console.log(headerOffset); 45 var headerAdjust = imgOffset.left; 46 headerOffset.left = headerAdjust; 47 console.log(headerAdjust); 48 header.offset(headerOffset); 49 } 50 } 51 // make subsite boxes clickable 52 var subsiteBoxes = $('[class*=subsite__topic-box]'); 53 subsiteBoxes.each(function(i, e) { 54 var box = $(e); 55 var a = box.find("a"); 56 if(a !== undefined) { 57 var href = a.attr('href'); 58 if(href !== undefined) { 59 box.click(function(evnt) { 60 window.location.href = href; 61 }); 62 } 63 } 64 }) 65 $(window).on("debouncedresize", function() { 66// syncFeaturedRecipeHeader(); 67 syncTopicBoxHeight(); 68// syncSubsiteHeadingBoxes(); 69 }); 70 $(window).load(function() { 71// syncFeaturedRecipeHeader(); 72 syncTopicBoxHeight(); 73// syncSubsiteHeadingBoxes(); 74 }); 75 // show the footer sitemap 76 $('#footer-sitemap .main-menu').each(function () { this.style.setProperty('display', 'block', 'important'); }); 77 $(":header").not(".ac-style-subtitle").not(".ignore-title-caps").each(function(i, v) { 78 //$(":header").each(function(i, v) { 79 //$(v).text(titleCaps($(v).text())); 80 $(v).children().each(function() { $(this).text(titleCaps($(this).text()));}); 81 }); 82 $(".main-menu .menu ul a, .breadcrumb a").each(function(i, v) { 83 $(v).text(titleCaps($(v).text())); 84 }); 85 $(".home__testimonials").click(function(e) { 86 if($(e.target).is('.rslides_tab')) { 87 return false; 88 } 89 location.href = '/about-us/testimonials'; 90 }); 91 }); 92})(jQuery); 93 94window.twttr = (function(d, s, id) { 95 var js, fjs = d.getElementsByTagName(s)[0], 96 t = window.twttr || {}; 97 if (d.getElementById(id)) return t; 98 js = d.createElement(s); 99 js.id = id; 100 js.src = "https://platform.twitter.com/widgets.js"; 101 fjs.parentNode.insertBefore(js, fjs); 102 103 t._e = []; 104 t.ready = function(f) { 105 t._e.push(f); 106 }; 107 108 return t; 109}(document, "script", "twitter-wjs"));
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.