PageSourceSearch

https://nipak.com/wp-content/plugins/nipak-simple-sidecart-latest/assets/sidecart.js?ver=0.4.0

js nipak.com collected 2026-10-08 13:29:03 UTC 824 bytes, 29 lines download raw bytes

1
2(function($){
3  const openBtn = '[data-nipak-sidecart-open], .nipak-open-sidecart';
4  const closeBtn = '[data-nipak-sidecart-close]';
5  const overlay = '.nipak-sidecart-overlay';
6  const cart = '#nipak-sidecart';
7
8  function openCart(){
9    document.documentElement.classList.add('nipak-sidecart-is-open');
10    document.querySelector(cart).setAttribute('aria-hidden','false');
11  }
12
13  function closeCart(){
14    document.documentElement.classList.remove('nipak-sidecart-is-open');
15    document.querySelector(cart).setAttribute('aria-hidden','true');
16  }
17
18  document.addEventListener('click', function(e){
19    if(e.target.closest(openBtn)){
20      e.preventDefault();
21      openCart();
22    }
23    if(e.target.closest(closeBtn) || e.target.closest(overlay)){
24      e.preventDefault();
25      closeCart();
26    }
27  });
28
29})(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.