1wow = new WOW({ 2 offset: 100 3}); 4wow.init(); 5 6jQuery(window).on('load', function() { 7 // Animate loader off screen 8 jQuery('.loader-wrap').fadeOut(); 9 jQuery('.spinner').delay(350).fadeOut('slow'); 10}); //window load end 11jQuery(document).ready(function(){ 12 13 //Moble Menu Script 14 jQuery(".mobilemenuicon").click(function(){ 15 jQuery(this).toggleClass('opened'); 16 jQuery("body").toggleClass("mobile-menu-open"); 17 }); 18 jQuery(".menu-open-overlay, .mobi-close").click(function(){ 19 jQuery("body").removeClass("mobile-menu-open"); 20 jQuery("body").removeClass("open"); 21 jQuery(".mobilemenuicon").removeClass('opened'); 22 }); 23 24 // Search Box 25 jQuery(".top-menu-main .search-icon").click(function(){ 26 jQuery("body").addClass("search-box-open"); 27 }); 28 jQuery(".search-box-popup .close-btn, .search-box-popup1 .close-btn").click(function(){ 29 jQuery("body").removeClass("search-box-open"); 30 jQuery("body").removeClass("login-popup-open"); 31 }); 32 33 jQuery(".langmenu-nav li.wpml-ls-current-language").click(function(){ 34 jQuery(this).toggleClass("active"); 35 }); 36 37 if(is_member_loggedIn == 2){ 38 jQuery(".login-pro-area a").click(function(){ 39 jQuery("body").addClass("login-popup-open"); 40 }); 41 }else{ 42 jQuery(".login-pro-area a").click(function(){ 43 location.href = cpage_member_page; 44 }); 45 } 46 47 48 /* scroll bottom to top */ 49 if (jQuery(this).scrollTop() > 200) { 50 jQuery('.scrollup').fadeIn(); 51 } else { 52 jQuery('.scrollup').fadeOut(); 53 } 54 jQuery(window).scroll(function () { 55 if (jQuery(this).scrollTop() > 200) { 56 jQuery('.scrollup').fadeIn(); 57 } else { 58 jQuery('.scrollup').fadeOut(); 59 } 60 }); 61 jQuery('.scrollup').click(function () { 62 jQuery("html, body").animate({ 63 scrollTop: 0 64 }, 600); 65 return false; 66 }); 67 68 // Home Slider 69 jQuery('.home-banner').slick({ 70 dots: false, 71 lazyLoad: 'ondemand', 72 arrows: false, 73 pauseOnHover: false, 74 slidesToShow: 1, 75 slidesToScroll: 1, 76 autoplay: true, 77 autoplaySpeed: 7000, 78 fade: true, 79 cssEase: 'linear' 80 }); 81 82 $("button#wllink_email").click(function() { 83 $(".wllink_email_form").slideToggle('slow'); 84 }); 85 86 jQuery(".scroll > a").click(function(e){ 87 e.preventDefault(); 88 var hrefVal = jQuery(this).attr("href"); 89 var sectionOffset = jQuery(hrefVal).offset().top - 0; 90 jQuery('html, body').animate({ 91 scrollTop: sectionOffset 92 }, 500); 93 }); 94 95 jQuery('.gallery, .gallery-list').magnificPopup({ 96 delegate: 'a', 97 type: 'image', 98 tLoading: 'Loading image #%curr%...', 99 mainClass: 'mfp-img-mobile', 100 gallery: { 101 enabled: true, 102 navigateByImgClick: true, 103 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 104 }, 105 image: { 106 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 107 titleSrc: function(item) { 108 //return item.el.attr('title') + '<small>by Marsel Van Oosten</small>'; 109 } 110 } 111 }); 112 113 jQuery(".sidebar-toggle-btn .btn").click(function(){ 114 if( jQuery("#request-form").is(":hidden") ){ 115 jQuery("#request-form").toggle('slide'); 116 } 117 var target = jQuery("#request-form").offset().top; 118 jQuery("html, body").animate({ 119 scrollTop: target 120 }, 600); 121 }); 122 123});//ready over 124 125function copy_link() { 126 var copyVal = $(".wllink_copy").val(); 127 $(".wllink_copy").val(copyVal).select(); 128 document.execCommand("copy"); 129} 130 131function setCookie(cname, cvalue) { 132 var d = new Date(); 133 d.setTime(d.getTime() + (1000*86400)); 134 var expires = "expires=" + d.toGMTString(); 135 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 136} 137function getCookie(cname) { 138 var name = cname + "="; 139 var ca = document.cookie.split(';'); 140 for(var i = 0; i < ca.length; i++) { 141 var c = ca[i]; 142 while (c.charAt(0) == ' ') { 143 c = c.substring(1); 144 } 145 if (c.indexOf(name) == 0) { 146 return c.substring(name.length, c.length); 147 } 148 } 149 return ""; 150} 151 152jQuery(function() { 153 jQuery('.lazy').lazy(); 154}); 155 156var loginProArea = function(e) { 157 var $self = $(this); 158 var $form = $self.closest('form'); 159 var passwd = $form.find('[name="cpasswd"]').first().val(); 160 var proAreaLink = $form.find('[name="proAreaLink"]').first().val(); 161 $.ajax({ 162 url: custom_ajax_uri, 163 method: 'POST', 164 dataType: "json", 165 cache: false, 166 data: { 167 nonce: c_theme_nonce, 168 action: 'ld_user_login', 169 lang: current_lang_code, 170 passwd: passwd 171 }, 172 success: function(data, textStatus, request) { 173 if(data.success){ 174 location.href = proAreaLink; 175 $self.prop('disabled', false).removeClass('btn--loading'); 176 }else{ 177 $form.find('.alert-warning--wrong').removeClass('d-none'); 178 $self.prop('disabled', false).removeClass('btn--loading'); 179 } 180 }, 181 error: function(data, textStatus, request) { 182 $form.find('.alert-warning--wrong').removeClass('d-none'); 183 $self.prop('disabled', false).removeClass('btn--loading'); 184 } 185 }); 186 $form.find('.alert-warning').addClass('d-none'); 187 $self.prop('disabled', true).addClass('btn--loading'); 188 e.preventDefault(); 189};
190$(document).on('click', '[data-proarea-action="ldUserLogin"]', loginProArea);
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.