-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
342 lines (272 loc) · 15.5 KB
/
index.php
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<?php
require "vendor/autoload.php";
use GuzzleHttp\Client;
use KubAT\PhpSimple\HtmlDomParser;
$client = new Client([
'headers' => [
'User-Agent' =>'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
'
]
]);
$URL= "http://www.portaldaibiapaba.com.br/corona/";
$html = $client->request("GET",$URL)->getBody();
$dom = HtmlDomParser::str_get_html($html);
//echo $dom;
foreach ($dom->find('h1') as $key => $link){
$urlDados = $link->content;
$html = $client->request("GET",$URL)->getBody();
$domDados = HtmlDomParser::str_get_html($html);
$div = $domDados->find('div.container',0);
$mundoCaso = $div->find('h1',1)->plaintext;
$mundoMorte = $div->find('h1',2)->plaintext;
$mundoRecuperado = $div->find('h1',3)->plaintext;
$brasilCaso = $div->find('h1',5)->plaintext;
$brasilMorte = $div->find('h1',6)->plaintext;
$brasilRecuperado = $div->find('h1',7)->plaintext;
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ibiapba24horas - Corona Vírus no mundo e no Brasil em tempo real</title>
<meta name="description" content="Dados em tempo real do corona virus no mundo e no brasil. Ibiapapaba24horas maior portal de noticias da serra da ibiapaba.">
<meta name="keywords" content="coronavirus,serradaibiapaba,tiangua,ubajara,ibiapina,24horas,ibiapaba,virus,serra,saobenedito,vicosadoceara">
<meta property=”og:title” content="Ibiapba24horas - Corona Vírus no mundo e no Brasil em tempo real"/>
<meta property=”og:description” content="Dados em tempo real do corona virus no mundo e no brasil. Ibiapapaba24horas maior portal de noticias da serra da ibiapaba."/>
<meta name="author" content="Ibiapaba24horas">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico">
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
<link rel="stylesheet" href="./css/my-style.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-159235197-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-159235197-2');
</script>
</head>
<body>
<nav class="navbar navbar-light bg-azul-ibiapaba fixed-top py-1 box-shadow">
<div class="mx-auto">
<a href="http//:www.ibiapaba24horas.com" target="_blank" >
<img width="50px" height="50px" src="images/logo_100x100.png" alt="background-corona">
</a>
</div>
<a class="p-2 text-light" target="blank" href="https://www.worldometers.info/coronavirus/">Fonte: worldometers</a>
<button type="button" class="btn btn-success " aria-hidden="true"> Nº de Visitas <?php include("contador.php");?></button>
</nav>
<div class="mx-auto text-center mt-5 py-5">
<h1 class="display-4"> COVID-19 NO MUNDO </h1>
<p class="lead"> FIQUE INFORMADO EM TEMPO REAL TUDO SOBRE CORONAVÍRUS NO MUNDO E NO BRASIL </p>
</div>
<amp-ad width="100vw" height="320"
type="adsense"
data-ad-client="ca-pub-1290649823929419"
data-ad-slot="8546071569"
data-auto-format="rspv"
data-full-width="">
<div overflow=""></div>
</amp-ad>
<div class="container" style="border: 0px solid red">
<section>
<h2 class="text-center mx-auto"> NO MUNDO </h2>
<div class="row">
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">CONFIRMADOS</div>
<div class="card-body">
<p class="card-text h2 text-center"><?php echo $mundoCaso; ?> </p>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">MORTES</div>
<div class="card-body">
<p class="card-text h2 text-center text-danger"><?php echo $mundoMorte; ?> </p>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">RECUPERADOS</div>
<div class="card-body">
<p class="card-text h2 text-center text-success"><?php echo $mundoRecuperado; ?> </p>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="text-center mx-auto">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ibiapaba24horas_main-top-manualslide_AdSense1_1x1_as -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1290649823929419"
data-ad-slot="8546071569"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</section>
<section >
<h2 class="text-center mx-auto py-1"> NO BRASIL </h2>
<div class="row">
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">CONFIRMADOS</div>
<div class="card-body">
<p class="card-text h2 text-center"><?php echo $brasilCaso; ?> </p>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">MORTES</div>
<div class="card-body">
<p class="card-text h2 text-center text-danger"><?php echo $brasilMorte; ?> </p>
</div>
</div>
</div>
<div class="col-12 col-sm-12 col-md-4" style="">
<div class="card bg-light mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header h5 text-center">RECUPERADOS</div>
<div class="card-body">
<p class="card-text h2 text-center text-success"><?php echo $brasilRecuperado; ?> </p>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="text-center mx-auto">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ibiapaba24horas_main-top-manualslide_AdSense1_1x1_as -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1290649823929419"
data-ad-slot="8546071569"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</section>
<section>
<div class="container">
<h1 class="text-center mt-4 py-3"> SITUAÇÃO DOS ESTADOS NO BRASIL </h1>
<iframe title="Números do coronavírus no Brasil" aria-label="Table" id="datawrapper-chart-5xvOq" src="//datawrapper.dwcdn.net/5xvOq/7/" scrolling="no" frameborder="0" style="width: 0px; border: none; min-width: 100% !important; height: 829px;" height="828"></iframe>
</div>
</section>
<!-- FIM CONTAINER -->
</div>
<section>
<h1 class="text-center h4 my-font-titulo mt-4 7ybhpy-5 ">O QUE É CORONAVÍRUS ? </h1>
<div class="msg-footer">
<div class="container-fluid">
<p class="display-5 text-center" style="color:#002441">A doença provocada pelo novo Coronavírus é oficialmente conhecida como COVID-19, sigla em inglês para “coronavirus disease 2019” (doença por coronavírus 2019, na tradução).
Vírus que causa doença respiratória pelo agente coronavírus, com casos recentes registrados na China e em outros países.
Quadro pode variar de leve a moderado, semelhante a uma gripe. Alguns casos podem ser mais graves, por exemplo, em pessoas que já possuem outras doenças. Nessas situaçōes, pode ocorrer síndrome respiratória aguda grave e complicações. Em casos extremos, pode levar a óbito.</p>
</div>
</div>
</section>
<section>
<div class="text-center mx-auto">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ibiapaba24horas_main-top-manualslide_AdSense1_1x1_as -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1290649823929419"
data-ad-slot="8546071569"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</section>
<div class="container">
<section>
<h1 class="text-center h4 py-4 my-font-titulo "> TRANSMISSÃO </h1>
<div class="row">
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/espirro1.png"/>
</div>
<p class="text-center my-font"> Espirro </p>
</div>
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/tosse-transmissao.png"/>
</div>
<p class="text-center my-font"> Tosse </p>
</div>
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/catarro1.png"/>
</div>
<p class="text-center my-font"> Catarro </p>
</div>
</div>
</section>
<section>
<h1 class="text-center h4 my-font-titulo "> SINTOMAS </h1>
<p class="text-center">Sinais e sintomas clínicos são <br>principalmente respiratórios, semelhantes aos de um resfriado comum</p>
<div class="row">
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/saliva.png"/>
</div>
<p class="text-center my-font"> Gotículas de Saliva </p>
</div>
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/contato-proximo.png"/>
</div>
<p class="text-center my-font"> Contato Pŕoximo </p>
</div>
<div class="col-12 col-md-12 col-lg-4 py-md-2">
<div class="d-flex justify-content-center ">
<img src="images/transmissao/contato-objetos.png"/>
</div>
<p class="text-center my-font">Contato com objeto ou superfícies <br>contaminadas </p>
</div>
</div>
</section>
</div>
<section>
<div class="msg-footer">
<div class="container">
<h1 class="display-5 text-center" style="color:#002441">Lave as mãos frequentemente com água e sabão e use antisséptico de mãos à base de álcool gel 70%, principalmente:</h1>
<ul class="list-unstyled text-center">
<li>Após tossir ou respirar</li>
<li> Depois de cuidar de pessoas</li>
<li> Antes e depois de comer</li>
</ul>
</div>
</div>
</section>
<footer>
<div class="fundao">
<p style="padding:2px" class="text-center text-white">Ibiapaba24horas - Portal de noticias 24 horas da Serra da Ibiapaba</p>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<?php
exit();
}
?>
</body>
</html>