From 25039f2b345f91dbcbd6b183df49922116ddeb8b Mon Sep 17 00:00:00 2001 From: mv Date: Sun, 10 Nov 2024 14:19:23 -0300 Subject: [PATCH] Updates --- english/index.html | 2 +- index.b69f2b5d.js => index.c9c12371.js | 8 ++++++-- index.html | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) rename index.b69f2b5d.js => index.c9c12371.js (94%) diff --git a/english/index.html b/english/index.html index b5747cd..d290c8a 100644 --- a/english/index.html +++ b/english/index.html @@ -118,6 +118,6 @@

Repetitions

- + \ No newline at end of file diff --git a/index.b69f2b5d.js b/index.c9c12371.js similarity index 94% rename from index.b69f2b5d.js rename to index.c9c12371.js index 8dd6136..d0da484 100644 --- a/index.b69f2b5d.js +++ b/index.c9c12371.js @@ -2,9 +2,13 @@ var imgarr = [ ' ', ' ' ]; +const currentURL = window.location.href; +const urlObj = new URL(currentURL); +const repoName = urlObj.pathname.split("/")[1]; +console.log(repoName); var hrefs = [ - "/", - "/english" + `/${repoName}/`, + `/${repoName}/english` ]; var x, i, j, l, ll, selElmnt, a, b, c; /* Look for any elements with the class "custom-select": */ x = document.getElementsByClassName("custom-select"); diff --git a/index.html b/index.html index 8d7e99c..7e30877 100644 --- a/index.html +++ b/index.html @@ -117,6 +117,6 @@

Repetições

- +