From ed4652ace13a132d185f0623196482f36f76cee1 Mon Sep 17 00:00:00 2001 From: efrick Date: Fri, 10 Apr 2020 14:19:10 -0400 Subject: [PATCH] Add a README.md for documentation. Removed the index.php file as this should be a simlink back to clock.php and git doesn't track it this way. --- README.md | 23 ++++++++++++ index.php | 107 ------------------------------------------------------ 2 files changed, 23 insertions(+), 107 deletions(-) create mode 100644 README.md delete mode 100644 index.php 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

-
- -