Rename view <div>s
authorMike Taylor <mike@indexdata.com>
Wed, 19 Jun 2013 09:45:36 +0000 (10:45 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 19 Jun 2013 09:45:36 +0000 (10:45 +0100)
experiments/spclient/index.html
experiments/spclient/mkws.js
experiments/spclient/styles.css

index 2fc81d9..7612b09 100644 (file)
@@ -12,7 +12,7 @@
   <body>
     <div id="mkwsSwitch"></div>
     <div id="mkwsSearch"></div>
-    <div id="recordview">
+    <div id="mkwsRecords">
       <table width="100%" border="0" cellpadding="6" cellspacing="0">
         <tr>
           <td width="250" valign="top">
@@ -35,7 +35,7 @@
         </tr>
       </table>
     </div>
-    <div id="targetview" style="display: none">
+    <div id="mkwsTargets" style="display: none">
       <div id="bytarget">
        No information available yet.
       </div>
index 15dcd17..060b585 100644 (file)
@@ -290,15 +290,15 @@ function pagerPrev() {
 
 function switchView(view) {
     
-    var targets = document.getElementById('targetview');
-    var records = document.getElementById('recordview');
+    var targets = document.getElementById('mkwsTargets');
+    var records = document.getElementById('mkwsRecords');
     
     switch(view) {
-        case 'targetview':
+        case 'targets':
             targets.style.display = "block";            
             records.style.display = "none";
             break;
-        case 'recordview':
+        case 'records':
             targets.style.display = "none";            
             records.style.display = "block";
             break;
@@ -374,12 +374,12 @@ function renderDetails(data, marker)
 
 $(document).ready(function() { 
     $("#mkwsSwitch").html($("<a/>", { href: '#',
-                                     onclick: "switchView(\'recordview\')",
+                                     onclick: "switchView(\'records\')",
                                      text: "Record Browser",
                                    }));
     $("#mkwsSwitch").append($("<span/>", { text: " | " }));
     $("#mkwsSwitch").append($("<a/>", { href: '#',
-                                       onclick: "switchView(\'targetview\')",
+                                       onclick: "switchView(\'targets\')",
                                        text: "Target Info",
                                      }));
 
@@ -391,6 +391,14 @@ $(document).ready(function() {
       <input id="button" type="submit" value="Search" />\
     </form>');
 
+/*
+    $("#mkwsSearch").html('\
+    <form id="searchForm" name="search">\
+      <input id="query" type="text" size="50" />\
+      <input id="button" type="submit" value="Search" />\
+    </form>');
+*/
+
     domReady();
 
     var jqxhr = jQuery.get("/service-proxy-auth")
index f0eede1..8e50008 100644 (file)
@@ -51,12 +51,12 @@ div.details {
     text-align: right;
 }
 
-#recordview {
+#mkwsRecords {
     background-color: #fafafa;
     border-bottom: 1px solid  #156a16;
 }
 
-#targetview {
+#mkwsTargets {
     background-color: #fafafa;
     border-bottom: 1px solid  #156a16;
 }