Corrected bug where file may not exist when checking for cached modified date

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago
parent fab32f9c4d
commit e8b7d8d2d6
  1. 16
      out/DIRECTORY_LISTING
  2. 14
      out/articles/DIRECTORY_LISTING
  3. 7
      out/articles/Love Live! Custom Arcade Controller.article
  4. 7
      out/articles/Love Live! Custom Arcade Controller.article.html
  5. 7
      out/articles/curabitur vel tempus ex.article
  6. 7
      out/articles/curabitur vel tempus ex.article.html
  7. 7
      out/articles/sigplace1.article
  8. 7
      out/articles/sigplace1.article.html
  9. 12
      out/articles/test articles/DIRECTORY_LISTING
  10. 7
      out/articles/test articles/test1.article
  11. 7
      out/articles/test articles/test1.article.html
  12. 7
      out/articles/test articles/test2.article
  13. 7
      out/articles/test articles/test2.article.html
  14. 7
      out/articles/test articles/test3.article
  15. 7
      out/articles/test articles/test3.article.html
  16. 7
      out/otherpage.html
  17. 7
      out/reset.css
  18. 7
      out/sig.css
  19. 7
      out/testfile.html
  20. 7
      out/uploadform.html
  21. 3
      ref/COMMENT.html
  22. 2
      sigServer.java

@ -17,14 +17,14 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-07-26T19:09:28.109335Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-07-26T19:09:28.049335Z gitpod 3148</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-07-26T19:09:28.053335Z gitpod 1452</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-07-26T19:09:28.053335Z gitpod 1600</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-07-26T19:09:28.069335Z gitpod 1396</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-07-26T19:09:28.101335Z gitpod 58</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-07-26T19:09:28.061335Z gitpod 7435</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-07-26T19:09:28.073335Z gitpod 1314</div>
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-07-26T19:19:28.925305Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-07-26T19:19:28.837305Z gitpod 3456</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-07-26T19:19:28.837305Z gitpod 1760</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-07-26T19:19:28.841305Z gitpod 1908</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-07-26T19:19:28.861305Z gitpod 1704</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-07-26T19:19:28.917305Z gitpod 58</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-07-26T19:19:28.849305Z gitpod 7743</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-07-26T19:19:28.861305Z gitpod 1622</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -17,13 +17,13 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-07-26T19:09:27.577335Z gitpod 1031</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-07-26T19:09:28.077335Z gitpod 147</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-07-26T19:09:27.621335Z gitpod 1252</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-07-26T19:09:28.049335Z gitpod 81366</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-07-26T19:09:28.073335Z gitpod 1748</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-07-26T19:09:28.085335Z gitpod 1969</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-07-26T19:09:28.093335Z gitpod 82083</div>
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-07-26T19:19:28.385305Z gitpod 1339</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-07-26T19:19:28.873305Z gitpod 147</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-07-26T19:19:28.421305Z gitpod 1560</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-07-26T19:19:28.833305Z gitpod 81674</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-07-26T19:19:28.865305Z gitpod 2056</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-07-26T19:19:28.881305Z gitpod 2277</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-07-26T19:19:28.893305Z gitpod 82391</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -6,16 +6,23 @@ For over a year since I first got into <u>Love Live! School Idol Festival ~after
<br/>
</div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div>%CONDITIONAL_EXPAND%</div>
<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=Love Live! Custom Arcade Controller.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()

@ -25,16 +25,23 @@ For over a year since I first got into <u>Love Live! School Idol Festival ~after
<br/>
</div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div></div>
<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=Love Live! Custom Arcade Controller.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()

@ -10,16 +10,23 @@ Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut.
</p>
</div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div>%CONDITIONAL_EXPAND%</div>
<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=curabitur vel tempus ex.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()

@ -29,16 +29,23 @@ Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut.
</p>
</div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div></div>
<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=curabitur vel tempus ex.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()

@ -485,16 +485,23 @@ Here we demonstrate the love live logo. But wait, it's literally like in the mid
</p>
</div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div>%CONDITIONAL_EXPAND%</div>
<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=sigplace1.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()

@ -504,16 +504,23 @@ Here we demonstrate the love live logo. But wait, it's literally like in the mid
</p>
</div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div></div>
<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=sigplace1.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()

@ -17,12 +17,12 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-07-26T19:09:27.581335Z gitpod 1589</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-07-26T19:09:27.585335Z gitpod 1285</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-07-26T19:09:27.589335Z gitpod 1498</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-07-26T19:09:28.077335Z gitpod 2306</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-07-26T19:09:28.077335Z gitpod 2002</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-07-26T19:09:28.077335Z gitpod 2215</div>
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-07-26T19:19:28.389305Z gitpod 1897</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-07-26T19:19:28.393305Z gitpod 1593</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-07-26T19:19:28.393305Z gitpod 1806</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-07-26T19:19:28.869305Z gitpod 2614</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-07-26T19:19:28.869305Z gitpod 2310</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-07-26T19:19:28.873305Z gitpod 2523</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -4,16 +4,23 @@
</p>
</div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div>%CONDITIONAL_EXPAND%</div>
<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=test1.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()

@ -23,16 +23,23 @@
</p>
</div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div></div>
<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=test1.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()

@ -4,16 +4,23 @@
</p>
</div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div>%CONDITIONAL_EXPAND%</div>
<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=test2.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()

@ -23,16 +23,23 @@
</p>
</div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div></div>
<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=test2.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()

@ -4,16 +4,23 @@
</p>
</div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div>%CONDITIONAL_EXPAND%</div>
<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=test3.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()

@ -23,16 +23,23 @@
</p>
</div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div></div>
<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=test3.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()

@ -31,16 +31,23 @@ $ARTICLE_PREVIEW curabitur vel tempus ex
</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=otherpage.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()

@ -46,16 +46,23 @@ table {
border-spacing: 0;
}
<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=reset.css.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()

@ -276,16 +276,23 @@ h1 {
font-size:6em;
}
<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=sig.css.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()

@ -30,16 +30,23 @@ SigPlace
</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()

@ -30,16 +30,23 @@ SigPlace
</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=uploadform.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()

@ -1,6 +1,8 @@
<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=$ARTICLE.comment").then((data)=>data.text())
@ -13,6 +15,7 @@
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}
document.getElementById("commentContainer").style.visibility="visible"
})
}
fetchComments()

@ -139,7 +139,7 @@ public class sigServer {
file = Paths.get(sigPlace.OUTDIR,location);
}
if (modifiedDate==null||modifiedDate.isBefore(GetLastModifiedDate(sigPlace.OUTDIR,location)))
if (modifiedDate==null||Files.exists(file)&&modifiedDate.isBefore(GetLastModifiedDate(sigPlace.OUTDIR,location)))
{
CreateRequest(client,"200","OK",file);
} else {

Loading…
Cancel
Save