PageSourceSearch

https://teenpattiappslist.com/wp-content/themes/teen-patti-landing-pro-pk/assets/js/rlp.js?ver=4.0.0

js teenpattiappslist.com collected 2026-10-02 02:12:35 UTC 3,262 bytes, 107 lines download raw bytes

1
2(function(){
3  // modal
4  const overlay=document.querySelector('.modalOverlay');
5  function openModal(id){
6    const m=document.getElementById(id);
7    if(!m) return;
8    overlay && overlay.classList.add('open');
9    m.classList.add('open');
10    m.style.display='flex';
11  }
12  function closeAll(){
13    document.querySelectorAll('.modal').forEach(m=>{m.classList.remove('open'); m.style.display='none';});
14    overlay && overlay.classList.remove('open');
15  }
16  document.querySelectorAll('[data-modal]').forEach(el=>{
17    el.addEventListener('click',()=>openModal(el.getAttribute('data-modal')));
18  });
19  document.querySelectorAll('[data-close]').forEach(el=>el.addEventListener('click',closeAll));
20  overlay && overlay.addEventListener('click',closeAll);
21
22  // categories + search (list pages)
23  function setCat(cat){
24    document.querySelectorAll('.cats button').forEach(b=>b.classList.toggle('active', b.dataset.cat===cat));
25    document.querySelectorAll('[data-item]').forEach(it=>{
26      const c=it.dataset.cat||'best';
27      it.style.display = (cat===c) ? '' : 'none';
28    });
29  }
30  window.rlpCat=setCat;
31
32  const search=document.getElementById('rlp-search');
33  window.rlpSearch=function(val){
34    const q=(val||'').toLowerCase().trim();
35    document.querySelectorAll('[data-item]').forEach(it=>{
36      const t=(it.dataset.title||'').toLowerCase();
37      it.style.display = t.includes(q) ? '' : 'none';
38    });
39  }
40  if(search){ search.addEventListener('input', e=>window.rlpSearch(e.target.value)); }
41
42  // default cat best
43  const btn=document.querySelector('.cats button[data-cat="best"]');
44  if(btn) setCat('best');
45})();
46
47(function () {
48  function initDownloadTargets() {
49    // 1) .claim 里的 button
50    var claimBtn = document.querySelector('.claim button');
51    if (claimBtn) {
52      claimBtn.setAttribute('data-download', 'down-now');
53
54      // 让原 onclick 失效
55      claimBtn.removeAttribute('onclick');
56      claimBtn.onclick = null;
57    }
58
59    // 2) 底部 sticky 的 a
60    var stickyBtn = document.querySelector('.sticky-btn');
61    if (stickyBtn) {
62      stickyBtn.setAttribute('data-download', 'down-now');
63
64      // 让原 href / target 失效,但保留点击本身
65      stickyBtn.removeAttribute('href');
66      stickyBtn.removeAttribute('target');
67      stickyBtn.removeAttribute('rel');
68
69      // 防止有原生 onclick
70      stickyBtn.removeAttribute('onclick');
71      stickyBtn.onclick = null;
72    }
73  }
74
75  if (document.readyState === 'loading') {
76    document.addEventListener('DOMContentLoaded', initDownloadTargets);
77  } else {
78    initDownloadTargets();
79  }
80})();
81
82(function () {
83  function markDownloadImages() {
84    document.querySelectorAll('img[src*="teen-patti-pakistan-banner"]').forEach(function (img) {
85      img.setAttribute('data-download', 'down-now');
86    });
87  }
88
89  if (document.readyState === 'loading') {
90    document.addEventListener('DOMContentLoaded', markDownloadImages);
91  } else {
92    markDownloadImages();
93  }
94
95  var observer = new MutationObserver(function () {
96    markDownloadImages();
97  });
98
99  observer.observe(document.body, {
100    childList: true,
101    subtree: true
102  });
103
104  setTimeout(markDownloadImages, 500);
105  setTimeout(markDownloadImages, 1500);
106  setTimeout(markDownloadImages, 3000);
107})();

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.