-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added test mode, to select themes manually * Added Sámi theme * updated doc * added screenshot in doc * added screenshot in doc * removed redundant info in readme * edited look of saami theam * Correct month indexing * Fixed incorrect sami flag. Added higher resolution background image --------- Co-authored-by: Ole Kristian Hoel <ole.k.hoel@ntnu.no>
- Loading branch information
Showing
6 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # Webclock | ||
|
|
||
| En vakker nettbasert klokkeapplikasjon med analog og digital visning for flere norske byer (Trondheim, Ålesund og Gjøvik). Klokken inkluderer dynamiske væranimasjoner og sesongbaserte temaer. | ||
|
|
||
|  | ||
|
|
||
| ## Temaer | ||
|
|
||
| Applikasjonen bytter automatisk mellom temaer basert på dagens dato | ||
|
|
||
| ## Testmodus | ||
|
|
||
| Testmodus lar deg manuelt overstyre den automatiske temavelgeren og teste ulike temaer uten å vente på spesifikke datoer. | ||
|
|
||
|  | ||
|
|
||
| ### Aktivere testmodus | ||
|
|
||
| Legg til `?mode=test` i URL-en: | ||
|
|
||
| ``` | ||
| http://localhost/index.html?mode=test | ||
| ``` | ||
|
|
||
| ## Legge til nye temaer | ||
|
|
||
| Legg til nye temadefinisjoner i `themes`-objektet: | ||
|
|
||
| ```javascript | ||
| mytheme: { | ||
| dateRange: { startMonth: 0, startDay: 1, endMonth: 0, endDay: 31 }, | ||
| clockFace: 'clock-face-mytheme.png', | ||
| clockFaceScale: 'cover', | ||
| background: 'planks-mytheme.png', | ||
| backgroundSize: 'cover', | ||
| textColor: '#ffffff', | ||
| centerDotColor: 'radial-gradient(...)', | ||
| centerDotBorder: '#888', | ||
| handColors: { | ||
| hour: 'linear-gradient(..s.)', | ||
| minute: 'linear-gradient(...)', | ||
| second: 'linear-gradient(...)' | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Legge til tema-valg i tema-velgeren (test-modus): | ||
|
|
||
| ```Html | ||
| <div class="theme-selector"> | ||
| <label for="theme-dropdown">Theme:</label> | ||
| <select id="theme-dropdown"> | ||
| <option value="auto">Auto (Date-based)</option> | ||
| <option value="default">Default</option> | ||
| <option value="halloween">Halloween</option> | ||
| <option value="movember">Movember</option> | ||
| <option value="christmas">Christmas</option> | ||
| <option value="saami">Sámi</option> | ||
| <option value="mytheme">My Theme</option> | ||
| </select> | ||
| </div> | ||
| ``` | ||
|
|
||
| ## Takk til | ||
|
|
||
| - Værdata levert av [yr.no](https://yr.no) / Meteorologisk institutt | ||
| - Måneberegninger basert på astronomiske algoritmer | ||
|
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.