1$(window).on('load', function(){ 2 $('.preloader').fadeOut('slow'); 3}); 4 5// Set Background---------------- 6function setbg() { 7 $(".setbg").each(function () { 8 var theBg = $(this).find(".bg-img").attr("src"); 9 $(this).css('background-image', 'url(' + theBg + ')'); 10 $(this).find("img.bg-img").hide(); 11 }); 12} 13setbg(); 14// Resize Function---------------- 15$(window).on('resize',function() { 16 setbg(); 17}); 18// Load Function---------------- 19$(window).on('load', function() { 20 setbg(); 21}); 22 23 24 25 26 27var gov = $( "body.page-id-388 div:contains('Raleigh County native')").addClass("gov"); 28 29/* Mobile menu ======== */ 30jQuery('#toggle').click(function() { 31 jQuery(this).toggleClass('active'); 32 jQuery('html').toggleClass('menu-open'); 33}); 34 35/* Search toggle ======== */ 36jQuery('header .search-btn').click(function() { 37 jQuery(this).toggleClass('active').next('form').toggle(); 38}); 39 40// WOW Animation Effect ////////////////////////////////////////////////////////////////////////////// 41new WOW().init(); 42 43/* Header fix on scroll ==================== */ 44$(window).scroll(function(){ 45 if ($(window).scrollTop() >= 50) { 46 $('header').addClass('fixed-header'); 47 } 48 else { 49 $('header').removeClass('fixed-header'); 50 } 51}); 52 53/* Goto Link =========== */ 54$('.goto').click(function(e) { 55 e.preventDefault(); 56 var sectionTo = $(this).attr('href'); 57 $('html, body').animate({ 58 scrollTop: $(sectionTo).offset().top - 71 59 }, 500); 60}); 61 62/* Product Detail slider ======= */ 63jQuery('.compare-text-slider').slick({ 64 slidesToShow: 1, 65 slidesToScroll: 1, 66 arrows: false, 67 fade: true, 68 asNavFor: '.cmpr-slider' 69}); 70jQuery('.cmpr-slider').slick({ 71 dots: false, 72 asNavFor: '.compare-text-slider', 73 speed: 500, 74 vertical: true, 75 verticalSwiping: true, 76 slidesToShow: 1, 77 slidesToScroll: 1, 78}); 79 80/* Product Detail slider ======= */ 81jQuery('.cs-slider').slick({ 82 slidesToShow: 1, 83 slidesToScroll: 1, 84 arrows: false, 85 fade: true, 86 asNavFor: '.cs-text-slider' 87}); 88jQuery('.cs-text-slider').slick({ 89 dots: false, 90 asNavFor: '.cs-slider', 91 speed: 500, 92 slidesToShow: 1, 93 slidesToScroll: 1, 94}); 95 96/* overview slider slider ======= */ 97jQuery('.overview-img > div').slick({ 98 slidesToShow: 1, 99 slidesToScroll: 1, 100 arrows: false, 101 fade: true, 102 asNavFor: '.overview-content > div' 103}); 104jQuery('.overview-content > div').slick({ 105 dots: false, 106 asNavFor: '.overview-img > div', 107 speed: 500, 108 slidesToShow: 1, 109 slidesToScroll: 1, 110}); 111 112$('header ul.nav li.dropdown').hover(function() { 113 $(this).find('.dropdown-menu').stop(true, true).fadeIn('fast'); 114}, function() { 115 $(this).find('.dropdown-menu').stop(true, true).fadeOut('fast'); 116}); 117$('header ul li:has(ul)').addClass('menu-item-has-children'); 118$('header.header ul.nav > li.menu-item-has-children').append('<span class="submenu-arrow"><i class="fa fa-angle-down"></i></span>'); 119 120$("header.header span.submenu-arrow").on('click', function(e) { 121 e.preventDefault(); 122 $(this).parent('li').toggleClass("active"); 123 $(this).parent('li').siblings('li').removeClass("active"); 124}); 125 126// Custom Tabs 127$(document).ready(function(){ 128 $('.sd-tabs .tab-a').click(function(){ 129 $(".tab").fadeOut('fast'); 130 $(".tab[data-id='"+$(this).attr('data-id')+"']").fadeIn('fast'); 131 $(this).parent().siblings('li').removeClass('active-a'); 132 $(this).parent().addClass('active-a'); 133 }); 134}); 135$(document).ready(function(){ 136 $('.disc-sec input:radio').click(function() { 137 var que=$('#quecount').html(); 138 var res=$('#rescount').html(); 139 var i; 140 var flag; 141 $('.disc-sec').find(".disc-sl-result").addClass("d-none"); 142 143 for (i = 1; i <= que; i++) { 144 if ($('input:radio[name="traffic-feel'+i+'"]:checked').length > 0) { 145 flag=1; 146 } 147 else 148 { 149 flag=0; 150 break; 151 } 152 153 } 154 155 if(flag == 1){ 156 var rannum= between(1,parseInt(res)+1); 157 158 $('#res'+rannum).removeClass('d-none'); 159 } 160 }); 161}); 162 163function between(min, max) { 164 return Math.floor( 165 Math.random() * (max - min) + min 166 ) 167} 168 169 170/* Touch class for touch device =================== */ 171function ontouchdevice() {
172 if ("ontouchstart" in window || "ontouch" in window) { $('body').addClass('touch')} 173} 174ontouchdevice(); 175$(window).resize(function() { 176 ontouchdevice(); 177}); 178$(window).on("load", function () { 179 ontouchdevice(); 180});
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.