From 9a229ec1f976dee897b8f5ffc49298138ece9652 Mon Sep 17 00:00:00 2001 From: Leopere Date: Fri, 7 Mar 2025 10:51:01 -0500 Subject: [PATCH] Remove skip-to-content functionality completely --- .../showerloop/public/components/index.html | 2 +- docker/showerloop/public/css/custom.css | 2 -- .../showerloop/public/how-it-works/index.html | 2 +- docker/showerloop/public/index.html | 15 ++++---- .../showerloop/public/js/skip-to-content.js | 33 ----------------- .../public/js/skip-to-content.min.js | 1 - .../public/js/skip-to-content.modern.js | 36 ------------------- .../public/js/skip-to-content.modern.min.js | 1 - docker/showerloop/public/licenses/index.html | 2 +- docker/showerloop/public/make-it/index.html | 2 +- .../showerloop/public/posts/blog1/index.html | 2 +- .../showerloop/public/posts/blog2/index.html | 2 +- .../showerloop/public/posts/blog3/index.html | 2 +- .../showerloop/public/posts/blog4/index.html | 2 +- docker/showerloop/public/posts/index.html | 2 +- docker/showerloop/public/research/index.html | 2 +- .../chocolate/layouts/partials/header.html | 24 +------------ .../themes/chocolate/static/css/custom.css | 2 -- 18 files changed, 18 insertions(+), 116 deletions(-) delete mode 100644 docker/showerloop/public/js/skip-to-content.js delete mode 100644 docker/showerloop/public/js/skip-to-content.min.js delete mode 100644 docker/showerloop/public/js/skip-to-content.modern.js delete mode 100644 docker/showerloop/public/js/skip-to-content.modern.min.js diff --git a/docker/showerloop/public/components/index.html b/docker/showerloop/public/components/index.html index 0719b99..7e1fd72 100644 --- a/docker/showerloop/public/components/index.html +++ b/docker/showerloop/public/components/index.html @@ -3,7 +3,7 @@ import * as utils from '/js/utils.modern.min.js'; window.utilsModule = utils; -
Skip to Content

Recent News

2 Ways to Be Economical When Showering With an Injury

It's extremely challenging to lead your daily life while sustaining an injury. And yet, dealing with sports injuries is something that most of us will have to go through, with nearly 2 million sports-related injuries affecting high school athletes alone per year. Most of us know the feeling of attempting to take a shower or bath when your arm is wrapped in a cast and cannot get wet. It's a defeated feeling, and it can quickly take away the motivation to shower or bathe in the first place. After all, wouldn't it be easier to not deal with the challenge? Furthermore, you may also be concerned that showering with your sports-related injury will be a longer process than a normal shower, making the entire ordeal less environmentally friendly. While there are ways to make sure you are being economical while showering, like being conscientious of what you put down the drain, you may not always be thinking about the environment when trying to avoid getting your injury wet in the shower. Fortunately, there are two ways you can be economical about your water usage while showering with an injury, including:

Don't Put These Things Down The Shower Drain!

Natural water in Finland is some of the most polluted water in Europe (read the discussions in the article). You might be contributing to its pollution without realizing it, such as if you're putting things down the drain that you really shouldn't. Making your shower eco-friendly should be about saving water as well as preventing water contamination. Here's what you can do to be greener and cleaner!

In Finland, people use an average of 140 liters of water every day. By installing a product such as Showerloop into your shower, you can save water and energy. Showerloop reuses water while you shower so that it doesn't go to waste – and you don't have to feel guilty about taking longer showers. However, that's just Step One to ensuring a more eco-friendly shower. Step Two involves preventing toxins from ending up in water systems and the environment. That means you can enjoy showering without worrying about how you're harming the water and wildlife.

\ No newline at end of file diff --git a/docker/showerloop/public/js/skip-to-content.js b/docker/showerloop/public/js/skip-to-content.js deleted file mode 100644 index fdfba21..0000000 --- a/docker/showerloop/public/js/skip-to-content.js +++ /dev/null @@ -1,33 +0,0 @@ -document.addEventListener('DOMContentLoaded', function() { - // Wait for jQuery to be defined - function checkJQuery() { - if (window.jQuery) { - initSkipToContent(jQuery); - } else { - setTimeout(checkJQuery, 50); - } - } - - checkJQuery(); -}); - -function initSkipToContent($) { - $('.skip-to-content').click(function (e){ - skipTo(); - e.preventDefault(); - }); - $(".skip-to-content").keyup(function (e){ - if(e.which == '13'){ - skipTo(); - e.preventDefault(); - } - }); - - function skipTo(){ - $('main').attr("tabindex",0).focus(); - $('html,body').animate({ - scrollTop: ($('main').offset().top) - }); - } -} - diff --git a/docker/showerloop/public/js/skip-to-content.min.js b/docker/showerloop/public/js/skip-to-content.min.js deleted file mode 100644 index a08a1ff..0000000 --- a/docker/showerloop/public/js/skip-to-content.min.js +++ /dev/null @@ -1 +0,0 @@ -document.addEventListener("DOMContentLoaded",(function(){function checkJQuery(){if(window.jQuery){initSkipToContent(jQuery)}else{setTimeout(checkJQuery,50)}}checkJQuery()}));function initSkipToContent($){$(".skip-to-content").click((function(e){skipTo();e.preventDefault()}));$(".skip-to-content").keyup((function(e){if(e.which=="13"){skipTo();e.preventDefault()}}));function skipTo(){$("main").attr("tabindex",0).focus();$("html,body").animate({scrollTop:$("main").offset().top})}} \ No newline at end of file diff --git a/docker/showerloop/public/js/skip-to-content.modern.js b/docker/showerloop/public/js/skip-to-content.modern.js deleted file mode 100644 index 229c45c..0000000 --- a/docker/showerloop/public/js/skip-to-content.modern.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Skip to content functionality with modern ES syntax - */ -document.addEventListener('DOMContentLoaded', () => { - // Wait for jQuery to be defined - const checkJQuery = () => { - if (window.jQuery) { - initSkipToContent(jQuery); - } else { - setTimeout(checkJQuery, 50); - } - }; - - checkJQuery(); -}); - -function initSkipToContent($) { - $('.skip-to-content').click(e => { - skipTo(); - e.preventDefault(); - }); - - $('.skip-to-content').keyup(e => { - if (e.which === 13) { - skipTo(); - e.preventDefault(); - } - }); - - function skipTo() { - $('main').attr('tabindex', 0).focus(); - $('html,body').animate({ - scrollTop: $('main').offset().top - }); - } -} \ No newline at end of file diff --git a/docker/showerloop/public/js/skip-to-content.modern.min.js b/docker/showerloop/public/js/skip-to-content.modern.min.js deleted file mode 100644 index 6c216bc..0000000 --- a/docker/showerloop/public/js/skip-to-content.modern.min.js +++ /dev/null @@ -1 +0,0 @@ -import{onDOMReady as t,$ as n,addEvent as i}from"./utils.js";t((function(){const t=n(".skip-to-content"),o=n("#main-content, main, .main-content, article");t&&o&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),i(t,"click",(t=>{t.preventDefault(),o.focus(),o.scrollIntoView({behavior:"smooth",block:"start"})})))}));//# sourceMappingURL=skip-to-content.modern.min.js.map diff --git a/docker/showerloop/public/licenses/index.html b/docker/showerloop/public/licenses/index.html index 0f376ed..45e47aa 100644 --- a/docker/showerloop/public/licenses/index.html +++ b/docker/showerloop/public/licenses/index.html @@ -3,7 +3,7 @@ import * as utils from '/js/utils.modern.min.js'; window.utilsModule = utils; -
Skip to Content