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>
<style>
hide{
hide {
display: none;
}
@ -346,9 +346,9 @@
for (var i = 0; i < articlefolder.length; i++) {
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
}
})();
</script>
@ -488,16 +488,16 @@
</body>
<script>
window.addEventListener("click", function(){
window.addEventListener("click", function () {
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("displaypage").style.display = "none"
}
else{
else {
document.getElementById("homepage").style.display = "none"
document.getElementById("displaypage").innerHTML = articles.bengal
document.getElementById("displaypage").style.display = "initial"
document.getElementById("displaypage").style.display = "initial"
}
});
</script>