From edadc48bc62a5f30468e90ae43874b58a0d2882a Mon Sep 17 00:00:00 2001 From: RiedleroD Date: Wed, 10 May 2023 10:53:20 +0200 Subject: [PATCH 1/4] fixed identation --- static/ytr.html | 119 ++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 60 deletions(-) diff --git a/static/ytr.html b/static/ytr.html index 38693f7..fb9d2a5 100644 --- a/static/ytr.html +++ b/static/ytr.html @@ -1,75 +1,74 @@ - Video site chooser - - + #pipedbtn {background-color: darkred;} /* Piped */ + #ytbtn {background-color: red;} /* YouTube */ + #odybtn {background-color: purple;} /* Odysee */ + #ptbtn {background-color: darkorange;} /* PeerTube */ + - - -

Where do you want to watch this video?

- Piped (il.ax) - YouTube* - Odysee* - PeerTube -

* = not freedom and/or privacy respecting.

+ //wait for page to load before executing js, so the elements actually exist + window.addEventListener('load',()=>{ + changeHref('yt',codeyt); + changeHref('piped',codeyt); + changeHref('pt',codept); + changeHref('ody',codeody); + }); + +

Where do you want to watch this video?

+ Piped (il.ax) + YouTube* + Odysee* + PeerTube +

* = not freedom and/or privacy respecting.

From b12c7293c3c3b0eeea159c49c8dd3d3147d54d44 Mon Sep 17 00:00:00 2001 From: RiedleroD Date: Wed, 10 May 2023 10:54:03 +0200 Subject: [PATCH 2/4] added charset=utf8 --- static/ytr.html | 1 + 1 file changed, 1 insertion(+) diff --git a/static/ytr.html b/static/ytr.html index fb9d2a5..2aa850f 100644 --- a/static/ytr.html +++ b/static/ytr.html @@ -1,6 +1,7 @@ + Video site chooser From 948c95c18796db017ee7798c492191e2e8670359 Mon Sep 17 00:00:00 2001 From: RiedleroD Date: Wed, 10 May 2023 11:01:33 +0200 Subject: [PATCH 4/4] moved script into head & removed async because it only applies to src="" scripts --- static/ytr.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/ytr.html b/static/ytr.html index ec70ede..b8fbb3f 100644 --- a/static/ytr.html +++ b/static/ytr.html @@ -43,9 +43,7 @@ #odybtn {background-color: purple} /* Odysee */ #ptbtn {background-color: darkorange} /* PeerTube */ - - - - + +

Where do you want to watch this video?

Piped (il.ax) YouTube*