fix service_proxy_auth
[mkws-moved-to-github.git] / examples / htdocs / jasmine.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo jasmine test framework</title>
5     <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
6     <script type="text/javascript">
7       var mkws_config = {
8           pazpar2_url : "//sp-mkws.indexdata.com/service-proxy/",
9           service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest",
10           perpage_default: 10
11       };
12     </script>
13     <script type="text/javascript" src="//code.jquery.com/jquery-1.7.2.min.js"></script> 
14     <script type="text/javascript" src="tools/htdocs/pz2.js"></script>
15     <script type="text/javascript" src="tools/htdocs/handlebars-v1.1.2.js"></script>
16     <script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
17     <script type="text/javascript" src="tools/htdocs/mkws.js"></script>
18     <style type="text/css">
19       .mkwsTermlists div.facet {
20       float:left;
21       width: 30%;
22       margin: 0.3em;
23       }
24       .mkwsStat {
25       text-align: right;
26       }
27     </style>
28
29   <!-- SECTION jasmine -->
30     <link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-1.3.1/jasmine_favicon.png">
31     <link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-1.3.1/jasmine.css">
32     <script type="text/javascript" src="jasmine/lib/jasmine-1.3.1/jasmine.js"></script>
33     <script type="text/javascript" src="jasmine/lib/jasmine-1.3.1/jasmine-html.js"></script>
34
35     <!-- include MKWS spec files ... -->
36     <script type="text/javascript" src="test/spec/true.spec.js"></script>
37     <script type="text/javascript" src="test/spec/mkws-config.js"></script>
38     <script type="text/javascript" src="test/spec/mkws-pazpar2.js"></script>
39
40     <!-- init and run jasmine -->
41     <script type="text/javascript" src="test/js/mkws-jasmine-run.js"></script>
42   <!-- EOF jasmine -->
43
44   </head>
45   <body>
46     <div id="testMOTD"><div class="mkwsMOTD">This is the mkwsMOTD div</div></div>
47     <table width="100%" border="0">
48       <tr>
49         <td>
50           <div class="mkwsSwitch"></div>
51           <div class="mkwsLang"></div>
52           <div class="mkwsSearch"></div>
53         </td>
54       </tr>
55       <tr>
56         <td>
57           <div style="height:500px; overflow: auto">
58             <div class="mkwsPager"></div>
59             <div class="mkwsNavi"></div>
60             <div class="mkwsRecords"></div>
61             <div class="mkwsTargets"></div>
62             <div class="mkwsRanking"></div>
63           </div>
64         </td>
65       </tr>
66       <tr>
67         <td>
68           <div style="height:300px; overflow: hidden">
69             <div class="mkwsTermlists"></div>
70           </div>
71         </td>
72       </tr>
73       <tr>
74         <td>
75           <div class="mkwsStat"></div>
76         </td>
77       </tr>
78     </table>
79
80   </body>
81 </html>