-
Notifications
You must be signed in to change notification settings - Fork 0
/
components.html
128 lines (121 loc) · 6.17 KB
/
components.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Components</title>
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./fontawesome-free-5.13.0-web/css/all.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" />
<link rel="stylesheet" href="css/elementStyle.css" />
<link rel="stylesheet" href="css/interactionComponents.css" />
<script src="client/jquery-3.5.1.min.js"></script>
<script src="client/partChoosingComponents.js"></script>
<script src="client/logic.js"></script>
</head>
<body>
<div class="content">
<div id="filters" class="border rounded text-dark">
<h5 class="mt-3 text-center">Filters</h5>
<hr />
<div class="priceRange px-4">
<div class="mb-1 font-weight-bold">Lowest price:
<span id="minPriceView">50$</span>
</div>
$0
<span class="float-right">$1000</span>
<input id="minPrice" type="range" min="1" max="1000" value="50" class="slider" onchange="filterPrice(event)" />
<div class="mt-3 mb-1 font-weight-bold"> Highest price:
<span id="maxPriceView">$1000</span>
</div>
$0
<span class="float-right">$1000</span>
<input id="maxPrice" type="range" min="1" max="1000" value="1000" class="slider" onchange="filterPrice(event)" />
</div>
<hr />
<div class="px-4 mb-3">
<div class="ml-1 mb-1 font-weight-bold">Type</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="all" onchange="filterIt(event)" checked>
<label class="custom-control-label" for="all">All</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="motherboard" onchange="filterIt(event)">
<label class="custom-control-label" for="motherboard">Mother Board</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="cpu" onchange="filterIt(event)">
<label class="custom-control-label" for="cpu">CPU</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="gpu" onchange="filterIt(event)">
<label class="custom-control-label" for="gpu">GPU</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="ram" onchange="filterIt(event)">
<label class="custom-control-label" for="ram">RAM</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="HDD" onchange="filterIt(event)">
<label class="custom-control-label" for="HDD">Storage</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="supply" onchange="filterIt(event)">
<label class="custom-control-label" for="supply">Power supply</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="chassis" onchange="filterIt(event)">
<label class="custom-control-label" for="chassis">Case</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="fan" onchange="filterIt(event)">
<label class="custom-control-label" for="fan">CPU Cooler</label>
</div>
<div class="custom-control custom-checkbox" style="height: 200px !important">
</div>
</div>
</div>
<div>
<div class="row mb-2 mx-2 text-secondary">
<div class="col-1">
<span class="border-bottom border-secondary">Image</span>
</div>
<div class="col-4">
<span class="border-bottom border-secondary">Component</span>
</div>
<div class="col-3">
<span class="border-bottom border-secondary">Spec</span>
</div>
<div class="col-2">
<span class="border-bottom border-secondary">Spec</span>
</div>
<div class="col-1">
<span class="border-bottom border-secondary">Price</span>
</div>
</div>
<div id="components" class="border-bottom">
<div class="element">
<img class="image" src="images/mb.jpg" alt="productImage" />
<div class="name">Data</div>
<div class="data1">Data</div>
<div class="data2">Data</div>
<div class="price">100 US$</div>
<button class="addButton" onclick="addComponent()">Add</button>
</div>
<div class="element incompatible">
<img class="image" src="images/mb.jpg" alt="productImage" />
<div class="name">Data</div>
<div class="data1">Data</div>
<div class="data2">Data</div>
<div class="price">100 US$</div>
<button class="addButton">Add</button>
</div>
<div class="element incompatible-message">
Incompatible with cpu <i class="fas fa-exclamation-circle"></i>
</div>
</div>
</div>
</div>
</body>
<script src="client/header.js"></script>
<script src="client/footer.js"></script>
</html>