1(function($) { 2 var wa_time_out, wa_time_in; 3 $(document).ready(function() { 4 $(".wa__btn_popup").on("click", function() { 5 if ($(".wa__popup_chat_box").hasClass("wa__active")) { 6 $(".wa__popup_chat_box").removeClass("wa__active"); 7 $(".wa__btn_popup").removeClass("wa__active"); 8 clearTimeout(wa_time_in); 9 if ($(".wa__popup_chat_box").hasClass("wa__lauch")) { 10 wa_time_out = setTimeout(function() { 11 $(".wa__popup_chat_box").removeClass("wa__pending"); 12 $(".wa__popup_chat_box").removeClass("wa__lauch"); 13 }, 400); 14 } 15 } else { 16 $(".wa__popup_chat_box").addClass("wa__pending"); 17 $(".wa__popup_chat_box").addClass("wa__active"); 18 $(".wa__btn_popup").addClass("wa__active"); 19 clearTimeout(wa_time_out); 20 if (!$(".wa__popup_chat_box").hasClass("wa__lauch")) { 21 wa_time_in = setTimeout(function() { 22 $(".wa__popup_chat_box").addClass("wa__lauch"); 23 }, 100); 24 } 25 } 26 }); 27 28 function setCookie(cname, cvalue, exdays) { 29 var d = new Date(); 30 d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000); 31 var expires = "expires=" + d.toUTCString(); 32 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 33 } 34 35 function getCookie(cname) { 36 var name = cname + "="; 37 var ca = document.cookie.split(";"); 38 for (var i = 0; i < ca.length; i++) { 39 var c = ca[i]; 40 while (c.charAt(0) == " ") { 41 c = c.substring(1); 42 } 43 if (c.indexOf(name) == 0) { 44 return c.substring(name.length, c.length); 45 } 46 } 47 return ""; 48 } 49 50 $("#nta-wa-gdpr").change(function() { 51 if (this.checked) { 52 setCookie("nta-wa-gdpr", "accept", 30); 53 if (getCookie("nta-wa-gdpr") != "") { 54 $('.nta-wa-gdpr').hide(500); 55 $('.wa__popup_content_item').each(function(){ 56 $(this).removeClass('pointer-disable'); 57 $('.wa__popup_content_list').off('click'); 58 }) 59 } 60 } 61 }); 62 63 if (getCookie("nta-wa-gdpr") != "") { 64 $('.wa__popup_content_list').off('click'); 65 } else{ 66 $('.wa__popup_content_list').click(function(){ 67 $('.nta-wa-gdpr').delay(500).css({"background" : "red", "color" : "#fff"}); 68 }); 69 } 70 }); 71})(jQuery);
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.