SigPlace/out/testfile.html

54 lines
1.6 KiB
HTML
Raw Normal View History

2022-05-02 18:16:03 +00:00
<!DOCTYPE html>
<html>
<head>
2022-05-02 21:03:16 -05:00
<link rel="stylesheet" type="text/css" href="/reset.css">
<link rel="stylesheet" type="text/css" href="/sig.css">
2022-05-04 14:01:54 +00:00
<meta charset="UTF-8">
2022-05-02 21:03:16 -05:00
<script type="text/javascript">
function loadCodeBackground() {
fetch("/codeBackground").then((data)=>data.text())
2022-05-02 21:03:16 -05:00
.then((data)=>{
document.getElementById("codeForeground").innerText=data
document.getElementById("codeBackground").innerText=data
})
}
loadCodeBackground();
</script>
2022-05-02 18:16:03 +00:00
</head>
<body>
<div class="contentBody">
2022-05-02 18:16:03 +00:00
SigPlace
-SigPlace
===
2022-05-02 21:03:16 -05:00
<br/><br/>
<a href="otherpage.html">Other Page!</a>
2022-05-03 14:58:01 +00:00
</div> <!--End Content Body-->
2022-05-02 21:03:16 -05:00
<div class="codeForeground" id="codeForeground"></div>
<div class="codeBackground" id="codeBackground"></div>
2022-05-02 18:16:03 +00:00
</body>
<footer>
</footer>
</html>
<hr/>
<div id="commentContainer" style="visibility:hidden;">
<h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments" id="comments"></div>
</div>
<script type="text/javascript">
function fetchComments() {
fetch("/COMMENTS?article=testfile.html.comment").then((data)=>data.text())
.then((data)=>{
data=data.split("\n");
for (var i=0;i<data.length;i++) {
if (i==0) {
document.getElementById("commentCounter").innerText=data[i]
} else {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}
document.getElementById("commentContainer").style.visibility="visible"
})
}
fetchComments()
</script>