-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (147 loc) · 7.92 KB
/
Copy pathindex.html
File metadata and controls
256 lines (147 loc) · 7.92 KB
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Сайт доставки авто з США</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<div class="logo"> <img id="logotype" src="image.png" alt="Картинка головне меню"></img>
</div>
<a href="home.html" id="head-text">Авто під замовлення</a>
<a href="#offers" id="head-text">Список пропозицій</a>
<a href="#reviews" id="head-text">Відгуки</a>
<a href="#blog" id="head-text">Блог</a>
<a href="#about" id="head-text" >Про нас</a>
<div class="contacts">
<div class="contact-logo">
<img height="30px" width="30px" src="viber.png" alt="viber"></img>
<img height="30px" width="30px" src="telegram.png" alt="Картинка головне меню"></img>
</div>
<ul>
<li>+380979967358</li>
<li>+380672754560</li>
</ul>
</div>
</header>
<main>
<h1>Авто твоєї мрії вже їде !</h1>
<div class="benefits">
<div class="benText"> <ul>
<li>Безпечна доставка</li>
<li>Вигідна ціна</li>
<li>Гарантія технічної справності</li>
<li>Гарантія юридичної чистоти</li>
</ul></div>
<img class="fit-picture" height="250px" width="350px" src="title.png" width="400"
height="250" alt="Картинка головне меню"></img>
</div>
<img class="button" height="70px" width="230px" src="btn.PNG" alt="Картинка головне меню"></img>
<div class="orderTop">
<h1 class="top">Топ пропозиції</h1>
<img class="toggleImage" height="70px" width="80px" src="./down.png" id="toggleButton"></img>
</div>
<div class="container">
<div class="offers">
<div class="audi-main car" style="border: solid;">
<img id="audi_png" src="./audi.PNG" width="300"
height="180" alt="Audi A4"></img>
<div class="text-audi">
<h2>Audi A4</h2>
<h3>7500 $</h3>
<h4>205 000 km 2.0 </h4>
<h4> 2016 Дизель </h4>
</div>
</div>
<div class="tesla-main car">
<img id="audi_png" src="tesla.PNG" width="300"
height="180" alt="Audi A4"></img>
<div class="text-tesla"> <h2>Tesla model 3</h2>
<h3>14 000 $</h3>
<h4>105 000 km Електро</h4>
<h4>2019 </h4>
</div>
</div>
<div class="toyota-main car">
<img id="prius_png" src="prius.PNG" width="300"
height="180" style="margin: 0%;" alt="Toyota Prius"></img>
<div class="text-toyota"><h2>Toyota Prius</h2>
<h3>11 000 $</h3>
<h4>45 000 km 1.8 </h4>
<h4> 2020 Бензин </h4>
</div>
</div>
<div class="passat-main car">
<img id="passat_png" src="passat.PNG" width="300"
height="180" alt="Volkswagen Passat"></img>
<div class="text-passat">
<h2>Volkswagen Passat3</h2>
<h3>14 000 $</h3>
<h4>130 000 km 2.0</h4>
<h4> 2018 Бензин</h4>
</div>
</div>
<div class="ford-main car" >
<img id="ford_png" src="ford.jpg" width="300"
height="180" alt="Ford Fusion"></img>
<div class="text-ford">
<h2>Ford Fuison</h2>
<h3>10 000 $</h3>
<h4>75 000 km 1.6</h4>
<h4> 2017 Бензин</h4>
</div>
</div>
</div>
</div>
</main>
<script> document.querySelectorAll(".audi-main, .tesla-main, .passat-main, .toyota-main, .ford-main").forEach(function(element) {
element.addEventListener("click", function() {
window.location.href = "https://stackoverflow.com/questions/2020496/how-to-set-a-border-for-an-html-div-tag";
});
});
document.addEventListener("DOMContentLoaded", function() {
const cars = document.querySelectorAll(".car");
cars.forEach(function(car) {
car.classList.add("show"); // Додаємо клас, щоб машини з'явилися при завантаженні
});
});
const cars = document.querySelectorAll(".car");
const cars2 = document.querySelectorAll(".test");
document.addEventListener("DOMContentLoaded", function() {
const toggleButton = document.getElementById("toggleButton");
toggleButton.addEventListener("click", function() {
cars.forEach(function(car) {
car.classList.toggle("show"); // Перемикаємо клас, який відповідає за відображення блоку
});
// Перевертаємо зображення при кожному кліку
toggleButton.classList.toggle("rotate");
});
});
</script>
<footer>
<div class="contacts">
<p>Контакти</p>
<ul>
<li>+380979967358</li>
<li>+380672754560</li>
<img class="contact" height="40px" width="40px" src="viber.png" alt="viber"></img>
<img class="contact" height="40px" width="40px" src="telegram.png" alt="Картинка головне меню"></img>
</ul>
</div>
<div class="social">
<p>Ми в соціальних мережах</p>
<img src="instagram.png" height="40px" width="40px" alt="viber"></img>
<img src="youtube (1).png" height="40px" width="40px" alt="Картинка головне меню"></img>
<img src="facebook.png" height="40px" width="40px" alt="Картинка головне меню"></img>
</div>
<div class="other">
<a id="footer-items" href="https://stackoverflow.com/questions/2020496/how-to-set-a-border-for-an-html-div-tag"> Стати партнером</a>
<a id="footer-items" href="https://stackoverflow.com/questions/2020496/how-to-set-a-border-for-an-html-div-tag"> Блог </a>
<a id="footer-items" href="https://stackoverflow.com/questions/2020496/how-to-set-a-border-for-an-html-div-tag"> Про нас</a>
</div>
<img id="photo-footer" src="image.png" alt="Картинка головне меню"></img>
</footer>
</body>
</html>