-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
49 lines (45 loc) · 1.53 KB
/
cart.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>addToCart</title>
<link rel="stylesheet" href="./styles/index.css" />
<link rel="stylesheet" href="./styles/navbar.css">
<link rel="stylesheet" href="./styles/cart.css">
<link
rel="icon"
href="./images/0_overstock.com_logo-thumb.jpg"
sizes="16x16"
type="image/png"
/>
</head>
<body>
<div id="navbar"></div>
<h2 style="font-weight: 400;margin-left: 65px;">Shopping Cart</h2>
<div id="container">
<div id="left"></div>
<div id="right"></div>
</div>
<div id="footer"></div>
<div id="end"></div>
</body>
</html>
<script src="./scripts/cart.js"></script>
<script type="module">
import { footer, end } from "./components/footer.js";
import navbar from './components/navbar.js'
let navbar_div = document.getElementById("navbar");
navbar_div.innerHTML = navbar();
let sectionDiv = document.querySelector(".section-div > div");
sectionDiv.addEventListener("mouseover", function () {
let dropDownContainer = document.querySelector(".dropdown-content-part");
dropDownContainer.style.display = "flex";
dropDownContainer.addEventListener("mouseout", function () {
dropDownContainer.style.display = "none";
});
});
document.querySelector("#footer").innerHTML = footer();
document.querySelector("#end").innerHTML = end();
</script>