Skip to content

Commit

Permalink
web
Browse files Browse the repository at this point in the history
  • Loading branch information
Numax-cz committed Mar 15, 2021
1 parent 6c1bd51 commit e960e60
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CSS/covid.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ main{
.nova-hodnota{
font-size: 1.3em;
}

.testy .hodnota{
font-size: 2em;
color: #2980b9;
font-weight: bold;
}

/*HODNOTY*//*HODNOTY*/

Expand Down
2 changes: 1 addition & 1 deletion CSS/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
padding: 0;
box-sizing: border-box;
/*font-family: 'Roboto Mono', monospace;*/
font-family: 'Montserrat', sans-serif;
font-family: 'Source Code Pro', monospace;
}

body{
Expand Down
6 changes: 5 additions & 1 deletion JS/choroba.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const Celkove_Vylecenych_Hodnota = document.querySelector(".vylecenych .hodnota"
const Celkove_Vylecenych_Nova_Hodnota = document.querySelector(".vylecenych .nova-hodnota");
const Celkove_Podlehlo_Hodnota = document.querySelector(".podlehlo .hodnota");
const Celkove_Podlehlo_Nova_Hodnota = document.querySelector(".podlehlo .nova-hodnota");
const Celkove_Testovanych_Hodnota = document.querySelector(".testy .hodnota");
const Celkove_Testovanych_Nova_Hodnota = document.querySelector(".testy .nova-hodnota");



fetch(ApiTechRomu)
Expand All @@ -17,7 +20,8 @@ fetch(ApiTechRomu)
Celkove_Nakazeni_Nova_Hodnota.innerHTML = "+" + apiData.data[0].potvrzene_pripady_vcerejsi_den;
Celkove_Vylecenych_Hodnota .innerHTML = apiData.data[0].vyleceni;
Celkove_Podlehlo_Hodnota.innerHTML = apiData.data[0].umrti;

Celkove_Testovanych_Nova_Hodnota.innerHTML = "+" + apiData.data[0].vykazana_ockovani_vcerejsi_den;
Celkove_Testovanych_Hodnota.innerHTML = apiData.data[0].vykazana_ockovani_celkem;
})
fetch(ApiTechRomu2)
.then((data2) => data2.json())
Expand Down
13 changes: 8 additions & 5 deletions covid.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,18 @@
<div class="hodnota">0</div>
<div class="nova-hodnota">+0</div>
</div>



<div class="testy">
<div class="title">Naočkovaných</div>
<div class="hodnota">0</div>
<div class="nova-hodnota">+0</div>
</div>
<div class="podlehlo">
<div class="title">Podlehlo</div>
<div class="hodnota">666</div>
<div class="nova-hodnota">+666</div>
<div class="hodnota">0</div>
<div class="nova-hodnota">+0</div>
</div>


<!--
Máme rádi víno. A sebe taky
-->
Expand Down
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="./CSS/index.css">
<meta charset="utf-8"/>

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&ampdisplay=swap" rel="stylesheet">


<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200&display=swap" rel="stylesheet">
<title>NaPicu</title>
<meta itemprop="name" content="NaPicu">
<meta name="keywords" content="HTML, CSS, JavaScript">
Expand Down Expand Up @@ -93,3 +90,7 @@

</body>
</html>

<!-- <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&ampdisplay=swap" rel="stylesheet"> -->

0 comments on commit e960e60

Please sign in to comment.