-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (134 loc) · 5.83 KB
/
index.html
File metadata and controls
153 lines (134 loc) · 5.83 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Lethal Company Registration</title>
<meta name="description" content="Lethal Company Form">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="LCCon.png">
<link rel="stylesheet" href="company.css">
</head>
<body>
<header>
<audio class="yipeee"><source src="yipeee.mp3"></audio>
<img onclick="yipeee()" class="gif" src="HoardingBug.gif">
<img class="title" src="LCTitle.jpeg">
<img onclick="yipeee()" class="gif" src="HoardingBug.gif">
</header>
<div class="progress">
<div class="pro"><img class="flash" src="incomfl.png"></div>
<div class="pro"><img class="flash" src="incomfl.png"></div>
<div class="pro"><img class="flash" src="incomfl.png"></div>
<div class="pro"><img class="flash" src="LCCon.png"></div>
</div>
<div class="box">
<div class="formbox">
<div class="Text">
<h2>Registrant Details</h2>
</div>
<div class="form">
<form>
<input type="text" autocomplete="off" name="firstname"
placeholder="First Name">
<input type="text" autocomplete="off" name="middlename"
placeholder="Middle Name">
<input type="text" autocomplete="off" name="lastname"
placeholder="Last Name">
<button onclick="nextform()" type="button">Next</button>
</form>
</div>
</div>
<div style="display: none;" class="formbox">
<div class="Text">
<h2>Registrant Mail</h2>
</div>
<div class="form">
<form>
<input type="email" autocomplete="off" name="email"
placeholder="Email">
<input type="password" autocomplete="off" name="mailpassword"
placeholder="Email Password">
<input type="email" autocomplete="off" name="backupmail"
placeholder="Backup Email">
<button onclick="nextform()" type="button">Next</button>
<button onclick="prevform()" type="button">Back</button>
</form>
</div>
</div>
<div style="display: none;" class="formbox">
<div class="Text">
<h2>Registrant Address</h2>
</div>
<div class="form">
<form>
<input type="text" autocomplete="off" name="moon"
placeholder="Moon">
<input type="text" autocomplete="off" name="nation"
placeholder="Nation">
<input type="text" autocomplete="off" name="city"
placeholder="City">
<button onclick="nextform()" type="button">Next</button>
<button onclick="prevform()" type="button">Back</button>
</form>
</div>
</div>
<div style="display: none;" class="formbox">
<div class="Text">
<h2>Registrant Confirmation</h2>
</div>
<div class="form">
<form>
<input type="text" autocomplete="off" name="username"
placeholder="Age">
<input type="text" autocomplete="off" name="email"
placeholder="Company ID">
<input type="text" autocomplete="off" name="yesorno"
placeholder="Do you love The Company? Yes/No">
<a href="https://store.steampowered.com/app/1966720/Lethal_Company/"><button type="button">Aboard</button></a>
<button onclick="prevform()" type="button">Back</button>
</form>
</div>
</div>
</div>
<script>
function yipeee() {
let yip = document.querySelector('.yipeee');
yip.currentTime = 0;
yip.volume = 0.1;
yip.play();
}
let forms = document.querySelectorAll('.formbox');
let currentIndex = 0;
let pros = document.querySelectorAll('.pro');
function nextform(){
let values = forms[currentIndex].querySelectorAll('input');
let profl = pros[currentIndex].querySelector('img');
let verify = true;
values.forEach(input => {
if(!input.value){
verify = false;
input.classList.add('incom');
}
else{
input.classList.remove('incom');
}
});
if(verify && currentIndex < forms.length - 1){
forms[currentIndex].style.display = "none";
profl.src = 'comfl.png';
currentIndex++;
forms[currentIndex].style.display = "flex";
}
}
function prevform() {
let values = forms[currentIndex].querySelectorAll('input');
if(currentIndex > 0){
forms[currentIndex].style.display = "none";
currentIndex--;
forms[currentIndex].style.display = "flex";
}
}
</script>
</body>
</html>