From 8be374bcb5744a011465239a97d7fd9ee241c387 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 21 Nov 2021 11:44:48 +0100 Subject: [PATCH] player --- app/static/css/partials/_ascroll.scss | 6 ++++++ app/static/js/player.js | 1 + 2 files changed, 7 insertions(+) diff --git a/app/static/css/partials/_ascroll.scss b/app/static/css/partials/_ascroll.scss index 5223961..9100220 100755 --- a/app/static/css/partials/_ascroll.scss +++ b/app/static/css/partials/_ascroll.scss @@ -1,3 +1,9 @@ +#ascroll { + iframe.player { + width: 100%; + min-height: calc(100vh - 64px); + } +} #ascroll { font-family: "noto_sans"; width: 100%; diff --git a/app/static/js/player.js b/app/static/js/player.js index 1d1ccaf..29948ef 100644 --- a/app/static/js/player.js +++ b/app/static/js/player.js @@ -1,5 +1,6 @@ var iframe = document.createElement('iframe') iframe.src = pandoraURL + '/edits/' + config.edit + '#embed?matchRatio=true&showInfo=true' +iframe.classList.add('player') var ascroll = document.querySelector('#ascroll') ascroll.appendChild(iframe)