From 88a8c4e87ec7561fb32a8a64566854db221c92b6 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sat, 10 Aug 2019 15:20:24 -0700 Subject: [PATCH] life --- data/life/life.js | 11 ++++++++++- life.html | 12 +++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/data/life/life.js b/data/life/life.js index 0ed5bf1e..de9f5d2c 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -213,4 +213,13 @@ function updateColorSelector() { } function updateBackgroundColor(color) { playerList[parseInt(document.getElementById("inputPlayer").value) - 1].canvas.customVarColor = color -} \ No newline at end of file +} + + +//Wake lock! +var noSleep = new NoSleep(); +function enableNoSleep() { + noSleep.enable(); + document.removeEventListener('touchstart', enableNoSleep, false); +} +document.addEventListener('touchstart', enableNoSleep, false); \ No newline at end of file diff --git a/life.html b/life.html index cfe9dcad..7a57a496 100644 --- a/life.html +++ b/life.html @@ -48,7 +48,7 @@ - +
@@ -69,7 +69,7 @@
@@ -196,7 +196,7 @@ margin: 90pt 0px 0px 0px; padding: 20pt; overflow-y: scroll; - max-height: calc(100% - 180pt); + max-height: calc(100% - 90pt); border: 1px solid white; } .menuOption { @@ -207,6 +207,12 @@ margin-bottom: 15pt; padding: 8pt; } + .colorInput { + border: 0px; + padding: 0px; + width: 4.5em; + height: 2em; + } .hidden { display: none; }