-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckout.js
72 lines (47 loc) · 1.91 KB
/
checkout.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
70
71
72
var x=JSON.parse(localStorage.getItem("userdatabase"))
document.querySelector("#fname").value=x[0].namef
document.querySelector("#lname").value=x[0].namel
document.querySelector("#eml").value=x[0].email
// var firstname=document.querySelector('#fname').value
// var lastname=document.querySelector('#lname').value
// var em=document.querySelector('#eml').value
// var password=document.querySelector('#pass').value
// if(firstname==''||lastname==''||em==''||password=='')
// { alert('Please enter all details!')
// }
// var userdata={
// namef:firstname,
// namel:lastname,
// email:em,
// pass:password,
// };
document.querySelector("#payment").addEventListener("click",function(){
window.location.href="payment.html"
})
document.querySelector("#cod").addEventListener("click",function(){
window.location.href="thankyou.html"
})
document.querySelector("#shop").addEventListener("click",function(){
window.location.href="productpage.html"
})
document.querySelector("#boatlogo").addEventListener('click',function(){
window.location.href="home.html"
})
document.querySelector(".gg-shopping-cart").addEventListener("click",function(){
window.location.href="cart.html"
})
document.querySelector(".gg-user").addEventListener("click",function(){
window.location.href="signin.html"
})
document.querySelector("#daily").addEventListener("click",function(){
window.location.href="dailydeals.html"
})
document.querySelector("#Wiredpage").addEventListener("click",function(){
window.location.href="wired.html"
})
document.querySelector("#Wirelesspage").addEventListener("click",function(){
window.location.href="wireless.html"
})
document.querySelector("#Watchespage").addEventListener("click",function(){
window.location.href="watches.html"
})