-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtryforfree.html
52 lines (50 loc) · 2.17 KB
/
tryforfree.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TrackingTime</title>
<link rel="icon" type="image/x-icon" href="https://trackingtime.co/wp-content/themes/trackingtime-v5/favicon.ico">
<link rel="stylesheet" href="./styles/tryforfree.css">
</head>
<body>
<div id="main">
<div id="bg">
<img src="https://pro.trackingtime.co/img/ui-login-background.svg" alt="">
</div>
<div id="form">
<form action="">
<img src="https://trackingtime.co/wp-content/themes/trackingtime-v5/img/layout/header/logo.svg" alt=""><br>
<button><img src="https://img.icons8.com/color/48/000000/google-logo.png"/>Sign up with Google</button>
<button><img src="https://img.icons8.com/color/48/000000/microsoft.png"/>Sign up with Microsoft</button>
<button><img src="https://img.icons8.com/ios-glyphs/30/000000/mac-os.png"/>Sign up with Apple</button>
<p>----Sign up with your email----</p>
<input type="email" placeholder="Email" id="email"><br>
<input type="password" placeholder="Password" id="password"><br>
<input type="checkbox" id="box" value="policy">
<label for="">I agree with the <p>Terms of service & Privacy Policy</p></label><br>
<input type="submit" value="SIGN UP" id="sub"><br>
<a href="./login.html">Back to login</a>
</form>
</div>
</div>
</body>
</html>
<script>
let form=document.querySelector("form")
form.addEventListener("submit",addData)
function addData(event){
event.preventDefault()
let email=form.email.value
let password=form.password.value
if(email=="" || password=="" || password.length<8){
alert("Please fill all fields to Sign Up, Min. password length 8 characters")
}else{
// alert("login successful")
localStorage.setItem("email",email)
localStorage.setItem("password",password)
window.location.href="./login.html"
}
}
</script>