add titlebar
This commit is contained in:
parent
7815ae3c57
commit
b55b0bd056
@ -6,6 +6,12 @@
|
|||||||
<link rel="stylesheet" href="/css/default.css">
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
|
<div class="content">
|
||||||
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1 class="content-title">Chat with websockets</h1>
|
<h1 class="content-title">Chat with websockets</h1>
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,19 @@ body {
|
|||||||
line-height: 1.4;
|
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 {
|
.content {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
|
|||||||
@ -6,37 +6,21 @@
|
|||||||
<link rel="stylesheet" href="/css/default.css">
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1 class="content-title">WFC Demo</h1>
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ul>
|
<div class="content">
|
||||||
<li>
|
<h1 class="content-title">FEWD: index</h1>
|
||||||
Websocket demos that work
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="/ws-test-echo.html">Echo</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Don't work
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/chat.html">Chatroom</a></li>
|
<li><a href="/chat.html">Chatroom</a></li>
|
||||||
|
<li><a href="/ws-test-echo.html">Echo</a></li>
|
||||||
<li><a href="/tetris.html">Tetris</a></li>
|
<li><a href="/tetris.html">Tetris</a></li>
|
||||||
|
<li><a href="/wfc.html">WFC</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="content-body">
|
|
||||||
<textarea disabled id="wfc-output"></textarea>
|
|
||||||
<input autofocus id="wfc-input"></input>
|
|
||||||
|
|
||||||
<h2>Settings</h2>
|
|
||||||
<input type="checkbox" checked id="auto-resize-output">Auto-resize output</input> <br>
|
|
||||||
<input type="checkbox" checked id="auto-scroll" >Auto-scroll output to bottom</input>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="module" src="./js/dist/index.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -7,6 +7,12 @@
|
|||||||
<link rel="stylesheet" href="/css/tetris.css">
|
<link rel="stylesheet" href="/css/tetris.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
|
<div class="content">
|
||||||
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1 class="content-title">Tetris</h1>
|
<h1 class="content-title">Tetris</h1>
|
||||||
|
|
||||||
|
|||||||
30
priv/static/wfc.html
Normal file
30
priv/static/wfc.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>FEWD: WF Compiler Demo</title>
|
||||||
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
|
<div class="content">
|
||||||
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<h1 class="content-title">WFC Demo</h1>
|
||||||
|
|
||||||
|
<div class="content-body">
|
||||||
|
<textarea disabled id="wfc-output"></textarea>
|
||||||
|
<input autofocus id="wfc-input"></input>
|
||||||
|
|
||||||
|
<h2>Settings</h2>
|
||||||
|
<input type="checkbox" checked id="auto-resize-output">Auto-resize output</input> <br>
|
||||||
|
<input type="checkbox" checked id="auto-scroll" >Auto-scroll output to bottom</input>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="module" src="./js/dist/index.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -6,6 +6,12 @@
|
|||||||
<link rel="stylesheet" href="/css/default.css">
|
<link rel="stylesheet" href="/css/default.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="titlebar">
|
||||||
|
<div class="content">
|
||||||
|
<a href="/" class="tb-home">Home</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1 class="content-title">Websockets echo test</h1>
|
<h1 class="content-title">Websockets echo test</h1>
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
-record(s, {base_path = base_path() :: file:filename(),
|
-record(s, {base_path = base_path() :: file:filename(),
|
||||||
cache = fd_sfc_cache:new(base_path()) :: fd_sfc_cache:cache(),
|
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{}.
|
%-type state() :: #s{}.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user