diff options
author | Clemens Fries <github-feldkueche@xenoworld.de> | 2017-01-25 18:34:35 +0100 |
---|---|---|
committer | Clemens Fries <github-feldkueche@xenoworld.de> | 2017-01-25 18:34:35 +0100 |
commit | bc3c0a434cc337f4106c05c1af8b5be15df2cfe1 (patch) | |
tree | 70579f6774ed67db312763ea46ef72555fa99aab /html | |
parent | b121453110c9bda1e34bde1df3119ec85a68c423 (diff) |
Diffstat (limited to 'html')
-rw-r--r-- | html/feldküche.html | 26 | ||||
-rw-r--r-- | html/feldküche_posts.html | 13 |
2 files changed, 39 insertions, 0 deletions
diff --git a/html/feldküche.html b/html/feldküche.html new file mode 100644 index 0000000..f64ed88 --- /dev/null +++ b/html/feldküche.html @@ -0,0 +1,26 @@ +<html> +<head> + <title></title> + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> + + <script> + var offset = 0; + + function moar(p) { + $.ajax({url: "/posts/" + offset, success: function(data) { + $("#content").append("<hr/>" + data); + } + }); + offset += 1; + } + + $(moar); + + $(window).click(moar); + </script> + +</head> +<body> + <div id="content"></div> +</body> +</html> diff --git a/html/feldküche_posts.html b/html/feldküche_posts.html new file mode 100644 index 0000000..c0ad322 --- /dev/null +++ b/html/feldküche_posts.html @@ -0,0 +1,13 @@ +{{range .}} + <div class="post"> + <div class="title">{{.Enclosure.ImageSize}}</div> + <div class="title">{{.Enclosure.BaseName}}</div> + <div class="title">{{.Title}}</div> + <div class="pubDate">{{.PubDate}}</div> + <div class="description"> + <!-- <img src="{{.Enclosure.Url}}" /> --> + <img src="/image/{{.Enclosure.BaseName}}" /> + </div> + <a class="link" href="{{.Link}}">link</a> + </div> +{{end}} |