-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
33 lines (31 loc) · 940 Bytes
/
script.js
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
const tabs = document.querySelectorAll('[data-tab-target]')
const tabContents = document.querySelectorAll('[data-tab-content]')
tabs.forEach(tab => {
tab.addEventListener('click', () => {
const target = document.querySelector(tab.dataset.tabTarget)
tabContents.forEach(tabContent => {
tabContent.classList.remove('active')
})
tabs.forEach(tab => {
tab.classList.remove('active')
})
tab.classList.add('active')
target.classList.add('active')
})
})
function checkPswd() {
var confirmPassword = "yotsuba nakano";
var password = document.getElementById("pswd").value;
if (password == confirmPassword) {
window.location="hidden.html";
}
else{
alert("Password is Incorrect");
}
}
function HomePage() {
window.location="index.html";
}
function GotoForms() {
window.location="Evan_Forms.html";
}