Prof. Golan's class's clocks for the Forbes Digital Plaza.
Put sketches in Contents/Resources/app/sketches/
. Each sketch should be in its own folder, with an index.html
.
Contents/Resources/app/settings.json
JSON key | default value | explanation |
---|---|---|
SHOW_LABEL | false |
show author name at beginning of each clock |
FADE_SPEED | 32 |
speed of fade to/from black, bigger value = slower |
TIMEOUT | 1000 /*millis per sec*/ * 60 /*secs per min*/ * 3 /*mins*/ |
number of milliseconds to show each clock |
FRAME_X | 0 |
x coordinate of the iframe relative to window |
FRAME_Y | 0 |
y ditto |
FRAME_W | 800 |
width ditto |
FRAME_H | 600 |
height ditto |
BG_COLOR | [0,0,0] |
background color (RGB) |
FRAME_STYLE | "" |
custom CSS style (overriding) for iframe |
BODY_STYLE | "" |
custom CSS style (overriding) for main app body |
START_FULLSCREEN | false |
start the app in fullscreen mode |
- Download
nodejs
andnpm
, e.g.brew install node
. cd
into the folder and runnpm install
to install all dependencies automatically.npm start
to fire up the electron app.
- Download
electron-packager
, e.g.npm install -g electron-packager
electron-packager .
the "dot" means current directory.