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.
<?php
$h = date("H");
switch ($h) {
case 00: include("template/w_0h.html");
case 02: include("template/w_2h.html");
case 04: include("template/w_4h.html");
case 06: include("template/w_6h.html");
case 08: include("template/w_8h.html");
case 10: include("template/w_10h.html");
case 12: include("template/w_12h.html");
case 14: include("template/w_14h.html");
case 16: include("template/w_16h.html");
case 18: include("template/w_18h.html");
case 20: include("template/w_20h.html");
case 22: include("template/w_22h.html");
}
?>
$times = array(
0 => "template/w_0h.html",
1 => "template/w_0h.html",
2 => "template/w_2h.html",
3 => "template/w_2h.html",
4 => "template/w_4h.html",
5 => "template/w_4h.html",
6 => "template/w_6h.html",
7 => "template/w_6h.html",
8 => "template/w_8h.html",
9 => "template/w_8h.html",
/* ... */
);
$hour = (int) date( "H" );
$template = $times[ $hour ];
include( $template );
<table class="colour-for-<?php echo $hour ?>h"> ... </table>
.colour-for-0h {
/* ... */
}
.colour-for-1h {
/* ... */
}
/* ... */
.colour-for-12h{
color:#006600;
}
<td class="colour-for-<?php echo $hour ?>12h">