New demo with a LOLcat
authorMike Taylor <mike@indexdata.com>
Wed, 19 Feb 2014 21:49:25 +0000 (16:49 -0500)
committerMike Taylor <mike@indexdata.com>
Wed, 19 Feb 2014 21:49:25 +0000 (16:49 -0500)
examples/htdocs/lolcat.html [new file with mode: 0644]

diff --git a/examples/htdocs/lolcat.html b/examples/htdocs/lolcat.html
new file mode 100644 (file)
index 0000000..0aaa63f
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: LOLcat demo</title>
+    <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
+    <script type="text/javascript">mkws_config = { perpage_default: 1 }</script>
+    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
+    <script class="mkwsTemplate_Summary" type="text/x-handlebars-template">
+      <a href="#" id="{{_id}}" onclick="{{_onclick}}">
+        {{#first md-thumburl}}
+         <img src="{{this}}" alt="{{../md-title}}"/>
+        {{/first}}
+       <br/>
+      </a>
+    </script>
+  </head>
+  <body>
+    <div class='mkwsRecords' autosearch='lolcat'
+       targets='pz:id=connect.indexdata.com:9000/flickr_api'
+       >kitteh will appear here</div>
+  </body>
+</html>