fix initial time, add about page, set logo as background
This commit is contained in:
41
index.html
41
index.html
@@ -42,7 +42,7 @@
|
|||||||
<td class="display-break" id="display-break-player2"> </td>
|
<td class="display-break" id="display-break-player2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="display-timer" colspan="3">30</td>
|
<td class="display-timer" colspan="3">60</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="display-bar" colspan="3"> </td>
|
<td class="display-bar" colspan="3"> </td>
|
||||||
@@ -108,6 +108,12 @@
|
|||||||
<button id="settings-fullscreen"><i class="fa-solid fa-up-right-and-down-left-from-center"></i></button>
|
<button id="settings-fullscreen"><i class="fa-solid fa-up-right-and-down-left-from-center"></i></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><label for="settings-about">About</label></td>
|
||||||
|
<td>
|
||||||
|
<button id="settings-about"><i class="fa-solid fa-info"></i></button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
@@ -133,8 +139,7 @@
|
|||||||
<td class="welcome-text">
|
<td class="welcome-text">
|
||||||
<h4>Todo:</h4>
|
<h4>Todo:</h4>
|
||||||
<p>
|
<p>
|
||||||
Play pool. Have fun. Keep an eye on the clock.<br>
|
Play pool. Have fun. Keep an eye on the clock.
|
||||||
<img id="welcome-confirm" src="12ball.png">
|
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -147,6 +152,36 @@
|
|||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<table class="modal invisible" id="about">
|
||||||
|
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2">about</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="about-text">
|
||||||
|
<h4>shtclck by froxxxy</h4>
|
||||||
|
<p>
|
||||||
|
for more info / issues / suggestions / ...<br>
|
||||||
|
visit the<br>
|
||||||
|
<a href="https://github.com/froxxxy/shtclck"><i class="fa-brands fa-github"></i> project</a>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr class="controls">
|
||||||
|
<td id="about-cancel"><i class="fa-solid fa-play"></i></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<img id="logo" src="12ball.png">
|
||||||
<script src="shtclck.js" type="text/javascript"></script>
|
<script src="shtclck.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
14
shtclck.css
14
shtclck.css
@@ -1,4 +1,8 @@
|
|||||||
/* generics */
|
/* generics */
|
||||||
|
a, a:visited {
|
||||||
|
color: #f12f12;
|
||||||
|
font-size: 15vh;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: #f12f12;
|
color: #f12f12;
|
||||||
@@ -101,11 +105,19 @@ td {
|
|||||||
margin: 5vh;
|
margin: 5vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.settings-inputs td {
|
.settings-inputs td {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logo {
|
||||||
|
position: fixed;
|
||||||
|
z-index: -1;
|
||||||
|
bottom: -29vh;
|
||||||
|
right: -5vw;
|
||||||
|
height: 120vh;
|
||||||
|
opacity: 0.3;
|
||||||
|
}
|
||||||
|
|
||||||
/* helpers */
|
/* helpers */
|
||||||
.invisible {
|
.invisible {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ if (document.cookie.length) {
|
|||||||
alternateBreak = cookies.alternateBreak ? (cookies.alternateBreak == 'true') : alternateBreak;
|
alternateBreak = cookies.alternateBreak ? (cookies.alternateBreak == 'true') : alternateBreak;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('welcome-confirm').addEventListener('click', toggleWelcome);
|
|
||||||
document.getElementById('welcome-play').addEventListener('click', toggleWelcome);
|
document.getElementById('welcome-play').addEventListener('click', toggleWelcome);
|
||||||
|
|
||||||
// Player
|
// Player
|
||||||
@@ -212,6 +211,13 @@ function setFullscreen() {
|
|||||||
|
|
||||||
document.getElementById('settings-fullscreen').addEventListener('click', setFullscreen);
|
document.getElementById('settings-fullscreen').addEventListener('click', setFullscreen);
|
||||||
|
|
||||||
|
function toggleAbout() {
|
||||||
|
document.getElementById('about').classList.toggle('invisible');
|
||||||
|
document.getElementById('settings').classList.toggle('invisible');
|
||||||
|
}
|
||||||
|
document.getElementById('settings-about').addEventListener('click', toggleAbout);
|
||||||
|
document.getElementById('about-cancel').addEventListener('click', toggleAbout);
|
||||||
|
|
||||||
document.getElementById('settings-cancel').addEventListener('click', toggleSettings);
|
document.getElementById('settings-cancel').addEventListener('click', toggleSettings);
|
||||||
|
|
||||||
function saveSettings() {
|
function saveSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user