-
Notifications
You must be signed in to change notification settings - Fork 0
/
charging.html
155 lines (106 loc) · 4.92 KB
/
charging.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
<!DOCTYPE html>
<html lang="en">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="imgs\T.png">
<link rel="stylesheet" type="text/css" href="Css\charging.css">
<title>Tesla | Charging</title>
</head>
<body>
<button id="carLicensePopupBtn" class="car-license-popup-button">License</button>
<div id="carLicensePopupOverlay" class="car-license-popup-overlay">
<div class="car-license-popup-content">
<img src="imgs\3D Black.png" alt="Company Logo" class="car-license-popup-logo">
<h2>All rights reserved.</h2><br>
<p>This software is licensed under strict terms. Redistribution and use in source and binary forms, with or without modification, are strictly prohibited without express written permission from Chaudhary Abdul Rafay.</p><br>
<p>© 2024 AbdulRafay Chaudhry. </p>
<button id="carLicenseCloseBtn" class="car-license-close-button">Close</button>
</div>
</div>
<!---------------------------------------------------------------------SECTION-ONE---------------------------------------------------------------------------------->
<section class="one">
<header>
<nav>
<div class="nav-container">
<img src="Icon/T Grey.png" id="logo">
<button class="menu-toggle" id="menu-toggle">
<span class="material-icons">menu</span>
</button>
<ul id="nav-menu">
<li><a href="Product.html">Vehicle</a></li>
<li><a href="Energy.html">Energy</a></li>
<li><a href="charging.html">Charging</a></li>
<li><a href="about.html">Discover</a></li>
<li><a href="Product.html">Shop</a></li>
</ul>
<div class="ico">
<img src="Icon/HW.png" alt="" id="icon1">
<img src="Icon/WW.png" alt="" id="icon2">
<img src="Icon/AW.png" alt="" id="icon3">
</div>
</div>
</nav>
</header>
<video autoplay loop muted playsinline class="bg-v "><source src="imgs\powerwall.avif" type="video/mp4"></video>
<div class="portion">
<div class="home">
<p id="Y">Powerwall</p>
<p id="L">Whole-Home Backup, 24/7</p>
</div>
<div class="bo">
<a href="Energy.html"><button type="button" id="shop">Shop Availble</button></a>
<a href=""><button type="button" id="demo">Demo Drive</button></a>
</div>
<div class="pl">
<p id="lp">*Price before incentives and savings is $42,990, excluding taxes and fees. Subject to change.</p><br>
<a href=""><p id="ll"><u>Learn about est. gas savings.</u></p></a>
</div>
</div>
</section>
<!---------------------------------------------------------------------SECTION-TWO---------------------------------------------------------------------------------->
<!---------------------------------------------------------------------SECTION-THREE---------------------------------------------------------------------------------->
<!--------------------------------------------------------------------Section-FOUR------------------------------------------------------------------------------------->
<script>
let lastScrollTop = 0;
let isScrolling;
const header = document.querySelector('header');
const headerHeight = header.offsetHeight;
window.addEventListener('scroll', function() {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop > lastScrollTop) {
header.style.top = `-${headerHeight}px`;
header.classList.remove('scrolling', 'static');
} else {
header.style.top = '0';
header.classList.add('scrolling');
header.classList.remove('static');
}
lastScrollTop = Math.max(scrollTop, 0);
clearTimeout(isScrolling);
isScrolling = setTimeout(function() {
header.classList.remove('scrolling');
header.classList.add('static');
}, 200);
});
</script>
<script>
document.getElementById('menu-toggle').addEventListener('click', function() {
document.getElementById('nav-menu').classList.toggle('active');
});
</script>
<script src="Javascript\effect.js"></script>
<footer>
<center>
<div class="footer-container">
<div class="footer-section">
<h4>About Us</h4>
<p>© 2024 Tesla, Inc. All rights reserved.</p>
</div>
</center>
</footer>
</body>
</html>