-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
57 lines (32 loc) · 790 Bytes
/
script.js
File metadata and controls
57 lines (32 loc) · 790 Bytes
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
// one view section
var mainImg = document.getElementById("mainImg");
var smallImg = document.getElementsByClassName("small-img");
smallImg[0].onclick = function () {
mainImg.src = smallImg[0].src;
}
smallImg[1].onclick = function () {
mainImg.src = smallImg[1].src;
}
smallImg[2].onclick = function () {
mainImg.src = smallImg[2].src;
}
// search
function search() {
window.location = "products.html";
}
// admin panel login
function adminPanel() {
window.location = "adminPanel.html";
}
// manage products
function manageProducts() {
window.location = "manageProducts.html";
}
// my account login
function myAccount() {
window.location = "myAccount.html";
}
// watchlist
function watchlist() {
window.location = "watchlist.html";
}