3adb9d73398e29a6449d7589d932b4cc83bd0cdd
[mkws-moved-to-github.git] / examples / htdocs / index-popup.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo: popup search box</title>
5
6     <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
7     <link rel="stylesheet" type="text/css" href="mkwsStyle.css" />
8
9     <script type="text/javascript">
10       mkws_config = {
11         service_proxy_url : "/service-proxy/",
12         service_proxy_auth : "/service-proxy-auth/",
13         switch_menu: false,
14         lang_menu: false,
15         perpage_default: 10,
16         query_width: 50
17      };
18     </script>
19
20     <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
21     <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
22     <!-- legacy libs for testing
23     <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
24     <script src="http://code.jquery.com/ui/1.8.0/jquery-ui.min.js"></script>
25     -->
26
27     <script type="text/javascript" src="libjs-pz2/pz2api.1.js"></script>
28     <script type="text/javascript" src="mkws.js"></script>
29
30   </head>
31   <body>
32     <script type="text/javascript">
33      jQuery.pazpar2({ "layout":"popup", width: 800, height: 500 } );
34     </script>
35
36     <pre>
37       An embryonic MasterKey Widget Set
38 =================================
39
40 This directory contains an embryonic MasterKey Widget Set, based
41 initially on "jsdemo" though now far removed from those beginnnings.
42
43
44 How this works
45 --------------
46
47 The goal is to make it that as much of the searching functionality as
48 possible is hosted on
49         http://mkws.indexdata.com/
50 so that very simple websites such as
51         http://example.indexdata.com/
52 can have MasterKey searching with minimal effort.
53
54 The following files must be hosted on mkws.indexdata.com:
55         mkws.js
56         mkwsStyle.css
57         /libjs-pz2/pz2api.1.js (*)
58
59 The following files make up the application:
60         index.html
61         favicon.ico [optional]
62         robots.txt [optional]
63
64 (At present, the client application's configuruation also needs an
65 Alias for /service-proxy/, to avoid cross-site scripting issues. We
66 will fix this.)
67
68 (*) if you don't have already installed libjs-pz2 on the machine, you can
69 do it by installing a debian package or check it out from GIT:
70 $ git clone ssh://git.indexdata.com:222/home/git/pub/libjs-pz2
71
72 Configuring a client
73 --------------------
74
75 The application's HTML must contains the following elements as well as
76 whatever makes up the application itself:
77
78 [...]
79     </pre>
80   </body>
81 </html>