Changed color of "Read Article | Added another "go back" button at the bottom of article page
This commit is contained in:
parent
24a2545cce
commit
c783d34775
17
index.html
17
index.html
@ -403,7 +403,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>${parsedarticles[parsedArticlesKeys[i]].sections[0].paragraph}</p>
|
<p>${parsedarticles[parsedArticlesKeys[i]].sections[0].paragraph}</p>
|
||||||
<p>${parsedarticles[parsedArticlesKeys[i]].sections[1].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
|
Read article
|
||||||
<i class="fa fa-angle-double-right" aria-hidden="true"></i>
|
<i class="fa fa-angle-double-right" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
@ -564,6 +564,10 @@
|
|||||||
<div id="displaypage">
|
<div id="displaypage">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div id="gobackbottom">
|
||||||
|
<i class="fa fa-angle-double-left" aria-hidden="true"></i>
|
||||||
|
Go Back
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</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>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user