-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.js
69 lines (50 loc) · 1.96 KB
/
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
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
window.addEventListener("load", () => {
document.querySelector("#preloader").style.cssText = "display:none;";
});
document.querySelectorAll("#loginbutton, #logintext").forEach(item => {
item.addEventListener("click", () => {
document.querySelector("#login").style.cssText = "display:block;";
document.querySelector("#signup").style.cssText = "display:none;";
});
});
document.querySelectorAll("#signupbutton, #registertext").forEach(item => {
item.addEventListener("click", () => {
document.querySelector("#signup").style.cssText = "display:block;";
document.querySelector("#login").style.cssText = "display:none;";
});
});
document.querySelectorAll(".close-popup").forEach(button => {
button.addEventListener("click", () => {
document.querySelectorAll(".popup").forEach(popup => {
popup.style.cssText = "display:none;";
});
});
});
document.querySelector("#next-button-1").addEventListener("click", () => {
document.querySelector("#form-1").style.cssText = "visibility:.1;";
});
document.querySelector("#next-button-2").addEventListener("click", () => {
});
document.querySelector("#back-button-1").addEventListener("click", () => {
});
document.querySelector("#back-button-2").addEventListener("click", () => {
});
// Add an event listener to each skills-box element
var skillsBoxes = document.getElementsByClassName("skills-box");
for (var i = 0; i < skillsBoxes.length; i++) {
skillsBoxes[i].addEventListener("click", function () {
// Toggle the active class on the clicked skills-box
this.classList.toggle("active");
});
}
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});