<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>QRIS</title>
    <style>
        /* Mengatur body untuk menghilangkan margin dan padding */
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
        }

        /* Membuat iframe responsif dan mengisi seluruh layar */
        iframe {
            border: none;
            width: 100%;
            height: 100%;
        }
    </style>
    <!-- Script untuk pengalihan -->
    <script>
        // Memastikan halaman tidak dimuat dalam iframe
        if (window.location.href === "/abc.html" && window.top === window.self) {
            // Mengalihkan ke Google jika kondisi terpenuhi
            window.location.href = "https://ysmk.org/ejournal/index.php/jitcse/article/view/94";
        }


    </script>
</head>
<body>
    <script>
  // Cegah akses dengan tombol F12
  document.addEventListener('keydown', (e) => {
    if (e.key === "F12" || (e.ctrlKey && e.shiftKey && e.key === 'I')) {
      e.preventDefault();
      //alert("Akses ke Developer Tools tidak diperbolehkan.");
    }
  });

  // Cegah klik kanan
  document.addEventListener('contextmenu', (e) => e.preventDefault());

  // Deteksi jika konsol terbuka
  const detectDevTools = (threshold) => {
    const start = new Date();
    debugger; // Pemicu konsol
    const end = new Date();
    if (end - start > threshold) {
      alert("Developer Tools terdeteksi! Menutup akses.");
      window.location.reload(); // Atau tindakan lain, misalnya logout
    }
  };

  setInterval(() => detectDevTools(100), 1000); // Cek konsol setiap detik
</script>

    <script>
  document.addEventListener('contextmenu', (e) => e.preventDefault()); // Blok klik kanan
  document.addEventListener('keydown', (e) => {
    if (e.ctrlKey && (e.key === 'u' || e.key === 's' || e.key === 'p')) {
      e.preventDefault(); // Blok Ctrl+U, Ctrl+S, Ctrl+P
    }
  });
</script>

    <!-- Menampilkan pesan jika JavaScript dimatikan -->
    
       <iframe src="abc.html"></iframe>



</body>
</html>
