Move some JavaScript into client script.
authorMike Taylor <mike@indexdata.com>
Mon, 17 Jun 2013 15:54:37 +0000 (16:54 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 17 Jun 2013 15:54:37 +0000 (16:54 +0100)
experiments/spclient/index.html

index 8f290f4..cf16f0c 100644 (file)
@@ -8,25 +8,8 @@
   <title>Pazpar2 demo client</title>
   <link rel="stylesheet" href="styles.css"></link>
   <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
-
-  <!-- pre configure -->
-  <script type="text/javascript">
-    var useServiceProxy = true;
-  </script>
-
   <script type="text/javascript" src="/pazpar2/js/pz2.js"></script>
   <script type="text/javascript" src="example_client.js"></script>
-
-  <!-- post configure -->
-  <script type="text/javascript">
-    $(document).ready(function() { 
-       if (useServiceProxy) { 
-           var jqxhr = jQuery.get(authURLServiceProxy)
-               .fail(function() { alert("service proxy authentifiction failed"); });
-       } 
-      } 
-    );
-  </script>
  </head>
  
  <body onload="domReady();">