-
Notifications
You must be signed in to change notification settings - Fork 0
/
comparison.html
134 lines (115 loc) · 4.29 KB
/
comparison.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="shortcut icon" href="img/fav.png" type="image/x-icon">
<title>Richfield chairs | comparison our brands</title>
<link rel="stylesheet" href="css/slicing.css">
<style>
::selection {
background-color: #c78632;
color: white;
}
body {
background-color: var(--primary-color);
display: flex;
justify-content: center;
align-items: center;
width: 100%;
flex-direction: column;
}
h1,
th {
color: var(--four-color);
text-transform: uppercase;
}
td {
color: gray;
}
td>img {
width: 100%;
height: 250px;
object-fit: contain;
border-radius: 3px;
}
.navbar{
padding-top: 0px;
padding-bottom: 0px;
}
ul {
padding-left: 0;
margin: 0;
}
</style>
</head>
<body>
<!-- navbar -->
<div class="navbar">
</div>
<!-- navbar end -->
<h1 class="display-5 my-5 text-center">Compare Page in JS</h1>
<div class="container mt-5">
<div class="col-md-9 mx-auto">
<table class="table">
<tr>
<th>Select Product</th>
<th width="300px">
<select class="form-control" id="select1" onchange="item1(this.value)">
<option value="0">-- Select Anyone --</option>
</select>
</th>
<th width="300px">
<select class="form-control" id="select2" onchange="item2(this.value)">
<option value="0">-- Select Anyone --</option>
</select>
</th>
</tr>
<tr>
<th>Product Image</th>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/65/No-Image-Placeholder.svg/1665px-No-Image-Placeholder.svg.png"
id="img1" alt=" ">
</td>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/65/No-Image-Placeholder.svg/1665px-No-Image-Placeholder.svg.png"
id="img2" alt=" ">
</td>
</tr>
<tr>
<th>Product Name</th>
<td id="name1">N/A</td>
<td id="name2">N/A</td>
</tr>
<tr>
<th>Product Price</th>
<td id="price1">N/A</td>
<td id="price2">N/A</td>
</tr>
<tr>
<th>Product Description</th>
<td id="desc1">N/A</td>
<td id="desc2">N/A</td>
</tr>
<tr>
<th>Product Brand</th>
<td id="brand1">N/A</td>
<td id="brand2">N/A</td>
</tr>
</table>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js "></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/js/bootstrap.min.js "></script>
</body>
</html>
<script src="js/data.js"></script>
<script src="js/main.js"></script>
<script src="js/slicing.js"></script>