Add MOTD to teh div id to class conversion list MKWS-133
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index 2975aab..007907a 100644 (file)
@@ -3,35 +3,26 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
     <title>MKWS demo: Mike's playground</title>
     <link rel="stylesheet" type="text/css" href="http://x.mkws.indexdata.com/mkws.css" />
     <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
+    <script type="text/javascript" src="http://x.mkws.indexdata.com/jquery.json-2.4.js"></script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/handlebars-v1.1.2.js"></script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/pazpar2/js/pz2.js"></script>
+    <script type="text/javascript">mkws_config = { perpage_default: 1 }</script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/mkws.js"></script>
-    <style type="text/css">
-      td { vertical-align: top }
-    </style>
+    <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>
-    <h1>A site about stuff</h1>
-    <table border="1" width="100%">
-      <tr>
-       <td width="50%">
-         <h2>Welcome</h2>
-         Main site content goes here.
-       </td>
-       <td width="50%">
-         <h2>News</h2>
-<div id='mkwsRecords'
-       autosearch='water'
-       sort='relevance'
-       targets='josiah.brown.edu:210/innopac|clio-db.cc.columbia.edu:7090/voyager'
->results will appear here</div>
-       <div id='mkwsTermlists'/>
-       </td>
-      </tr>
-    </table>
+    <div class='mkwsRecords' autosearch='lolcat'
+       targets='pz:id=connect.indexdata.com:9000/flickr_api'
+       >results will appear here</div>
   </body>
 </html>