SigPlace/out/otherpage.html

48 lines
1.4 KiB
HTML
Raw Normal View History

2022-05-02 21:03:16 -05:00
<!DOCTYPE html>
<html>
<head>
<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>
</head>
<body>
<div class="contentBody">
2022-05-02 21:03:16 -05:00
This is a different webpage.<hr>
$ARTICLE_PREVIEW sigplace1
$ARTICLE_PREVIEW test articles/test1
$ARTICLE_PREVIEW test articles/test2
$ARTICLE_PREVIEW test articles/test3
$ARTICLE_PREVIEW curabitur vel tempus ex
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>
</body>
<footer>
</footer>
</html>
<hr/>
<h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments" id="comments"></div>
<script type="text/javascript">
function fetchComments() {
fetch("/COMMENTS?article=otherpage.html.comment").then((data)=>data.text())
.then((data)=>{
data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
})
}
fetchComments()
</script>