From 9f29bf095e9313e06b11a8482ed325c3df5f6606 Mon Sep 17 00:00:00 2001 From: ephellon Date: Wed, 10 Jul 2019 13:54:51 -0500 Subject: [PATCH] Update test page. Minor aesthetic error in background.js --- src/background.js | 2 +- src/options/test/index.html | 34 +++++++++++++++++++++++++++++++--- src/options/test/index.js | 24 +++++++++++++++++++----- 3 files changed, 51 insertions(+), 9 deletions(-) diff --git a/src/background.js b/src/background.js index 73a1422..8e7eee6 100644 --- a/src/background.js +++ b/src/background.js @@ -62,7 +62,7 @@ function ChangeStatus({ ITEM_ID, ITEM_TITLE, ITEM_TYPE, ID_PROVIDER, ITEM_YEAR, let FILE_TITLE = ITEM_TITLE.replace(/\-/g, ' ').replace(/[\s\:]{2,}/g, ' - ').replace(/[^\w\s\-\']+/g, ''), // File friendly title - SEARCH_TITLE = ITEM_TITLE.replace(/[\-\s]+/g, '-').replace(/[^\w\-\'\*\#]+/g, ''), + SEARCH_TITLE = ITEM_TITLE.replace(/[\-\s]+/g, '-').replace(/\s*&\s*/g, ' and ').replace(/[^\w\-\'\*\#]+/g, ''), // Search friendly title SEARCH_PROVIDER = /^im/i.test(ID_PROVIDER)? 'VO': /^tm/i.test(ID_PROVIDER)? 'GX': 'GG'; diff --git a/src/options/test/index.html b/src/options/test/index.html index 7d99d50..a4c9737 100644 --- a/src/options/test/index.html +++ b/src/options/test/index.html @@ -116,6 +116,29 @@ width: 75%; } + #description { + color: #FFF; + font-size: 20px; + text-indent: 5%; + overflow: overlay; + + left: 0; + padding-left: 1%; + position: absolute; + top: 0; + + width: 30%; + height: 100%; + } + + #frame[content=false] + #description { + opacity: 1 !important; + } + + #frame[content=true] + #description { + display: none; + } + /* Foot */ #foot { background: #0008; @@ -166,13 +189,15 @@ } #loading { - transition: all 0.5s; - left: calc(50% - 24px); position: absolute; top: calc(50% - 24px); } + [loading] { + transition: all 0.5s; + } + [loading=true] { opacity: 1; } @@ -204,9 +229,12 @@ + + +