1jQuery(document).ready(function ($) { 2 $("#apus-orderby").on("click", function () { 3 if ($("#apus-orderby .dropdown-menu").css("display") == "none") { 4 $("#apus-orderby .dropdown-menu").css("display", "block"); 5 } else if ($("#apus-orderby .dropdown-menu").css("display") == "block") { 6 $("#apus-orderby .dropdown-menu").css("display", "none"); 7 } 8 }); 9}); 10 11// closeHeaderBar 12 13const closeHeaderBar = () => { 14 console.log('tes') 15 const elHeaderBar = document.getElementById("header_bar_announcement"); 16 if (elHeaderBar) { 17 elHeaderBar.style.display = "none"; 18 } 19 20 const elHeaderOther = document.getElementById('announcement') 21 if (elHeaderOther) { 22 elHeaderOther.style.display = "none" 23 } 24}; 25 26 27//hanlde wooco messages 28 29document.addEventListener('DOMContentLoaded', function () { 30 const noticesWrapper = document.querySelector('.woocommerce-notices-wrapper'); 31 32 noticesWrapper.addEventListener('click', function () { 33 // Simpan state formulir sebelum menyegarkan halaman 34 const formState = window.history.state; 35 36 // Segarkan halaman tanpa memengaruhi state formulir 37 location.replace(location.pathname + location.search); 38 39 // Kembalikan state formulir setelah halaman dimuat ulang 40 window.history.replaceState(formState, document.title, location.href); 41 }); 42}); 43
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.