html with section IDs
This commit is contained in:
parent
3253cb125e
commit
f47055b52d
1767
articles/bengal.html
1767
articles/bengal.html
File diff suppressed because one or more lines are too long
14
index.html
14
index.html
@ -5,7 +5,7 @@
|
|||||||
<title>RanchiMall Times</title>
|
<title>RanchiMall Times</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
hide{
|
hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,9 +346,9 @@
|
|||||||
|
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -488,16 +488,16 @@
|
|||||||
</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"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user