Unit tests for the MOTD MKWS-134
[mkws-moved-to-github.git] / examples / htdocs / jasmine-popup.html
index 305b728..f979e63 100644 (file)
@@ -12,6 +12,7 @@
     <script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
     <script type="text/javascript" src="tools/htdocs/handlebars-v1.1.2.js"></script>
     <script type="text/javascript" src="tools/htdocs/mkws.js"></script>
+    <script type="text/javascript" src="tools/htdocs/mkws-jquery.js"></script>
 
     <link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-1.3.1/jasmine_favicon.png">
     <link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-1.3.1/jasmine.css">
 
   <body>
     <script type="text/javascript">
+    var mkws_config = {
+      perpage_default: 10,
+      pazpar2_url:          "//mkws.indexdata.com/service-proxy/",
+      service_proxy_auth:   "//mkws.indexdata.com/service-proxy-testauth"
+    };
 
     jQuery.pazpar2({
         "layout": "popup",               /* "table" [default], "div", "popup" */
-        "id_button": "input#mkwsButton", /* submit button id in search field */
+        "id_button": "input.mkwsButton", /* submit button id in search field */
         "id_popup": "#mkwsPopup",        /* internal id of popup window */
         "width": 990,                    /* popup width, should be at least 800 */
         "height": 760                    /* popup height, should be at least 600 */
@@ -46,5 +52,6 @@ This directory contains an embryonic MasterKey Widget Set, based
 initially on "jsdemo" though now far removed from those beginnnings.
 [...]
     </pre>
+     <div id="testMOTD"><div id="mkwsMOTD">This is the mkwsMOTD div</div></div>
   </body>
 </html>