-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticles.html
253 lines (201 loc) · 10.4 KB
/
articles.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
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
<!DOCTYPE html>
<html lang="ru">
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta charset="UTF-8">
<title>Статьи - TechNews</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>(function($) {
$(function() {
$('#up').click(function() {
$('html, body').animate({scrollTop: 0},500);
return false;
})
})
})(jQuery)</script>
<script>
(function($) {
$(function() {
$(".change").on("click", function() {
if (!$(".content").attr("dark")) {
$(".content").attr("dark", "true");
} else {
$(".content").removeAttr("dark");
}}
)})})(jQuery)</script>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown menu if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<script>
(function($) {
$(function() {
$(".change").on("click", function() {
if (!$(".hdr").attr("hdr")) {
$(".hdr").attr("hdr", "true");
} else {
$(".hdr").removeAttr("hdr");
}}
)})})(jQuery)</script>
<script>
(function($) {
$(function() {
$(".change").on("click", function() {
if (!$("#hdr").attr("hdr")) {
$("#hdr").attr("hdr", "true");
} else {
$("#hdr").removeAttr("hdr");
}}
)})})(jQuery)</script>
<style>html[dark]:not([style-scope]) :not(.style-scope),
[dark]:not([style-scope]):not(.style-scope) {
background-color: #222;
color:white;
box-shadow: 0px 0px 0px 0px;
}
[dark] :not([style-scope]):not(.style-scope) :not([style-scope]) :not(.style-scope):not(.style-scope ):not(.style-scope) {
background-color: #333;
color:white;
box-shadow: 0px 0px 0px 0px;
}
[dark] :not([style-scope]) +:not(.style-scope) +:not([style-scope]) +:not(.style-scope) {
color:white;
background-color: #333;
box-shadow: 0px 0px 0px 0px;
}
[hdr]:not([style-scope]):not(.style-scope):not([style-scope]) :not(.style-scope) {
color:white;
background-color: #333;
box-shadow: 0px 0px 0px 0px;
}
</style>
</head>
<header class="content" id="hdr">
<ul class="headermen">
<li><a href="articles.html">Статьи</a></li>
<li><a href="contacts.html">Контакты</a></li>
<li> <button type="btn" class="change"><p class="btnp">Ночной режим</p></button></li>
</ul>
<a href ="index.html" class="headimg"><img class="headimg1" src="home1.png"></a>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn"></button>
<div class="down" id="hdr">
<div id="myDropdown" class="dropdown-content">
<a href="index.html">Домой</a>
<a href="articles.html">Статьи</a>
<a href="contacts.html">Контакты</a>
<button type="btn" class="change"><p class="btnp">Ночной режим</p></button>
</div>
</div>
</div>
</header>
<body class="content">
<div class="maincontent">
<div class="twoaarticles">
<a href="#" class="mainart1icle1">
<div class="mainpic1"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>10 гаджетов изменивших десятилетие</p>
</div>
<p class="secondtext1">Журнал Time решил подвести итоги уходящего десятилетия и опубликовал список из 10 лучших гаджетов, выпущенных в период с 2010 по 2019 год.</p>
</a>
<a href="#" class="mainart1icle2">
<div class="mainpic2"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Cyberpunk 2077 отложили до 17 сентября</p>
</div>
<p class="secondtext1">CD Projekt RED объявила о переносе Cyberpunk 2077 с 16 апреля на 17 сентября. Причины — желание сделать игру лучше.
</p>
</a>
</div>
<div class="twoaarticles">
<a href="#" class="mainart1icle3">
<div class="mainpic3"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Intel приносит трассировку лучей в интерактивные приложения</p>
</div>
<p class="secondtext1">Разработчики из Intel представили обновление масштабируемого движка 3D-рендеринга OSPRay 2.0</p>
</a>
<a href="#" class="mainart1icle4">
<div class="mainpic4"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Япония начала подготовку к внедрению систем связи 6G</p>
</div>
<p class="secondtext1">Власти Японии начали подготовку к внедрению на территорию страны систем связи шестого поколения.</p>
</a>
</div>
</div>
<div class="maincontent">
<div class="twoaarticles">
<a href="#" class="mainart1icle1">
<div class="mainpic5"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Sony может представить PlayStation 5 в начале февраля</p>
</div>
<p class="secondtext1">Игровая консоль от Sony может быть представлена на мероприятии PlayStation Meeting, которое должно пройти 5 февраля в Нью-Йорке.</p>
</a>
<a href="#" class="mainart1icle2">
<div class="mainpic6"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Учёные обеспокоены поведением звезды Бетельгейзе</p>
</div>
<p class="secondtext1">В последнее время красный сверхгигант Бетельгейзе стал значительно менее ярким, чем обычно. </p>
</a>
</div>
<div class="twoaarticles">
<a href="#" class="mainart1icle3">
<div class="mainpic7"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>Планшет Apple iPad с поддержкой 5G готовят к выпуску в 2020 году</p>
</div>
<p class="secondtext1">Компания Apple собирается представить свой первый смартфон с 5G уже осенью текущего года.</p>
</a>
<a href="#" class="mainart1icle4">
<div class="mainpic8"></div>
<div class="mainblue1"></div>
<div class="maintext1">
<p>SpaceX ради испытаний взорвала Falcon 9</p>
</div>
<p class="secondtext1">Космическая компания Илона Маска испытала аварийное отделение пилотируемого корабля Crew Dragon от ракеты-носителя Falcon 9.</p>
</a>
</div>
</div>
<p class="pup"><a href="#" id="up"></a></p>
<footer>
<div class="razd">
<p class="title">Разделы</p>
<a href ="articles.html" class="item">Статьи</a>
<a href ="contacts.html" class="item">Контакты</a>
</div>
<div class="razd2"><p class="title">Социальные сети</p>
<a href ="https://vk.com" class="item">VK</a>
<a href ="https://facebook.com" class="item">FaceBook</a>
<a href ="https://twitter.com" class="item">Twitter</a>
</div>
</footer>
</body>
</html>