Skip to content
Snippets Groups Projects
Commit baa3c57f authored by Tomáš Hozman's avatar Tomáš Hozman
Browse files

added content

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 184 additions and 0 deletions
Temporary placeholder content for [regulacekonopi.cz](https://regulacekonopi.cz).
html, body {
margin: 0;
padding: 0;
}
main {
margin-left: auto;
margin-right: auto;
max-width: 1250px;
background-image: url("../images/background.png");
background-size: cover;
background-repeat: no-repeat;
height: 100%;
padding: 50px;
}
main #heading {
margin: 0;
font-family: "Bebas Neue";
font-size: 100px;
text-align: center;
}
main #description {
font-family: "Bebas Neue Light";
font-size: 50px;
text-align: center;
margin: 0;
}
main #timer-wrapper {
font-family: "Bebas Neue Light";
font-size: 50px;
text-align: center;
margin: 0;
}
main #timer-wrapper #timer {
font-family: "Bebas Neue";
}
#copyleft {
font-family: sans-serif;
text-align: center;
margin-top: 15px;
font-family: "Roboto Condensed";
}
File added
@font-face {
font-family: 'Bebas Neue Light';
font-style: normal;
font-weight: normal;
src: local('Bebas Neue Light'), url('Bebas Neue Light.woff') format('woff');
}
File added
File added
@font-face {
font-family: 'Bebas Neue';
font-style: normal;
font-weight: normal;
src: local('Bebas Neue'), url('BebasNeue.woff') format('woff');
}
@font-face {
font-family: 'Bebas Neue';
font-style: normal;
font-weight: bold;
src: local('Bebas Neue'), url('BebasNeue Bold.woff') format('woff');
}
File added
File added
File added
File added
/*
* Thanks to majodev for their Google webfont helper!
*/
/* roboto-condensed-regular - latin-ext_latin */
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: normal;
src: local(''),
url('roboto-condensed-v25-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('roboto-condensed-v25-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* roboto-condensed-700 - latin-ext_latin */
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: bold;
src: local(''),
url('roboto-condensed-v25-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('roboto-condensed-v25-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
content/assets/images/background.png

422 KiB

// https://www.w3schools.com/howto/howto_js_countdown.asp
// Thanks to W3Schools!
document.addEventListener(
"DOMContentLoaded",
function() {
// Set the date we're counting down to
var countDownDate = new Date("Sep 30, 2022 12:00:00").getTime();
function timer() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="timer"
const element = document.getElementById("timer");
element.innerHTML = (
days + " dní, "
+ hours + " hodin, "
+ minutes + " minut a "
+ seconds + " sekund"
);
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(timer);
element.innerHTML = "Dnes to bude!";
}
}
timer();
// Update the count down every 1 second
const timerInterval = setInterval(timer, 1000);
}
);
<html lang="cs">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link
rel="stylesheet"
href="assets/css/base.css"
>
<link
rel="stylesheet"
href="assets/fonts/bebas-neue/style.css"
>
<link
rel="stylesheet"
href="assets/fonts/bebas-neue-light/style.css"
>
<link
rel="stylesheet"
href="assets/fonts/roboto-condensed/style.css"
>
<script
src="assets/js/timer.js"
type="text/javascript"
></script>
<title>Chystáme to!</title>
</head>
<body>
<main>
<h1 id="heading">Chystáme to!</h1>
<p id="description">
30.9.2022 představíme dopadovou studii o legalizaci konopí.
</p>
<p id="timer-wrapper">
Zbývá <span id="timer"></span>.
</p>
<div id="copyleft">
<span style="transform:scale(-1,1);display:inline-block">&copy;</span>
<span>Piráti, 2022. Všechna práva vyhlazena.</span>
</div>
</main>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment