sync from jasmine-local-popup.html
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 11 Jun 2014 09:36:20 +0000 (09:36 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 11 Jun 2014 09:36:20 +0000 (09:36 +0000)
examples/htdocs/jasmine-popup.html

index f00cd84..f029be8 100644 (file)
@@ -6,12 +6,11 @@
     <link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
     <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
 
-    <script type="text/javascript" src="//code.jquery.com/jquery-1.10.0.min.js"></script>
+    <script type="text/javascript" src="src/jquery-1.10.0.min.js"></script>
     <script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
-    <script type="text/javascript" src="//git.indexdata.com/?p=pazpar2.git;a=blob_plain;f=js/pz2.js;hb=HEAD"></script>
-    <script type="text/javascript" src="//jquery-json.googlecode.com/files/jquery.json-2.4.js"></script>
-    <script type="text/javascript" src="//builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js"></script>
-
+    <script type="text/javascript" src="src/pz2.js"></script>
+    <script type="text/javascript" src="src/jquery.json-2.4.js"></script>
+    <script type="text/javascript" src="src/handlebars-v1.1.2.js"></script>
     <!-- <script type="text/javascript" src="src/mkws.js"></script> -->
     <script type="text/javascript" src="src/mkws-handlebars.js"></script>
     <script type="text/javascript" src="src/mkws-core.js"></script>
     <script type="text/javascript" src="src/mkws-widget-main.js"></script>
     <script type="text/javascript" src="src/mkws-widget-termlists.js"></script>
     <script type="text/javascript" src="src/mkws-widget-authname.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-categories.js"></script>
     <script type="text/javascript" src="src/mkws-widget-log.js"></script>
     <script type="text/javascript" src="src/mkws-widget-record.js"></script>
-    <script type="text/javascript" src="src/mkws-widget-builder.js"></script>
+
     <script type="text/javascript" src="src/mkws-jquery.js"></script>
-    <script type="text/javascript">$ = undefined;</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">
     <script type="text/javascript" src="test/js/mkws-jasmine-run.js"></script>
     <script type="text/javascript"> mkws_jasmine_init(500); </script>
 
+    <!-- jquery null test 
+    <script type="text/javascript">$ = undefined;</script>
+       -->
+
     <style type="text/css">
       body > div > form > input.ui-state-default { background: none; }
     </style>
 
   <body>
     <script type="text/javascript">
+
+    // using a local service proxy !!!
     var mkws_config = {
-      perpage_default: 10,
+      perpage_default: 10
+    };
+
+    var jasmine_config = {
+      search_query: "netbsd",
+      expected_hits: 10,
       // active_clients: 17,
-      pazpar2_url:          "//mkws.indexdata.com/service-proxy/",
-      service_proxy_auth:   "//mkws.indexdata.com/service-proxy-testauth"
+      check_motd: false,
+      show_record_url: true
     };
 
     jQuery.pazpar2({
         "layout": "popup",               /* "table" [default], "div", "popup" */
-        "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 */
     });
     </script>
 
-    <h1 style= "font-family: Monaco, 'Lucida Console', monospace">Jasmine test of MKWS</h1>
-     <div id="testMOTD"><div class="mkwsMOTD">This is the mkwsMOTD div</div></div>
+    <pre>
+An embryonic MasterKey Widget Set
+=================================
+
+This directory contains an embryonic MasterKey Widget Set, based
+initially on "jsdemo" though now far removed from those beginnnings.
+[...]
+    </pre>
+
   </body>
 </html>