1$(document).ready(function(){ 2 // Add Teaser Clear 3 $('#SVC12365').bind("DOMSubtreeModified",function(){ 4 var l = $(".teaser-clear").length; 5 6 if(l == 0){ 7 $(".blog-listings-teasers > .blog-teaser:nth-child(3)").after( "<div class='teaser-clear'></div>" ); 8 } 9 }); 10 11 // Add Featured Teaser Clear 12 $(".featured-teasers .blog-teaser:nth-child(2)").after( "<div class='teaser-clear'></div>" ); 13 14 15 // Add Caption 16 $('.hascaption').each(function() { 17 $(this).after( "<div class='caption'>" + $(this).attr('title') + "</div>" ); 18 }); 19 20 // IE Specific Styles 21 var ua = window.navigator.userAgent; 22 var msie = ua.indexOf("MSIE "); 23 24 if(msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)){ 25 $(".retail-categories").css("display","none"); 26 } 27 28 drawstuff(); 29 30}); 31 32function smooth_scroll(url){ 33 var id = "#" + url.split('#')[1]; 34 $('html, body').animate({ 35 scrollTop: $(id).offset().top 36 }, 500); 37} 38 39// Fixed Breadcrumb on Scroll 40 41$(window).scroll(function() { 42 check_body_scroll(); 43}); 44 45$(document).ready(function(){ 46 check_body_scroll(); 47}); 48 49function check_body_scroll(){ 50 var a = 74; 51 var b = 120; 52 53 var scroll = $(window).scrollTop(); 54 55 console.log("SCROLL: " + scroll); 56 57 if (scroll > a && scroll < b) { 58 $("body").addClass('scroll-a'); 59 } 60 61 if(scroll > b){ 62 $("body").addClass('scroll-b').addClass('scroll-a'); 63 } 64 65 if(scroll < a){ 66 $("body").removeClass('scroll-a'); 67 } 68 69 if(scroll < b){ 70 $("body").removeClass('scroll-b'); 71 } 72} 73 74$(window).resize(function() { 75 drawstuff(); 76}); 77 78 79function drawstuff(){ 80 81 if($(window).width() > 1400){ 82 var height = $('.int section.int-first').height(); 83 var margin = height + 300; 84 $("#Apply").css("margin-top", margin + "px"); 85 } 86 87 else { 88 $("#Apply").css("margin-top", 0); 89 } 90} 91 92/* 93 Initialize DropDown menu 94 */ 95$(document).ready(function () { 96 $(".navbar-nav li a").click(function (event) { 97 if (!$(this).hasClass("dropdown-toggle")) { 98 $(".navbar-collapse").collapse('hide'); 99 } 100 }); 101}); 102 103function followLink( uri, newWindow ) { 104 if( newWindow ) { 105 window.open( uri ); 106 if( event.stopPropagation ) { 107 event.stopPropagation(); 108 } 109 event.cancelBubble = true; 110 } 111 else { 112 window.location.href = uri; 113 } 114}
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.