Reviewed-on: #2
WebClock
It's a clock. It runs in your browser.
Description
A simple clock for your web based timekeeping needs. Includes the abality to set the timezone you want if the one your browser chooes isn't what you need. The time will appear not only on the main page but also in the page's title so you can leave the page and still keep an eye on the time.
Requierments
php - I'm running it on a minimum of 5.6 so that or anything newer should work
a webserver - I use apache. It's nice.
A javascript interpriter - Basicaly a modernish webbrowser.
Install
- git clone into a directory accessable by your webserver.
git clone https://efrick.ddns.net/git/20xd6/WebClock.git
- Optional steps
- Edit
clock.php
to point to your root CSS files. It points to a css file calledstyles.css
in the root directory. If this is not your root css file please edit it. - Add a symlink from
clock.php
to a file calledindex.php
.ln -s clock.php index.php
Most webservers will look for an index file (index.html
orindex.php
for example) in any folder you open. Adding this symlink will inable you to link to the direcoty rather thanclock.php
without messing with the configuration of the webserver.
- Edit
Note:
There is a small privacy concern. Because this clock is using PHP to creat the inishal time entry and because this is using the date()
function in PHP to do this it will reveal what timezone the server running it is set to.
ToDo
- Add a differentiator from the selected timezone and the original timezone.
- Display original timezone's time.
- Display the offset of the two selected timezones.
- Add a timer.
- Multiple clocks for tracking regions. this is sort of implemented with the display original timezone feature but not compleatly and not how I want it.
Licening
GPLv2
A copy of the GPLv2 can be fond here.
Description
1.05.09.2021
Latest
Languages
PHP
69.1%
JavaScript
29.5%
CSS
1.4%