-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (162 loc) · 7.57 KB
/
index.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<title>Store Heading</title>
<!--<link href="bootstrap-5.3.2-dist/css/bootstrap.min.css" rel="stylesheet" >-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css">
</head>
<h1 class="text-center" style="color: white;">Store heading</h1>
<body class="bg-black" style="font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif">
<div class="container">
<div class="text-center">
<br>
<h2>Smart modules</h2>
<div class="container d-flex flex-row-reverse mx-5s">
<button id='cart-button' class="btn btn-primary rounded-circle" data-bs-toggle="offcanvas" data-bs-target="#offcanvas"><i id='cart-button-i' class="bi bi-cart"></i></button>
</div>
</div>
</div>
<!--PRODUCTS-->
<div class="container text-center w-50">
<div id="parent-container" class="row p-2 g-2">
</div>
</div>
<!-- SECOND SECTION
<div class="container text-center w-50">
<div class="row p-5 g-2">
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<img src="img/1.png">
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#modal" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Add to cart</a>
</div>
</div>
</div>
</div>
</div>
-->
<!-- MODAL -->
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id='cart-modal' class="modal-body">
<form id="cart-form" class="d-flex">
<div class="mx-2">
<label>Region</label>
<select id='region' class="form-select" aria-label="Default select example ">
<option disabled value="" selected></option>
<option value="GLOBAL">Global</option>
<option value="EU">Europe</option>
<option value="SAM">South America</option>
<option value="NAM">North America</option>
<option value="APAC">Asia Pacific & Japan</option>
</select>
</div>
<div class="mx-2" >
<label>E-sim</label>
<select id='esim' class="form-select" aria-label="Default select example">
<option disabled value="" selected ></option>
<option value="true">True</option>
<option value="false">False</option>
</select>
</div>
<div class="mx-2">
<label>Form Factor</label>
<select id='form-factor' class="form-select" aria-label="Default select example">
<option disabled value="" selected></option>
<option value="M.2">M.2</option>
<option value="MiniPCI">MiniPCI</option>
<option value="LGA">LGA</option>
</select>
</div>
</form>
</div>
<table>
<thead>
<tr>
<th>Product Name</th>
<th>Region of Testing</th>
<th>e-sim</th>
<th>form factor</th>
<th>Qty</th>
</tr>
</thead>
<tbody id="product-table">
</tbody>
</table>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" onClick="loadJSON()" class="btn btn-primary">Add to cart</button>
</div>
</div>
</div>
</div>
<!--OFF CANVAS - CART-->
<div class="offcanvas offcanvas-end close" tabindex="-1" id="offcanvas" aria-labelledby="offcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasLabel">Offcanvas</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
Content for the offcanvas goes here. You can place just about any Bootstrap component or custom elements here.
</div>
</div>
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
<script src="main.js"></script>
<!--<script src="bootstrap-5.3.2-dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>-->
</body>
</html>