-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.html
More file actions
52 lines (49 loc) · 1.78 KB
/
index2.html
File metadata and controls
52 lines (49 loc) · 1.78 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Registration Page</title>
<link rel="stylesheet" type="text/css" href="style 2.css">
<link rel="icon" type="text/css" href="favicon-32x32.png">
</head>
<body>
<main>
<div class="left_side">
<h1>Learn to code by watching others</h1>
<h5>See how experienced developers solve problems in real-time.
Watching scripted tutorials is great but understanding how developers
think is invaluable.</h5>
</div>
<div class="right_side">
<button type="submit" id="this">
Try it free 7 days<span> then $20/mo. thereafter</span>
</button>
<div class="form">
<form action="">
<div class="long" data-error="First Name cannot be empty">
<i href="icon-error.svg"></i>
<input type="text" placeholder="First Name" id="fname" class="input">
</div>
<div class="long" data-error="Last Name cannot be empty">
<input type="text" placeholder="Last Name" id="lname" class="input">
</div>
<div class="long" data-error="Looks like this is not an email">
<input type="email" placeholder="Email Address" id="email" class="input">
</div>
<div class="long" data-error="Password cannot be empty">
<input type="password" name="" placeholder="Password" id="pword" class="input">
</div>
<button type="submit" value="submit" >CLAIM YOUR FREE TRIAL</button>
<h6>By clicking the button, you are agreeing to our <span>TERMS AND SERVICES</span></h6>
</form>
</div>
</div>
</main>
<script>
document.querySelectorAll('.long[data-error] .input').forEach(inpEl => {
inpEl.addEventListener('input', () => inpEl.parentElement.removeAttribute('data-error'));
});
</script>
</body>
</html>