helloworld, we added some features to make than the werobot website is ready to prod

This commit is contained in:
GZod01 2024-05-18 21:22:51 +02:00
parent a8d427f230
commit 5d47788f18
6 changed files with 35 additions and 4 deletions

View file

@ -8,10 +8,10 @@
</div>
</div>
</div>
<script>
<script defer>
function loadimages(){
var http = new XMLHttpRequest();
var url = '/getallphotos';
var url = '/getallphotos{{ if .limit }}?limit={{ .limit }}{{ end }}';
http.open('GET', url, false);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.onreadystatechange = function() {//Call a function when the state changes.
@ -23,4 +23,5 @@
}
http.send();
}
loadimages();
</script>

View file

@ -0,0 +1 @@
{{ partial "photos.html" }}