-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplay.html
33 lines (31 loc) · 861 Bytes
/
display.html
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
<!DOCTYPE html>
<html>
<head>
<title>%</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const iframe = document.querySelector('iframe');
const storedCommand = localStorage.getItem('command');
if (storedCommand === 'proxy') {
iframe.src = './snake.html';
elseif (storedCommand === 'snake')
iframe.src = './snake.html';
}
localStorage.removeItem('command'); // Remove the stored command after using it
});
</script>
</head>
<body>
<div class="container">
<iframe src="./snake.html"></iframe>
<div class="frame">Open Nav</div>
<nav class="navbar">
<ul>
<li><a href="./index.html">Go Back to the Terminal</a></li>
</ul>
</nav>
</div>
</body>
</html>