1$(document).ready(function() { 2 //search toggle 3 $(".searchicon").on("click", function() { 4 $(".search").toggle(); 5 }); 6 // Desktop location toggle 7 $("#Locations_Toggle").on("click", function() { 8 $("#Locations_Toggle span").toggleClass("Larrowdown Larrowup"); 9 $(".locationList").toggle(); 10 }); 11 12 // Mobile location toggle 13 $(".mobilelocation").on("click", function() { 14 $(".locationList").toggle(); 15 }); 16 17 // Move the .greenborder content into the .locationList div if not already there 18 if ($(".locationList .movelocation").length === 0) { 19 $(".locationList").append($(".movelocation")); 20 } 21 //Customer service toggle in the header 22 $("#Service_Toggle").on("click", function() { 23 $("#Service_Toggle span").toggleClass("Rarrowdown Rarrowup"); 24 $(".CustomServiceDropdown").toggle(); 25 }); 26 //Login account box toggle 27 $(".AccountLogin, .loginBtnMob").on("click", function() { 28 $("#loginBox").slideToggle(); 29 30 }); 31 //inject menucontents 32 $('.MenuContent').each(function(i) { 33 $(this).appendTo('#megamenu > li:nth-child(' + (i + 1) + ') .menushadow').show(); 34 }); 35 $("#megamenu .sub").hover(function() { 36 37 }); 38 39 //Mobile CustomerService toggle 40 $(".mobileuser").on("click", function() { 41 $(".CustomServiceDropdown").toggle(); 42 }); 43 //print functionality 44 $('.print').on('click',function() 45 { 46 window.print(); 47 }); 48 //Hide email address 49 $(".email-address").on("click touchstart", function() { 50 var x = $(this).data("email")+"@"+$(this).data("address"); 51 $(this).attr("href", "mailto:"+x).attr("title", x); 52 }); 53 //remove footer margin if there is an element above it 54 if("#dnn_BottomPaneFullDiv:has(p)") { 55 $("#footer").addClass("nomargin"); 56 } 57 //style Investments pages breadcrumb 58 if ($("ul.breadcrumb li span:contains('Investments')").length) { 59 $("#dnn_dnnBreadcrumb1_lblBreadCrumb span:nth-child(2)").css("text-transform", "none"); 60 } 61 62 //set min-height of h3 of blue boxes if on certain url 63 $(function() { 64 var loc = window.location.href; // returns the full URL 65 if(/Annual-Meeting-Materials/.test(loc)) { 66 $(".B-Servicebox h3, .DB-Servicebox h3, .ACDB-Servicebox h3, .ACB-Servicebox h3").css("min-height", "50px"); 67 } 68 }); 69 70 //Calculators toggle disclaimer 71 $("#toggle4").on("click", function() { 72 $(".toggle4").slideToggle("fast"); 73 return false; 74 }); 75 //add speedbump in header social icons 76 $('#header .social-icons a').addClass('speedbump'); 77 78 $(".chatpopup").on("click", function(e) { 79 e.preventDefault(); 80 window.open($(this).attr("href"), '', 'resizable=no,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no,width=450,height=580'); 81 }); 82 83 //WAVE ERROR - GOOGLE CAPTCHA 84 $('#dnn_ctr4807_View_Captcha_4807_4 #g-recaptcha-response').append('<label for="g-recaptcha-response">captcha</label>'); 85 $('#dnn_ctr4458_View_Captcha_4458_5 #g-recaptcha-response').append('<label for="g-recaptcha-response">captcha</label>'); 86 $('#dnn_ctr4831_View_Captcha_4831_6 #g-recaptcha-response').append('<label for="g-recaptcha-response">captcha</label>'); 87 //$('.social_buttons a.addthis_button_expanded').appendTo('more'); 88 89 //speedbump 90 $('a.speedbump').on('click', function(e) { 91 e.preventDefault(); 92 //var extclicked = $(this); 93 var linkurl = $(this).attr('href'); 94 $('.extlinkContent').html('<h4 style="text-align:center;">You are about to leave Andover Bank</h4><p style="text-align:center;">We are providing this link for your convenience, but do not endorse or control the content of the website. It is recommended that you review their privacy and security policies.</p><p style="text-align:center;"><strong>Continue to '+linkurl+' ?</strong></p><p style="text-align:center;"><a class="linkButton" href="'+linkurl+'" target="_blank" style="margin-right:1em;">OK</a><a class="linkButton" href="">Cancel</a></p>'); 95 $('.popupBG').show(); 96 $('.extlinkContent a.linkButton:nth-child(1)').on('click', function() { 97 $('.extlinkContent').html(''); 98 $('.popupBG').hide(); 99 }); 100 $('.extlinkContent a.linkButton:nth-child(2)').on('click', function(e) { 101 e.preventDefault(); 102 $('.extlinkContent').html(''); 103 $('.popupBG').hide(); 104 });
105 }); 106 107} 108); 109 110$(window).on("load", function() { 111//Resize Action (move Search in the menu) 112 var wB = 991; 113 var w0 = 0; 114 function resizeAction() { 115 var w = $(window).width(); 116 if (w < wB) { 117 if (w0 === 0 || w0 >= wB) {//M<-D 118 $(".tobemoved").appendTo(".navbar-collapse.nav-main-collapse").show(); 119 } 120 } else { 121 if (w0 < wB) {//M->D 122 if (w0 !== 0) { 123 $(".tobemoved").prependTo(".searchicon"); 124 } 125 } 126 } 127 w0 = w; 128 } 129 resizeAction(); 130 $(window).on("resize", resizeAction); 131} 132); 133 134//$(document).mouseup(function (e){ 135 //var container = $("#loginBox"); 136 //if (!container.is(e.target) && container.has(e.target).length === 0){ 137 //container.hide(); 138 //} 139//});
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.