Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
var destination = new Date();
destination.setYear(2004);
destination.setMonth(12-1);
destination.setDate(24); // <-- DA
destination.setMinutes(0);
destination.setSeconds(0);
setTimeout("countDate()", 0);
function countDate() {
var dst = destination;
var now = new Date();
var diff = parseInt((dst - now) / 1000);
var days = parseInt(diff / (60 * 60 * 24));
diff -= (days * 60 * 60 * 24);
var hours = parseInt(diff / (60 * 60));
diff -= (hours * (60 * 60));
var minutes = parseInt(diff / 60);
diff -= (minutes * 60);
var seconds = parseInt(diff);
document.getElementById("textfield").value = days + " Tage, " + hours + " Stunden, " + minutes + " Minuten, " + seconds + " Sekunden";
setTimeout("countDate()", 500);
}
<table width="75%" border="0">
<tr>
<td> </td>
<td> </td>
<td>hier raus</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>