Fix MKWS-305.
[mkws-moved-to-github.git] / examples / htdocs / images.html
1 <?xml version="1.0"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4   <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6     <title>MKWS demo: Images</title>
7     <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
8     <script type="text/javascript" src="//x.mkws.indexdata.com/mkws-complete.js"></script>
9     <script class="mkws-template-Records" type="text/x-handlebars-template">
10       {{#each hits}}
11         <div class="{{containerClass}}">
12           <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
13             {{#each md-thumburl}}
14               <img src="{{this}}" alt="{{../md-title}}"/>
15             {{/each}}
16             <br/>
17             {{md-title}}
18           {{#if md-title-remainder}}
19             <span>{{md-title-remainder}}</span>
20           {{/if}}
21           {{#if md-title-responsibility}}
22             <span><i>{{md-title-responsibility}}</i></span>
23           {{/if}}
24           </a>
25         </div>
26       {{/each}}
27     </script>
28     <script type="text/javascript">
29       var mkws_config = {
30         sp_auth_credentials: "mkwsimages/mkwsimages"
31       };
32     </script>
33   </head>
34   <body>
35     <div class='mkws-records' autosearch='!param!q'
36         >results will appear here</div>
37   </body>
38 </html>