Add image alt-text (from title).
[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="http://mkws.indexdata.com/mkws.css" />
8     <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
9     <script id="mkwsTemplateSummary" type="text/x-handlebars-template">
10       <a href="#" id="{{_id}}" onclick="{{_onclick}}">
11         {{#each md-thumburl}}
12           <img src="{{this}}" alt="{{../md-title}}"/>
13         {{/each}}
14         <br/>
15         {{md-title}}
16       {{#if md-title-remainder}}
17         <span>{{md-title-remainder}}</span>
18       {{/if}}
19       {{#if md-title-responsibility}}
20         <span><i>{{md-title-responsibility}}</i></span>
21       {{/if}}
22       </a>
23     </script>
24   </head>
25   <body>
26     <div class='mkwsRecords' autosearch='!param!q'
27         targets='pz:id=lui.indexdata.com:8080/solr4/#5853'
28         >results will appear here</div>
29   </body>
30 </html>