|
|
|
@ -9,40 +9,48 @@ var countDownDate = new Date("Jan 5, 2024 15:37:25").getTime(); |
|
|
|
// Update the count down every 1 second |
|
|
|
// Update the count down every 1 second |
|
|
|
var x = setInterval(function() { |
|
|
|
var x = setInterval(function() { |
|
|
|
|
|
|
|
|
|
|
|
// Get today's date and time |
|
|
|
// Get today's date and time |
|
|
|
var now = new Date().getTime(); |
|
|
|
var now = new Date().getTime(); |
|
|
|
|
|
|
|
|
|
|
|
// Find the distance between now and the count down date |
|
|
|
// Find the distance between now and the count down date |
|
|
|
var distance = countDownDate - now; |
|
|
|
var distance = countDownDate - now; |
|
|
|
|
|
|
|
|
|
|
|
// Time calculations for days, hours, minutes and seconds |
|
|
|
// Time calculations for days, hours, minutes and seconds |
|
|
|
var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
|
|
|
var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
|
|
|
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
|
|
|
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
|
|
|
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
|
|
|
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
|
|
|
var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
|
|
|
var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
|
|
|
|
|
|
|
|
|
|
|
// Display the result in the element with id="demo" |
|
|
|
// Display the result in the element with id="demo" |
|
|
|
document.getElementById("demo").innerHTML = hours + "h " |
|
|
|
document.getElementById("demo").innerHTML = hours + "h " |
|
|
|
+ minutes + "m " + seconds + "s "; |
|
|
|
+ minutes + "m " + seconds + "s "; |
|
|
|
|
|
|
|
|
|
|
|
// If the count down is finished, write some text |
|
|
|
// If the count down is finished, write some text |
|
|
|
if (distance < 0) { |
|
|
|
if (distance < 0) { |
|
|
|
clearInterval(x); |
|
|
|
clearInterval(x); |
|
|
|
document.getElementById("demo").innerHTML = "EXPIRED"; |
|
|
|
document.getElementById("demo").innerHTML = "EXPIRED"; |
|
|
|
} |
|
|
|
} |
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
</script> --> |
|
|
|
</script> --> |
|
|
|
|
|
|
|
|
|
|
|
<head> |
|
|
|
<head> |
|
|
|
<link rel="stylesheet" href="{% static 'scores/style.css' %}"> |
|
|
|
<link rel="stylesheet" href="{% static 'scores/style.css' %}"> |
|
|
|
<title>Padel - {{ match.title }} - COURS {{ match.court }}</title> |
|
|
|
<title>Padel - {{ match.title }} - COURS {{ match.court }}</title> |
|
|
|
<!-- <meta http-equiv="refresh" content="5" > --> |
|
|
|
<meta http-equiv="refresh" content="15"/> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <p id="demo"></p> --> |
|
|
|
<!-- <p id="demo"></p> --> |
|
|
|
|
|
|
|
|
|
|
|
<div class="scontainer"> |
|
|
|
<div class="wrapper"> |
|
|
|
{% if match %} |
|
|
|
|
|
|
|
|
|
|
|
{% if match.club.header %} |
|
|
|
|
|
|
|
<header class="center">{{ match.club.header }}</header> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<main class="page-body"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="scontainer"> |
|
|
|
|
|
|
|
{% if match %} |
|
|
|
<div class="smatch"> |
|
|
|
<div class="smatch"> |
|
|
|
|
|
|
|
|
|
|
|
<p>COURS {{ match.court }}</p> |
|
|
|
<p>COURS {{ match.court }}</p> |
|
|
|
@ -92,13 +100,19 @@ var x = setInterval(function() { |
|
|
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
<p>{{ match.duration }}</p> |
|
|
|
<p class="big">{{ match.duration }}</p> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<p class="center">No matches at the moment...</p> |
|
|
|
<p class="center">No matches at the moment...</p> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</main> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if match.club.footer %} |
|
|
|
|
|
|
|
<footer class="page-footer, center">{{ match.club.footer }}</footer> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</html> |
|
|
|
</html> |
|
|
|
|