1$.noConflict(); 2jQuery( document ).ready(function( $ ) { 3 4 jQuery('.website_popup .close').click(function() { 5 jQuery('.website_popup').fadeOut(); 6 var popupId = jQuery('.website_popup').attr("data-id"); 7 var status = "close"; 8 jQuery('.website_popup').attr('data-status', status); 9 jQuery('.popup_reminder').fadeIn(); 10 jQuery('.popup_reminder').attr('data-status', 'open'); 11 12 //Wert Speichern 13 localStorage.setItem("popup", "reminder-open-now"); 14 15 }); 16 if(localStorage.getItem("popup") != "reminder-open-now") { 17 jQuery(window).scroll(function() { 18 var popupStatus = jQuery('.website_popup').attr("data-status"); 19 if(popupStatus != "close") { 20 if(jQuery(window).scrollTop() > 500) { 21 jQuery('.website_popup').fadeIn(); 22 } 23 } 24 }); 25 } 26 27 jQuery('.popup_reminder').click(function() { 28 jQuery('.popup_reminder').fadeOut(); 29 jQuery('.website_popup').fadeIn(); 30 jQuery('.popup_reminder').attr('data-status', 'closed'); 31 32 //Wert Speichern 33 localStorage.setItem("popup", "reminder-closed-now"); 34 }); 35 36 //localStorage Abfrage 37 if(localStorage.getItem("popup") == "reminder-open-now") { 38 jQuery('.website_popup').fadeOut(); 39 jQuery('.popup_reminder').fadeIn(); 40 } 41 if(localStorage.getItem("popup") == "reminder-closed-now") { 42 jQuery('.website_popup').fadeIn(); 43 jQuery('.popup_reminder').fadeOut(); 44 } 45});
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.