mirror of https://github.com/istio/istio.io.git
Add countdown timer to launch,. (#1882)
This commit is contained in:
parent
3303fb9aea
commit
b0d8ef9aa7
|
@ -38,6 +38,8 @@ title: Istio
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="landing">
|
<main class="landing">
|
||||||
|
<a id="timer" class="promotion" href="https://preliminary.istio.io"></a>
|
||||||
|
|
||||||
<div class="hero">
|
<div class="hero">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="hero-label">Istio{{< site_suffix >}} {{< istio_version >}}</h1>
|
<h1 class="hero-label">Istio{{< site_suffix >}} {{< istio_version >}}</h1>
|
||||||
|
@ -140,3 +142,18 @@ title: Istio
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var countDownDate = new Date("Jul 31, 2018 12:00:00 PDT").getTime();
|
||||||
|
|
||||||
|
var x = setInterval(function() {
|
||||||
|
var now = new Date().getTime();
|
||||||
|
var distance = countDownDate - now;
|
||||||
|
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);
|
||||||
|
|
||||||
|
document.getElementById("timer").innerHTML = "Istio 1.0 in<br>" + days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
|
||||||
|
}, 1000);
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue