From 4b61a3920b062388c59d50d1ceb182464cbbda30 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 21 Jul 2021 12:28:37 +0200 Subject: [PATCH] sneed --- ruqqus/assets/js/all_js.js | 15 +-------------- ruqqus/templates/userpage.html | 14 +++++++++++++- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/ruqqus/assets/js/all_js.js b/ruqqus/assets/js/all_js.js index ef6eb2138..f2f801a4a 100644 --- a/ruqqus/assets/js/all_js.js +++ b/ruqqus/assets/js/all_js.js @@ -1297,17 +1297,4 @@ $('.text-expand').click(function(event){ $('.text-expand-icon-'+id).toggleClass('fa-expand-alt'); $('.text-expand-icon-'+id).toggleClass('fa-compress-alt'); -}) - -if (window.location.pathname.includes('/@')) { - var userid = document.getElementById("userid").value; - if (userid != "nosong") - { - var audio = new Audio(`/songs/${userid}`); - audio.loop=true; - audio.play(); - document.getElementById('userpage').addEventListener('click', () => { - if (audio.paused) audio.play(); - }, {once : true}); - } -} \ No newline at end of file +}) \ No newline at end of file diff --git a/ruqqus/templates/userpage.html b/ruqqus/templates/userpage.html index 1c5add6b6..6d8f69f8f 100644 --- a/ruqqus/templates/userpage.html +++ b/ruqqus/templates/userpage.html @@ -45,7 +45,19 @@ {% block desktopUserBanner %} - + +