1$(document).ready(function ($) { 2 3 if (window.matchMedia && window.matchMedia("(max-width: 767px)").matches) { 4 $('.topLink').each(function (e) { 5 $(this).attr('href', '#'); 6 }); 7 8 if ($('body').hasClass("pg-1050")) { 9 $('.toggleMenu').trigger('click'); 10 } 11 } 12 if (window.matchMedia && window.matchMedia("(max-width: 767px)").matches) { 13 $('.toplevel').click(function () { 14 $(this).find('ul.drop-down').toggleClass('active'); 15 }); 16 } 17 18 if (window.matchMedia && window.matchMedia("(min-width: 768px)").matches) { 19 $('.homepageSlideshowContainer .slides li').each(function (e) { 20 $(this).css('background-image', function () { 21 return 'url(' + $(this).attr('data-thumb') + ')'; 22 }); 23 }); 24 } else { 25 $('.homepageSlideshowContainer .slides li').each(function (e) { 26 $(this).css('background-image', function () { 27 return 'url(' + $(this).attr('data-mobile') + ')'; 28 }); 29 }); 30 } 31 32 if ($('div#homepageSlider').length) { 33 setTimeout(function () { 34 $('#homepageSlider').flexslider({ 35 animation: 'fade', 36 maxItems: 10, 37 itemWidth: 1140, 38 pauseOnHover: true, 39 StartAt: 1, 40 start: function (slider) { 41 slider.removeClass('loading'); 42 } 43 }); 44 }, 500); 45 } 46 47 $(".widget_head").click(function () { 48 $('.widget_content').slideToggle("fast", function () { 49 if ($(this).is(':visible')) { 50 $(this).css('display', 'inline-block'); 51 $(".widget_head").addClass("showclosebutton"); 52 } 53 else { 54 $(".widget_head").removeClass("showclosebutton"); 55 } 56 $(this).removeClass("init"); 57 }); 58 59 }); 60 61 $('#contour_form_Contactform form').submit(function () { 62 if ($('.iagree.checkbox input:checkbox', this).is(':checked')) { 63 $(".iagree.checkbox .field-validation-valid").removeClass("field-validation-error").text(""); 64 } else { 65 $(".iagree.checkbox .field-validation-valid").addClass("field-validation-error").text("I agree must be checked to submit form"); 66 return false; 67 } 68 69 //code below not fully working 70 //if ($('.recaptchafield.recaptcha input#recaptcha_response_field').text() != "") { 71 // console.info("test yes"); 72 // $(".recaptchafield.recaptcha .field-validation-valid").removeClass("field-validation-error").text(""); 73 //} else { 74 // console.info("test no"); 75 // $(".recaptchafield.recaptcha .field-validation-valid").addClass("field-validation-error").text("Please provide a valid value for Recaptcha field"); 76 // return false; 77 //} 78 }); 79 80 $("label").each(function () { // setting Placeholder text in contact form on Home page 81 var label = $(this); 82 var placeholder = label.text().replace(/ /g, ''); 83 var placeholderTrim = $.trim(placeholder); 84 label.closest(".contourField").find("input, textarea").attr("placeholder", placeholderTrim).val("").focus().blur(); 85 label.addClass('hidden'); 86 }); 87 88 //document.createElement("picture"); 89 90});
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.