html with section IDs

This commit is contained in:
Vivek Teega 2020-06-26 17:39:58 +05:30
parent 3253cb125e
commit f47055b52d
2 changed files with 1227 additions and 554 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
<title>RanchiMall Times</title> <title>RanchiMall Times</title>
<style> <style>
hide{ hide {
display: none; display: none;
} }
@ -346,7 +346,7 @@
for (var i = 0; i < articlefolder.length; i++) { for (var i = 0; i < articlefolder.length; i++) {
articlehtml = await (await fetch(articlefolder[i]["download_url"])).text() articlehtml = await (await fetch(articlefolder[i]["download_url"])).text()
articles[articlefolder[i]['name'].slice(0,articlefolder[i]['name'].length - 5)] = articlehtml articles[articlefolder[i]['name'].slice(0, articlefolder[i]['name'].length - 5)] = articlehtml
} }
})(); })();
@ -488,13 +488,13 @@
</body> </body>
<script> <script>
window.addEventListener("click", function(){ window.addEventListener("click", function () {
console.log("Registered a click") console.log("Registered a click")
if(document.getElementById("homepage").style.display == "none"){ if (document.getElementById("homepage").style.display == "none") {
document.getElementById("homepage").style.display = "initial" document.getElementById("homepage").style.display = "initial"
document.getElementById("displaypage").style.display = "none" document.getElementById("displaypage").style.display = "none"
} }
else{ else {
document.getElementById("homepage").style.display = "none" document.getElementById("homepage").style.display = "none"
document.getElementById("displaypage").innerHTML = articles.bengal document.getElementById("displaypage").innerHTML = articles.bengal
document.getElementById("displaypage").style.display = "initial" document.getElementById("displaypage").style.display = "initial"