From c437406b3ecb830530d3cfa2b5410f423da0e0e4 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 2 Aug 2020 01:33:30 -0400 Subject: [PATCH] css --- src/pregmod/FCTV/FCTV.css | 8 ++++++++ src/pregmod/FCTV/FCTV.js | 31 +++++++++++++++---------------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/pregmod/FCTV/FCTV.css b/src/pregmod/FCTV/FCTV.css index 8ce45fa7750..df4ec06dbed 100644 --- a/src/pregmod/FCTV/FCTV.css +++ b/src/pregmod/FCTV/FCTV.css @@ -8,6 +8,7 @@ display: grid; float:left; height:min-content; + width:min-content; padding:20px; } .FCTVremote-numbers { @@ -15,4 +16,11 @@ grid-gap: 3px; grid-template-columns: repeat(3, min-content); justify-items:center; +} +.FCTVremote-button { + border-style: solid; + border-color: darkgray; + border-width: 1px; + padding: 3px; + margin: 2px; } \ No newline at end of file diff --git a/src/pregmod/FCTV/FCTV.js b/src/pregmod/FCTV/FCTV.js index 02baa40df9e..5797789ceba 100644 --- a/src/pregmod/FCTV/FCTV.js +++ b/src/pregmod/FCTV/FCTV.js @@ -325,13 +325,22 @@ globalThis.FCTVdisplay = function({ usedRemote = 0, seeAll = 0 } = {}) { } div = document.createElement("div"); - div.classList.add("FCTVremote-numbers"); + div.classList.add("FCTVremote-numbers", /* "FCTVremote-button" */); for (const button of buttons) { div.append(button); } p.append(div); - - // <br> + App.UI.DOM.appendNewElement( + "div", + p, + App.UI.DOM.link( + `Random`, + () => { + watch({ usedRemote: 0, seeAll: seeAll }); + } + ), + ["FCTVremote-button"] + ); if (V.cheatMode > 0 || V.debugMode > 0) { App.UI.DOM.appendNewElement( "div", @@ -346,19 +355,10 @@ globalThis.FCTVdisplay = function({ usedRemote = 0, seeAll = 0 } = {}) { } watch({ usedRemote: usedRemote, seeAll: seeAll }); } - ) + ), + ["FCTVremote-button"] ); } - App.UI.DOM.appendNewElement( - "div", - p, - App.UI.DOM.link( - `Randomise channel selection`, - () => { - watch({ usedRemote: 0, seeAll: seeAll }); - } - ) - ); return p; } } @@ -379,11 +379,10 @@ globalThis.FCTVdisplay = function({ usedRemote = 0, seeAll = 0 } = {}) { epToShow = jsRandom(0, availableEp-1); } FCTV.incrementChannel(sel); - console.log(channel, epToShow); let slave; if (channel.episode[epToShow].slaves) { slave = channel.episode[epToShow].slaves[0]; - if (sel !== 3) { // Art for the slave market will be shown in longSlave + if (channel.episode.disableSelection) { // Art for the slave market will be shown in longSlave App.Events.drawEventArt(frag, slave); } } -- GitLab