diff --git a/README.md b/README.md new file mode 100644 index 0000000..f280241 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# 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 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 +1. git clone into a directory accessable by your webserver. + `git clone https://efrick.ddns.net/scm/git/WebClock` +2. Optional steps + 1. Edit `clock.php` to point to your CSS files. + 2. Add a symlink from `clock.php` to a file called `index.php`. + `ln -s clock.php index.php` + +### ToDo +- [ ] Add a timer. +- [ ] Multiple clocks for tracking regions. \ No newline at end of file diff --git a/index.php b/index.php deleted file mode 100644 index 9c364e5..0000000 --- a/index.php +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - <?php - echo "Time is: " . date("H:i:s e"); - ?> - - - - - - - - - -

- Date and Time -

-
- ". - "

". - date("D, M d, Y, H:i:s") . - " GMT" . date("O") . " (" . date("T") . ")"."

\n\t\t"; - echo '

The user timezone is now set to ' . $selectedTimezone . "

\n\t\t"; - echo '

The system timezone is now set to ' . $scriptTZ . "

\n"; - ?> -
-

- If the detcted timezone is not correct selct your timezone from the dropdown below. -

-
-
- - - - - -
-

JS Timezone

-
- -