framework7

Open full view…

Show Notification at specific times

Kelvin
Wed, 02 Jul 2014 09:03:44 GMT

I'm rebuilding my Webapp with Framework7 and now I want to add Notifications that comes up at specific times. On my old page i just "echoed" a piece of HTML at that times: --- $timestamp = time(); $time = date("H:i",$timestamp); if($time >= "09:55" && $time <= "10:00" || $time >= "12:45" && $time <= "12:50" || $time >= "14:25" && $time <= "14:30" ){ echo "<div class="notification">Break ends soon</div>"; } --- How do I request a notification at specific times?