-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (116 loc) · 4.74 KB
/
Copy pathindex.html
File metadata and controls
119 lines (116 loc) · 4.74 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mister CTF</title>
<link rel="stylesheet" href="./assets/style.css">
<link rel="icon" href="assets/Mr.CTF.png">
</head>
<body style="background-color: #000000;">
<img src="assets/Mr.CTF.png" class="bg">
<section class="nav">
</section>
<section class="actions center">
<div class="title center" style="margin-top: 410px;">
<h1>
Mister - CTF!!
</h1>
<p class="subtitle">
Capture the Flag🚩 With MisterO
</p>
</div>
<div class="play" onclick="play()">
<h3 class="action center">
Play
</h3>
</div>
<div class="tutorial" id="tutorial-btn">
<h3 class="action center" onclick="tutorial()">
Tutorial
</h3>
</div>
<div class="contact" id="contact-btn" style="color: white;">
<h3 class="action center" onclick="contact()">
Contact
</h3>
</div>
</section>
<!-- The Modal -->
<div id="tutorial-content" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="close-tutorial">×</span>
<p class="modal-title">Tutorial for Mister - CTF</p>
<hr>
<div class="center">
<iframe id="ytplayer" width="560" height="315" src="https://www.youtube.com/embed/IxLzldAANNg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
<br>
<p><span class="label">Flag Format : </span><span class="code">MROCTF{**********}</span></p>
</div>
</div>
<!-- The Modal -->
<div id="contact-content" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="close-contact">×</span>
<p class="modal-title">Contacts</p>
<hr>
<p style="font-size: 50px; margin: 0px;">
<img src="https://www.svgrepo.com/show/506668/instagram.svg" style="height: 50px; vertical-align: middle; margin: 20px 0px;"> : <a href="https://www.instagram.com/mister_ctf.challenge/" class="contact">mister_ctf.challenge</a>
<br>
<img src="https://cdn-icons-png.flaticon.com/512/3670/3670157.png" style="height: 50px; vertical-align: middle; margin: 20px 0px;"> : <a href="https://discord.gg/rUkRgCjq4B" class="contact">Mr.O CTF's Server</a>
<br>
<img src="https://cdn-icons-png.flaticon.com/512/25/25231.png" style="height: 50px; vertical-align: middle; margin: 20px 0px;"> : <a href="https://github.com/opsifiz/" class="contact">opsifiz</a>
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/LinkedIn_icon.svg/2048px-LinkedIn_icon.svg.png" style="height: 50px; vertical-align: middle; margin: 20px 0px;"> : <a href="https://www.linkedin.com/in/opsifiz/" class="contact">Pachara Thammasat</a>
</p>
</div>
</div>
</body>
<script>
var modal1 = document.getElementById("tutorial-content");
var btn1 = document.getElementById("tutorial-btn");
var span1 = document.getElementsByClassName("close")[0];
btn1.onclick = function() {
modal1.style.display = "block";
}
span1.onclick = function() {
modal1.style.display = "none";
const iframe = document.getElementById('ytplayer');
const currentSrc = iframe.src;
iframe.src = currentSrc;
}
var span2 = document.getElementsByClassName("close")[1];
var modal2 = document.getElementById("contact-content");
var btn2 = document.getElementById("contact-btn");
btn2.onclick = function() {
modal2.style.display = "block";
}
span2.onclick = function() {
modal2.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal1) {
modal1.style.display = "none";
const iframe = document.getElementById('ytplayer');
const currentSrc = iframe.src;
iframe.src = currentSrc;
}
if (event.target == modal2) {
modal2.style.display = "none";
}
}
function play(){
console.log("Play!!");
window.location.href = "play.html"
}
function tutorial(){
console.log("tutorial!!");
}
function contact(){
console.log("contact!!");
}
</script>
</html>