load jquery-ui at the bottom of the page, MKWS-34
[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     <!-- legacy libs for testing
22     <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
23     <script src="http://code.jquery.com/ui/1.8.0/jquery-ui.min.js"></script>
24     -->
25
26     <script type="text/javascript" src="libjs-pz2/pz2api.1.js"></script>
27     <script type="text/javascript" src="mkws.js"></script>
28
29   </head>
30   <body>
31     <script type="text/javascript">
32      jQuery.pazpar2({ "layout":"popup", width: 800, height: 500 } );
33     </script>
34
35     <pre>
36       An embryonic MasterKey Widget Set
37 =================================
38
39 This directory contains an embryonic MasterKey Widget Set, based
40 initially on "jsdemo" though now far removed from those beginnnings.
41
42
43 How this works
44 --------------
45
46 The goal is to make it that as much of the searching functionality as
47 possible is hosted on
48         http://mkws.indexdata.com/
49 so that very simple websites such as
50         http://example.indexdata.com/
51 can have MasterKey searching with minimal effort.
52
53 The following files must be hosted on mkws.indexdata.com:
54         mkws.js
55         mkwsStyle.css
56         /libjs-pz2/pz2api.1.js (*)
57
58 The following files make up the application:
59         index.html
60         favicon.ico [optional]
61         robots.txt [optional]
62
63 (At present, the client application's configuruation also needs an
64 Alias for /service-proxy/, to avoid cross-site scripting issues. We
65 will fix this.)
66
67 (*) if you don't have already installed libjs-pz2 on the machine, you can
68 do it by installing a debian package or check it out from GIT:
69 $ git clone ssh://git.indexdata.com:222/home/git/pub/libjs-pz2
70
71 Configuring a client
72 --------------------
73
74 The application's HTML must contains the following elements as well as
75 whatever makes up the application itself:
76
77 [...]
78     </pre>
79     <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
80   </body>
81 </html>