From 90d93bf16ca748199602df880decbcea31ad29be Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 18 Nov 2020 23:42:42 +0000 Subject: [PATCH] Deployed eedbbc7 to 0.1 with MkDocs 1.1.2 and mike 0.5.5 --- 0.1/javascripts/extra.js | 28 +++++++++++++++++----------- 0.1/sitemap.xml.gz | Bin 212 -> 212 bytes latest/javascripts/extra.js | 28 +++++++++++++++++----------- latest/sitemap.xml.gz | Bin 212 -> 212 bytes 4 files changed, 34 insertions(+), 22 deletions(-) diff --git a/0.1/javascripts/extra.js b/0.1/javascripts/extra.js index 6bf97374..22f56f2f 100644 --- a/0.1/javascripts/extra.js +++ b/0.1/javascripts/extra.js @@ -1,12 +1,18 @@ -xhr.onload = function() { - var versions = JSON.parse(this.responseText); - - var realVersion = versions.find(function(i) { - return i.version === CURRENT_VERSION || - i.aliases.includes(CURRENT_VERSION); - }).version; - console.log(realVersion) - console.log(CURRENT_VERSION) -} +window.addEventListener("DOMContentLoaded", function() { + + var xhr = new XMLHttpRequest(); + xhr.open("GET", window.location + "../versions.json"); + xhr.onload = function() { + var versions = JSON.parse(this.responseText); + + var realVersion = versions.find(function(i) { + return i.version === CURRENT_VERSION || + i.aliases.includes(CURRENT_VERSION); + }).version; -console.log("hi") \ No newline at end of file + console.log(version) + console.log(CURRENT_VERSION) + }; + xhr.send(); + }); + \ No newline at end of file diff --git a/0.1/sitemap.xml.gz b/0.1/sitemap.xml.gz index 17ece32d918f767d79e1ba18d4f9f1ca5c0e5541..d47b81611a4b74df6bd9c23c9559f64586187e7e 100644 GIT binary patch delta 14 Vcmcb@c!iNozMF%iaN|U_a{wbp1o8j? delta 14 Vcmcb@c!iNozMF&N{JM#3=Kv)U1x)|| diff --git a/latest/javascripts/extra.js b/latest/javascripts/extra.js index 6bf97374..22f56f2f 100644 --- a/latest/javascripts/extra.js +++ b/latest/javascripts/extra.js @@ -1,12 +1,18 @@ -xhr.onload = function() { - var versions = JSON.parse(this.responseText); - - var realVersion = versions.find(function(i) { - return i.version === CURRENT_VERSION || - i.aliases.includes(CURRENT_VERSION); - }).version; - console.log(realVersion) - console.log(CURRENT_VERSION) -} +window.addEventListener("DOMContentLoaded", function() { + + var xhr = new XMLHttpRequest(); + xhr.open("GET", window.location + "../versions.json"); + xhr.onload = function() { + var versions = JSON.parse(this.responseText); + + var realVersion = versions.find(function(i) { + return i.version === CURRENT_VERSION || + i.aliases.includes(CURRENT_VERSION); + }).version; -console.log("hi") \ No newline at end of file + console.log(version) + console.log(CURRENT_VERSION) + }; + xhr.send(); + }); + \ No newline at end of file diff --git a/latest/sitemap.xml.gz b/latest/sitemap.xml.gz index 17ece32d918f767d79e1ba18d4f9f1ca5c0e5541..d47b81611a4b74df6bd9c23c9559f64586187e7e 100644 GIT binary patch delta 14 Vcmcb@c!iNozMF%iaN|U_a{wbp1o8j? delta 14 Vcmcb@c!iNozMF&N{JM#3=Kv)U1x)||