aboutsummaryrefslogtreecommitdiff
path: root/themes/XMin/layouts/partials/foot_custom.html
blob: eb0962a839fb216a073d832c128564ef0b1debc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<a href="https://mfashby.net/index.xml">
<svg xmlns="http://www.w3.org/2000/svg"
     role="img" aria-label="[title]" 
     width="24" height="24" 
     viewBox="0 0 24 24" 
     fill="none" 
     stroke="orange" 
     stroke-width="2" 
     stroke-linecap="round" 
     stroke-linejoin="round">
    <title>RSS</title>
    <path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>
</a>

<h2>comments</h2>
<div style="visibility: hidden" id="comments">comments go here</div>
<div style="visibility: hidden" id="comment_form">comment form goes here</div>
<script>
     let comments = document.getElementById("comments");
     let urlParam = new URLSearchParams();
     urlParam.append("url", document.location.href);
     fetch(document.location.origin + "/api/comment?" + urlParam.toString())
          .then((response) => response.text())
          .then((data) => {
               comments.innerHTML = data;
               comments.style.visibility = "visible";
          });
     let form = document.getElementById("comment_form");
     fetch(document.location.origin + "/api/form?" + urlParam.toString())
          .then((response) => response.text())
          .then((data) => {
               form.innerHTML = data;
               form.style.visibility = "visible";
          });
</script>
<noscript>Comments disabled without javascript!</noscript>