helloworld, we added some features to make than the werobot website is ready to prod
This commit is contained in:
parent
a8d427f230
commit
5d47788f18
6 changed files with 35 additions and 4 deletions
|
@ -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>
|
||||
|
|
1
layouts/shortcodes/photos.html
Normal file
1
layouts/shortcodes/photos.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ partial "photos.html" }}
|
Loading…
Add table
Add a link
Reference in a new issue