-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththerminal.html
54 lines (53 loc) · 1.66 KB
/
therminal.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="source/icons/therminalicon.ico">
<title>Therminal</title>
<link rel="stylesheet" href="therminal/therminal.css">
<style>
body.in-iframe,
body.in-iframe #terminal {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
border: none;
}
body.in-iframe #terminal {
padding: 10px;
box-sizing: border-box;
}
</style>
<script>
// Check if the page is loaded in an iframe
window.addEventListener('load', function() {
if (window.self !== window.top) {
document.body.classList.add('in-iframe');
}
});
</script>
</head>
<body>
<div id="terminal">
<div id="output"></div>
<div id="input-line">
<span id="prompt">> </span>
<input type="text" id="input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus />
</div>
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js"></script>
<script type="text/javascript">
(function(){
emailjs.init({
publicKey: "6FrCgytWxzHf6TPjc",
});
})();
</script>
<script src="therminal/TherminalMain.js"></script>
<script src="therminal/TherminalCommands.js"></script>
<script src="therminal/TherminalCommandHandler.js"></script>
</body>
</html>