From f29a706fd4af6c679fe8db53413922c8e7ddd925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Thu, 16 Aug 2018 22:34:00 +0200 Subject: [PATCH] Shellscript updating --- about.html | 3 ++- about_us.html | 3 ++- content.html | 3 ++- credits.html | 3 ++- gallery.html | 3 ++- licensing.html | 3 ++- playguide.html | 3 ++- releases.html | 3 ++- videos.html | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/about.html b/about.html index 78e35d8..afed323 100644 --- a/about.html +++ b/about.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/about_us.html b/about_us.html index e802f93..aa36e9b 100644 --- a/about_us.html +++ b/about_us.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/content.html b/content.html index b0f1bc6..8495cb7 100644 --- a/content.html +++ b/content.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/credits.html b/credits.html index 5fdd5f0..c3968e1 100644 --- a/credits.html +++ b/credits.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/gallery.html b/gallery.html index 3d9bd7d..ea5316d 100644 --- a/gallery.html +++ b/gallery.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/licensing.html b/licensing.html index 06a2fa6..c38c2ea 100644 --- a/licensing.html +++ b/licensing.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/playguide.html b/playguide.html index 8339f1e..b24369f 100644 --- a/playguide.html +++ b/playguide.html @@ -67,7 +67,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/releases.html b/releases.html index d4b22fd..51a243d 100644 --- a/releases.html +++ b/releases.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent; diff --git a/videos.html b/videos.html index 528359c..50e9844 100644 --- a/videos.html +++ b/videos.html @@ -61,7 +61,8 @@ var last="" var objDiv=document.getElementById("toc") function scroll() { - var elem=document.getElementsByClassName("nav-link active")[0] + var elem=document.getElementsByClassName("nav-link active") + elem=elem[elem.length-1] console.log(elem.textContent) if (elem != null && last != elem.textContent) { last=elem.textContent;