Compare commits

..

2 Commits

Author SHA1 Message Date
Fred Boniface f77d262808 Optimise image loading
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-01-17 00:57:53 +00:00
Fred Boniface 400953548f Add settings page
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-01-17 00:42:21 +00:00
5 changed files with 72 additions and 14 deletions

View File

@ -21,13 +21,11 @@
<button aria-label="Back" class="sidebar_control" onclick="history.back()">&#8678;</button>
</div>
<picture>
<source media="(min-width:800px)" secset="./images/logo/logo-full-715.webp" type="image/webp">
<source media="(min-width:800px)" srcset="./images/logo/logo-full-715.png" type="image/png">
<source media="(min-width:700px)" srcset="./images/logo/logo-full-512.webp" type="image/webp">
<source media="(min-width:700px)" srcset="./images/logo/logo-full-512.png" type="image/png">
<source media="(min-width:450px)" srcset="./images/logo/logo-full-256.webp" type="image/png">
<source media="(min-width:450px)" srcset="./images/logo/logo-full-256.png" type="image/png">
<picture>
<source media="(max-width:450px)" srcset="/images/logo/logo-full-256.webp" type="image/webp">
<source media="(max-width:450px)" srcset="/images/logo/logo-full-256.png" type="image/png">
<source srcset="/images/logo/logo-full-512.webp" type="image/webp">
<source srcset="/images/logo/logo-full-512.png" type="image/png">
<img class="titleimg" src="./images/logo/logo-full-512.png" alt="OwlBoard Logo">
</picture>
<h2>Code Lookup</h2>

View File

@ -24,23 +24,24 @@
<div id="sidebar">
<a href="/">Home</a>
<a href="/find-code.html">Code Search</a>
<a href="/settings.html">Settings</a>
<a href="/help.html">Help</a>
<a href="/issue.html">Report Issue</a>
</div>
<!-- Main Content Begins -->
<picture>
<source media="(min-width:800px)" secset="/images/logo/logo-full-715.webp" type="image/webp">
<source media="(min-width:800px)" srcset="/images/logo/logo-full-715.png" type="image/png">
<source media="(min-width:700px)" srcset="/images/logo/logo-full-512.webp" type="image/webp">
<source media="(min-width:700px)" srcset="/images/logo/logo-full-512.png" type="image/png">
<source media="(min-width:450px)" srcset="/images/logo/logo-full-256.webp" type="image/png">
<source media="(min-width:450px)" srcset="/images/logo/logo-full-256.png" type="image/png">
<source media="(max-width:450px)" srcset="/images/logo/logo-full-256.webp" type="image/webp">
<source media="(max-width:450px)" srcset="/images/logo/logo-full-256.png" type="image/png">
<source media="(max-width:700px)" srcset="/images/logo/logo-full-512.webp" type="image/webp">
<source media="(max-width:700px)" srcset="/images/logo/logo-full-512.png" type="image/png">
<source srcset="/images/logo/logo-full-715.webp" type="image/webp">
<source srcset="/images/logo/logo-full-715.png" type="image/png">
<img class="titleimg" src="/images/logo/logo-full-512.png" alt="OwlBoard Logo">
</picture>
<br>
<form action="board.html">
<input class="lookup-box" type="text" id="crs-lookup" name="stn" placeholder="Enter CRS/TIPLOC"/>
<input class="lookup-box" type="text" id="crs-lookup" name="stn" placeholder="Enter CRS/TIPLOC" autocomplete="off"/>
<br>
<input type="submit" value="Lookup Board" class="lookup-button">
</form>

0
static/js/settings.js Normal file
View File

50
static/settings.html Normal file
View File

@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="description" content="OwlBoard - Live train departures for traincrew."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="OwlBoard">
<meta name="author" content="Frederick Boniface">
<meta name="theme-color" content="#155bb7">
<link rel="stylesheet" type="text/css" href="./styles/style.css"/>
<link rel="stylesheet" type="text/css" href="./styles/settings.css"/>
<link rel="stylesheet" type="text/css" href="./styles/find-code.css"/>
<link rel="icon" type="image/png" href="./images/logo/logo-sq-256.png"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<title>OwlBoard - Settings</title>
<script src="./js/settings.js"></script>
</head>
<body>
<div id="top_button" class="hide_micro">
<button aria-label="Back" class="sidebar_control" onclick="history.back()">&#8678;</button>
</div>
<picture>
<source srcset="./images/logo/logo-full-256.webp" type="image/webp">
<source srcset="./images/logo/logo-full-256.png" type="image/png">
<img class="titleimg" src="./images/logo/logo-full-256.png" alt="OwlBoard Logo">
</picture>
<h2>Settings</h2>
<p>Change your OwlBoard settings.</p>
<p>Any settings you apply will only apply to the device you are using now.</p>
<p>Settings are not yet fully implemented, some options won't apply properly yet.</p>
<form>
<label>Personal Quick Links:</label><br>
<p>Enter one CRS/3ALPHA code per box</p>
<input type="text" maxlength="3" id="ql0" name="ql0" autocomplete="off" class="small-box">
<input type="text" maxlength="3" id="ql1" name="ql1" autocomplete="off" class="small-box"><br>
<input type="text" maxlength="3" id="ql2" name="ql2" autocomplete="off" class="small-box">
<input type="text" maxlength="3" id="ql3" name="ql3" autocomplete="off" class="small-box"><br>
<input type="text" maxlength="3" id="ql4" name="ql4" autocomplete="off" class="small-box">
<input type="text" maxlength="3" id="ql5" name="ql5" autocomplete="off" class="small-box"><br>
<input type="text" maxlength="3" id="ql6" name="ql6" autocomplete="off" class="small-box">
<input type="text" maxlength="3" id="ql7" name="ql7" autocomplete="off" class="small-box"><br>
<input type="text" maxlength="3" id="ql8" name="ql8" autocomplete="off" class="small-box">
<input type="text" maxlength="3" id="qp9" name="ql9" autocomplete="off" class="small-box"><br>
</form>
</body>
</html>

View File

@ -0,0 +1,9 @@
.small-box{
max-width: 100px;
height: 20px;
margin-top: 5px;
font-family: urwgothic, sans-serif;
text-align: center;
border-radius: 40px;
text-transform: uppercase;
}