From 4aecae63421cd42b008b9e6fa99d0fe030f6799f Mon Sep 17 00:00:00 2001 From: quoije Date: Mon, 15 Aug 2022 02:43:01 -0400 Subject: [PATCH 1/2] fix cookie? --- public/assets/js/site.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/assets/js/site.js b/public/assets/js/site.js index cba80ef..d6168b3 100644 --- a/public/assets/js/site.js +++ b/public/assets/js/site.js @@ -67,7 +67,7 @@ jQuery(function($) { audio.addEventListener('timeupdate',function(){ var currentTime = audio.currentTime; - Cookies.set("lastep-time", currentTime); + Cookies.set("lastep-time", currentTime, { expires: 365 }); },false); }); @@ -87,9 +87,9 @@ jQuery(function($) { document.getElementById("player").setAttribute('src', linkdec); document.getElementById("player").load(); document.getElementById("player").play(); - Cookies.set("lastep-title", title) - Cookies.set("lastep-src", audio.src); - Cookies.set("lastep-body", body) + Cookies.set("lastep-title", title, { expires: 365 }) + Cookies.set("lastep-src", audio.src, { expires: 365 }); + Cookies.set("lastep-body", body, { expires: 365 }) } From 9f36b512a893a4955dde67afea5f1b675cf31c05 Mon Sep 17 00:00:00 2001 From: quoije Date: Mon, 15 Aug 2022 22:43:05 -0400 Subject: [PATCH 2/2] add music playing icon --- public/assets/css/oof.css | 4 ++ public/assets/img/stop-button-svgrepo-com.svg | 39 +++++++++++++++++++ public/assets/js/site.js | 27 +++++++++---- public/index.html | 5 ++- 4 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 public/assets/img/stop-button-svgrepo-com.svg diff --git a/public/assets/css/oof.css b/public/assets/css/oof.css index 3bc7b22..851a8ff 100644 --- a/public/assets/css/oof.css +++ b/public/assets/css/oof.css @@ -60,6 +60,10 @@ body { font-style: normal; } +#audioplayerdivstop { + margin-bottom: 160px; +} + #ws:link { text-decoration: none; color: inherit; diff --git a/public/assets/img/stop-button-svgrepo-com.svg b/public/assets/img/stop-button-svgrepo-com.svg new file mode 100644 index 0000000..bd09aff --- /dev/null +++ b/public/assets/img/stop-button-svgrepo-com.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/js/site.js b/public/assets/js/site.js index d6168b3..2b48a4e 100644 --- a/public/assets/js/site.js +++ b/public/assets/js/site.js @@ -4,7 +4,6 @@ $(document).ready((function(){$("[data-bss-hover-animate]").mouseenter((function /*! js-cookie v3.0.1 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t @@ -110,11 +110,14 @@
+
+
+