diff --git a/priv/static/scratch.txt b/priv/scratch.txt similarity index 100% rename from priv/static/scratch.txt rename to priv/scratch.txt diff --git a/priv/static/chat.html b/priv/static/chat.html index c8474cd..1891c8a 100644 --- a/priv/static/chat.html +++ b/priv/static/chat.html @@ -6,6 +6,12 @@ +
+
+ Home +
+
+

Chat with websockets

diff --git a/priv/static/css/default.css b/priv/static/css/default.css index d7f1ad5..fbf7e7b 100644 --- a/priv/static/css/default.css +++ b/priv/static/css/default.css @@ -25,6 +25,19 @@ body { line-height: 1.4; } +/* titlebar */ +#titlebar { + background: var(--lgray2); + height: 40px; + width: 100%; +} + +a.tb-home{ + font-size: 30px; + text-decoration: none; + font-weight: bold; +} + .content { max-width: 800px; diff --git a/priv/static/index.html b/priv/static/index.html index 74b4386..91952c7 100644 --- a/priv/static/index.html +++ b/priv/static/index.html @@ -6,37 +6,21 @@ -
-

WFC Demo

- - - -
- - - -

Settings

- Auto-resize output
- Auto-scroll output to bottom +
+
+ Home
- +
+

FEWD: index

+ + +
diff --git a/priv/static/tetris.html b/priv/static/tetris.html index a600aef..a420e23 100644 --- a/priv/static/tetris.html +++ b/priv/static/tetris.html @@ -7,6 +7,12 @@ +
+
+ Home +
+
+

Tetris

diff --git a/priv/static/wfc.html b/priv/static/wfc.html new file mode 100644 index 0000000..72ac544 --- /dev/null +++ b/priv/static/wfc.html @@ -0,0 +1,30 @@ + + + + + FEWD: WF Compiler Demo + + + +
+
+ Home +
+
+ +
+

WFC Demo

+ +
+ + + +

Settings

+ Auto-resize output
+ Auto-scroll output to bottom +
+
+ + + + diff --git a/priv/static/ws-test-echo.html b/priv/static/ws-test-echo.html index 9c2f9f3..f9d5908 100644 --- a/priv/static/ws-test-echo.html +++ b/priv/static/ws-test-echo.html @@ -6,6 +6,12 @@ +
+
+ Home +
+
+

Websockets echo test

diff --git a/src/fd_sfc.erl b/src/fd_sfc.erl index c273451..eb4b464 100644 --- a/src/fd_sfc.erl +++ b/src/fd_sfc.erl @@ -27,7 +27,7 @@ -record(s, {base_path = base_path() :: file:filename(), cache = fd_sfc_cache:new(base_path()) :: fd_sfc_cache:cache(), - auto_renew = 5_000 :: pos_integer()}). + auto_renew = 0_500 :: pos_integer()}). %-type state() :: #s{}.