Comment endpoint setup

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

@ -1,7 +1,7 @@
5 5
That is a great idea! That is a great idea!
username,17May2021 08:29:10 username,17May2021 08:29:10
That is a great idea! <p>There used to be folks I worked with who would use the same technique, and it worked great!</p> That is a great idea! &lt;p>There used to be folks I worked with who would use the same technique, and it worked great!&lt;/p>
username,17May2021 08:29:10 username,17May2021 08:29:10
That is a great idea! You should use &lt;i> tags for those. That is a great idea! You should use &lt;i> tags for those.
username,17May2021 08:29:10 username,17May2021 08:29:10

@ -17,14 +17,14 @@
</head> </head>
<body> <body>
<div class="contentBody"> <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-26T18:39:48.357421Z gitpod 4096</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:09:28.109335Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-07-26T18:39:48.289421Z gitpod 2996</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-26T18:39:48.293421Z gitpod 1300</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-26T18:39:48.293421Z gitpod 1448</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-26T18:39:48.313421Z gitpod 1244</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-26T18:39:48.353421Z gitpod 58</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-26T18:39:48.305421Z gitpod 7283</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-26T18:39:48.317421Z gitpod 1162</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>
</div> <!--End Content Body--> </div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div> <div class="codeForeground" id="codeForeground"></div>

@ -17,13 +17,13 @@
</head> </head>
<body> <body>
<div class="contentBody"> <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-26T18:39:47.845421Z gitpod 879</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: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-26T18:39:48.321421Z gitpod 147</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-26T18:39:47.877421Z gitpod 1100</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-26T18:39:48.285421Z gitpod 81214</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-26T18:39:48.317421Z gitpod 1596</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-26T18:39:48.333421Z gitpod 1817</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-26T18:39:48.345421Z gitpod 81931</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>
</div> <!--End Content Body--> </div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div> <div class="codeForeground" id="codeForeground"></div>

@ -6,13 +6,16 @@ For over a year since I first got into <u>Love Live! School Idol Festival ~after
<br/> <br/>
</div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/Love Live! Custom Arcade Controller.comment").then((data)=>data.text()) fetch("/COMMENTS?article=Love Live! Custom Arcade Controller.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -25,13 +25,16 @@ For over a year since I first got into <u>Love Live! School Idol Festival ~after
<br/> <br/>
</div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div></div> </div><div class="datebar"></div><div class="date">15 July 2022 1:53PM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/Love Live! Custom Arcade Controller.comment").then((data)=>data.text()) fetch("/COMMENTS?article=Love Live! Custom Arcade Controller.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -10,13 +10,16 @@ Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut.
</p> </p>
</div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/curabitur vel tempus ex.comment").then((data)=>data.text()) fetch("/COMMENTS?article=curabitur vel tempus ex.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -29,13 +29,16 @@ Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut.
</p> </p>
</div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div></div> </div><div class="datebar"></div><div class="date">29 Apr 2022 7:37PM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/curabitur vel tempus ex.comment").then((data)=>data.text()) fetch("/COMMENTS?article=curabitur vel tempus ex.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -485,13 +485,16 @@ Here we demonstrate the love live logo. But wait, it's literally like in the mid
</p> </p>
</div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/sigplace1.comment").then((data)=>data.text()) fetch("/COMMENTS?article=sigplace1.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -504,13 +504,16 @@ Here we demonstrate the love live logo. But wait, it's literally like in the mid
</p> </p>
</div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div></div> </div><div class="datebar"></div><div class="date">3 May 2022 10:25AM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/sigplace1.comment").then((data)=>data.text()) fetch("/COMMENTS?article=sigplace1.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -17,12 +17,12 @@
</head> </head>
<body> <body>
<div class="contentBody"> <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-26T18:39:47.853421Z gitpod 1437</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: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-26T18:39:47.853421Z gitpod 1133</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-26T18:39:47.857421Z gitpod 1346</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-26T18:39:48.321421Z gitpod 2154</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-26T18:39:48.321421Z gitpod 1850</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-26T18:39:48.321421Z gitpod 2063</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>
</div> <!--End Content Body--> </div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div> <div class="codeForeground" id="codeForeground"></div>

@ -4,13 +4,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test1.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test1.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -23,13 +23,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div></div> </div><div class="datebar"></div><div class="date">2 May 2022 10:16AM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test1.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test1.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -4,13 +4,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test2.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test2.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -23,13 +23,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div></div> </div><div class="datebar"></div><div class="date">1 May 2022 05:13AM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test2.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test2.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -4,13 +4,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div>%CONDITIONAL_EXPAND%</div> </div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div>%CONDITIONAL_EXPAND%</div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test3.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test3.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -23,13 +23,16 @@
</p> </p>
</div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div></div> </div><div class="datebar"></div><div class="date">30 Apr 2022 6:14PM</div></div>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/test3.comment").then((data)=>data.text()) fetch("/COMMENTS?article=test3.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -31,13 +31,16 @@ $ARTICLE_PREVIEW curabitur vel tempus ex
</footer> </footer>
</html> </html>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/otherpage.html.comment").then((data)=>data.text()) fetch("/COMMENTS?article=otherpage.html.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -46,13 +46,16 @@ table {
border-spacing: 0; border-spacing: 0;
} }
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/reset.css.comment").then((data)=>data.text()) fetch("/COMMENTS?article=reset.css.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -276,13 +276,16 @@ h1 {
font-size:6em; font-size:6em;
} }
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/sig.css.comment").then((data)=>data.text()) fetch("/COMMENTS?article=sig.css.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -30,13 +30,16 @@ SigPlace
</footer> </footer>
</html> </html>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/testfile.html.comment").then((data)=>data.text()) fetch("/COMMENTS?article=testfile.html.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -30,13 +30,16 @@ SigPlace
</footer> </footer>
</html> </html>
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/uploadform.html.comment").then((data)=>data.text()) fetch("/COMMENTS?article=uploadform.html.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -1,11 +1,14 @@
<hr/> <hr/>
<h2>Comments</h2><div class="commentCounter">0</div> <h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments"></div> <div class="comments" id="comments"></div>
<script type="text/javascript"> <script type="text/javascript">
function fetchComments() { function fetchComments() {
fetch("/COMMENTS/$ARTICLE.comment").then((data)=>data.text()) fetch("/COMMENTS?article=$ARTICLE.comment").then((data)=>data.text())
.then((data)=>{ .then((data)=>{
document.getElementById("comments").innerHTML=data data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
}) })
} }
fetchComments() fetchComments()

@ -131,18 +131,20 @@ public class sigServer {
} }
} else { } else {
String location = URLDecoder.decode(requestloc.replaceFirst("/",""),StandardCharsets.UTF_8); String location = URLDecoder.decode(requestloc.replaceFirst("/",""),StandardCharsets.UTF_8);
Path file = null;
if (location.equals("COMMENTS")) {
file = Paths.get(sigPlace.COMMENTSDIR,requestParams.get("article"));
} else {
file = Paths.get(sigPlace.OUTDIR,location);
}
if (modifiedDate==null||modifiedDate.isBefore(GetLastModifiedDate(sigPlace.OUTDIR,location))) if (modifiedDate==null||modifiedDate.isBefore(GetLastModifiedDate(sigPlace.OUTDIR,location)))
{ {
Path file = null;
if (location.equals("comment")) {
file = Paths.get(sigPlace.COMMENTSDIR,requestParams.get("article"));
} else {
file = Paths.get(sigPlace.OUTDIR,location);
}
CreateRequest(client,"200","OK",file); CreateRequest(client,"200","OK",file);
} else { } else {
//System.out.println(" "+location+" is cached! No sending required."); //System.out.println(" "+location+" is cached! No sending required.");
CreateRequest(client,"304","Not Modified",Paths.get(location)); CreateRequest(client,"304","Not Modified",file);
} }
} }
} }

Loading…
Cancel
Save