From 2cfa8cec7c52de7603144603ee7f0d7119478e58 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sun, 11 Aug 2019 20:28:36 -0700 Subject: [PATCH] life --- data/life/life.js | 11 +++++++---- life.html | 26 +++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/data/life/life.js b/data/life/life.js index 3165be99..55e57c97 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -288,7 +288,10 @@ function inputCardArtName(cardArtNameInput) { function inputCardArtNameNumber(cardArtNameNumberInput) { playerList[parseInt(document.getElementById('inputPlayer').value) - 1].canvas.customVarImage.src = cardArtUrlList[cardArtNameNumberInput - 1] } -// document.getElementById("mainGrid").addEventListener("touchmove", function(event) { -// event.preventDefault() -// console.log("it ran?") -// }, false) \ No newline at end of file +document.getElementById("mainGrid").addEventListener("touchmove", function(event) { + event.preventDefault() + console.log("it ran?") +}, false) +function rollRNG() { + document.getElementById("rngOutput").innerHTML = Math.floor(Math.random() * (parseInt(document.getElementById("inputRNGMax").value) - parseInt(document.getElementById("inputRNGMin").value) + 1) + parseInt(document.getElementById("inputRNGMin").value)) +} \ No newline at end of file diff --git a/life.html b/life.html index 95d00a07..4e7a6d96 100644 --- a/life.html +++ b/life.html @@ -74,6 +74,13 @@

+
+
@@ -173,7 +180,8 @@ margin: 60pt 0px 0px 0px; padding: 10pt; overflow-y: auto; - height: calc(100% - 70pt); + max-width: calc(100vw - 23pt); + height: calc(100% - 60pt); border: 2px solid white; touch-action: pan-y; -webkit-overflow-scrolling: touch; @@ -185,6 +193,8 @@ display: inline-block; margin-bottom: 10pt; padding: 8pt; + max-width: calc(100% - 16pt); + overflow-x: hidden; } .colorInput { border: 0px; @@ -201,6 +211,20 @@ input { width: 7.5em; } + .smallInput { + width: 3em; + } + .rng { + margin-top: 6pt; + border: 1px solid white; + height: 5em; + min-width: 5em; + border-radius: 1em; + background-color: #222; + } + .rngNumber { + font-size: 4em; + } \ No newline at end of file