-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (48 loc) · 1.9 KB
/
index.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">
<title>simon memory game</title>
<link rel="stylesheet" href="front.css">
</head>
<body>
<h2>simon memory game</h2>
<i class="fa-brands fa-github"></i>
<div class="main">
<div class="container">
<div class="inner-one">
<div class="material">
<form id="myForm" action="">
<label for="name" class="name-lb">NAME</label>
<input type="text" autocomplete="off" class="input" placeholder="Username" id="name" name="myInput" required>
<button class="register">Register</button>
</form>
</div>
</div>
<div class="inner-two"></div>
</div>
</div>
<div class="line">
</div>
<span class="moder"></span>
<span class="moder-two"></span>
<div class="main-icon-container">
<span class="icons-container">
<a href="https://github.com/isimarjitsingh"><img src="src/github.icon.webp" alt="github profile" class="img-icons"></a>
</span>
<span class="icons-container">
<a href="https://www.linkedin.com/in/simarjit-singh-875235313/"><img src="src/main-linkedin.png" alt="linkedin profile" class="img-icons"></a>
</span>
</div>
<script>
// for storing the input value so that simon.js access it
document.getElementById("myForm").addEventListener("submit", function(event) {
event.preventDefault();
const inputValue = document.getElementById("name").value.trim();
console.log(inputValue)// for check the value of inputvalue
window.location.href = "simon.html?inputValue=" + encodeURIComponent(inputValue);
});
</script>
</body>
</html>