From 57c37a57e9c65b16ac4a9bafc4ce45b7dd82ac26 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 15 Sep 2019 14:55:57 -0700 Subject: Add optional javascript for adding videos to playlists without the browser cancelling loading of the video, and to display a status message --- youtube/static/shared.css | 12 ++++++++ youtube/templates/base.html | 71 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 82 insertions(+), 1 deletion(-) (limited to 'youtube') diff --git a/youtube/static/shared.css b/youtube/static/shared.css index 72d290a..3ce7d4a 100644 --- a/youtube/static/shared.css +++ b/youtube/static/shared.css @@ -107,6 +107,18 @@ body{ flex-grow: 1; padding-bottom: 20px; } + #message-box{ + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + border-style: outset; + padding: 20px; + background-color: var(--interface-color); + opacity: 0; + transition-property: opacity; + transition-duration: 0.3s; + } .dropdown{ diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 9127efa..79bff96 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -3,7 +3,7 @@ {{ page_title }} - + @@ -103,6 +103,75 @@ +
{% block main %} -- cgit v1.2.3