-
Notifications
You must be signed in to change notification settings - Fork 0
/
E1.html
173 lines (139 loc) · 5.48 KB
/
E1.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
<!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\Energy.css">
<title>Tesla | Wire</title>
</head>
<body>
<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\HB.png" alt="" id="icon1">
<img src="Icon\WB.png" alt="" id="icon2">
<img src="Icon\AB.png" alt="" id="icon3">
</div>
</div>
</nav>
</header>
<div class="all">
<div class="section-1">
<div class="imgsc">
<img src="imgs\enerygy\wire.jpg" alt="">
</div>
</div>
<section class="car-details">
<h2>Wire Pro</h2>
<div class="specs">
<div>
<strong>341</strong> mi<br>
Range (EPA est.)
</div>
<div>
<strong>125</strong> mph<br>
Top Speed
</div>
<div>
<strong>4.2</strong> sec<br>
0-60 mph
</div>
</div>
<div class="purchase-options">
<div class="active">Cash</div>
<div>Lease</div>
<div>Finance</div>
</div>
<div class="toggle-section">
Include $7,500 Federal Tax Credit and est. 5-year gas savings of $5,000.
<label class="toggle-switch">
<input type="checkbox" checked>
<span class="slider"></span>
</label>
</div>
<div class="price-options">
<div>Rear-Wheel Drive - $33,990</div>
<div class="selected">Long Range All-Wheel Drive - $34,990</div>
<div>Performance All-Wheel Drive - $42,490</div>
</div>
<a href="checkout.html"><button class="feature-details">Purchase</button></a>
</section>
</div>
<script>
document.querySelectorAll('.purchase-options div').forEach(option => {
option.addEventListener('click', function() {
document.querySelectorAll('.purchase-options div').forEach(opt => opt.classList.remove('active'));
this.classList.add('active');
});
});
document.querySelectorAll('.price-options div').forEach(price => {
price.addEventListener('click', function() {
document.querySelectorAll('.price-options div').forEach(pr => pr.classList.remove('selected'));
this.classList.add('selected');
});
});
</script>
<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);
});
document.getElementById('menu-toggle').addEventListener('click', function() {
document.getElementById('nav-menu').classList.toggle('active');
});
</script>
<script src="Javascript\E.js"></script>
<script src="Javascript\effect.js"></script>
<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>
<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>