1jQuery(document).ready(function ($) { 2 var $popupContainer = $(".popup-container"); 3 var $popupContent = $popupContainer.find(".popup-content"); 4 var $openPopupBtn = $(".open-popup-btn"); 5 var $closePopupBtn = $(".close-popup"); 6 7 function openPopup() { 8 $popupContainer.css("display", "flex"); 9 $('#water-bill-form input[type="text"]').val(""); 10 $popupContent.fadeIn(); 11 localStorage.setItem('popupOpen', 'true'); 12 } 13 14 function closePopup() { 15 localStorage.removeItem('popupOpen'); 16 $popupContainer.css("display", "none"); 17 $popupContent.fadeOut(); 18 } 19 20 $openPopupBtn.click(function (event) { 21 event.preventDefault(); 22 openPopup(); 23 }); 24 25 $closePopupBtn.click(closePopup); 26 27 if (localStorage.getItem('popupOpen') === null) { 28 localStorage.setItem('popupOpen', 'false'); 29 } 30 31 if (localStorage.getItem('popupOpen') === 'true') { 32 openPopup(); 33 } 34});
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.