-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.php
42 lines (37 loc) · 1.4 KB
/
__init__.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TitanShield Demo - The Frameblocker</title>
</head>
<body>
<h1>TitanShield Demo</h1>
<p>This page will load TitanShield.php within the master frame.</p>
<!-- Master frame -->
<div style="border: 1px solid #ccc; padding: 10px; width: 600px; height: 400px;">
<iframe id="masterFrame" src="about:blank" style="width: 100%; height: 100%; border: none;"></iframe>
</div>
<script>
// Simulated countdown to load test script ***TitanShield.php*** xD
var countdown = 10;
var counterElement = document.createElement('span');
counterElement.id = 'counter';
counterElement.textContent = countdown;
document.body.appendChild(counterElement);
var countdownInterval = setInterval(function() {
countdown--;
document.getElementById('counter').textContent = countdown;
if (countdown === 0) {
clearInterval(countdownInterval);
loadTitanShield();
}
}, 1000);
// Function to load TitanShield.php inside the master frame
function loadTitanShield() {
var iframe = document.getElementById('masterFrame');
iframe.src = 'TitanShield.php';
}
</script>
</body>
</html>