From c783d3477524396fdd67004aa0cad575e4a1b6b8 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Sun, 28 Jun 2020 08:53:25 +0530 Subject: [PATCH] Changed color of "Read Article | Added another "go back" button at the bottom of article page --- index.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 830663b..cf3d5a2 100644 --- a/index.html +++ b/index.html @@ -403,7 +403,7 @@

${parsedarticles[parsedArticlesKeys[i]].sections[0].paragraph}

${parsedarticles[parsedArticlesKeys[i]].sections[1].paragraph}...

-
+
Read article
@@ -564,6 +564,10 @@
+
+ + Go Back +
@@ -578,6 +582,17 @@ } }); + + document.getElementById("gobackbottom").addEventListener("click", function () { + console.log("Registered a click") + if (document.getElementById("homepage").style.display == "none") { + document.getElementById("homepage").style.display = "initial" + document.getElementById("displaypagemain").style.display = "none" + } + else { + + } + }); \ No newline at end of file