HTML inserted by JS.
authorMike Taylor <mike@indexdata.com>
Tue, 18 Jun 2013 13:56:14 +0000 (14:56 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 18 Jun 2013 13:56:14 +0000 (14:56 +0100)
experiments/spclient/mkws.js

index 8fb51fb..65e6219 100644 (file)
@@ -376,4 +376,10 @@ $(document).ready(function() {
     domReady();
     var jqxhr = jQuery.get("/service-proxy-auth")
        .fail(function() { alert("service proxy authentifiction failed"); });
+
+    // Less code needs to be included in the HTML client
+    $('#switchmenu').html('\
+      <a href="#" onclick="switchView(\'recordview\')">Record Browser</a>\
+      <span> | </span>\
+      <a href="#" onclick="switchView(\'targetview\')">Target Info</a>');
 });