Changed color of "Read Article | Added another "go back" button at the bottom of article page

This commit is contained in:
Vivek Teega 2020-06-28 08:53:25 +05:30
parent 24a2545cce
commit c783d34775

View File

@ -403,7 +403,7 @@
</div>
<p>${parsedarticles[parsedArticlesKeys[i]].sections[0].paragraph}</p>
<p>${parsedarticles[parsedArticlesKeys[i]].sections[1].paragraph}...</p>
<div id="goforward" onclick="switchtoArticle(this.parentNode)">
<div id="goforward" onclick="switchtoArticle(this.parentNode)" style="color:#DC143C">
Read article
<i class="fa fa-angle-double-right" aria-hidden="true"></i>
</div>
@ -564,6 +564,10 @@
<div id="displaypage">
</div>
<div id="gobackbottom">
<i class="fa fa-angle-double-left" aria-hidden="true"></i>
Go Back
</div>
</div>
</body>
@ -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 {
}
});
</script>
</html>