diff ismi-python-neo4jrestclient/static/commentaries.html @ 13:394bd5cfc508

new commentaries_authors.html visualisation.
author casties
date Mon, 05 Oct 2015 18:56:19 +0200
parents 0f4846255b20
children
line wrap: on
line diff
--- a/ismi-python-neo4jrestclient/static/commentaries.html	Fri Oct 02 01:08:46 2015 -0400
+++ b/ismi-python-neo4jrestclient/static/commentaries.html	Mon Oct 05 18:56:19 2015 +0200
@@ -81,9 +81,10 @@
 <!-- <script src="https://d3js.org/d3.v3.min.js" type="text/javascript"></script> -->
 <script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" type="text/javascript"></script>
 <script type="text/javascript">
+    backendApiPrefix = "";
     $(function () {
         function showMovie(text_id) {
-            $.get("/netvis-ismi/text/" + encodeURIComponent(text_id),
+            $.get(backendApiPrefix+"/text/" + encodeURIComponent(text_id),
                     function (data) {
                         if (!data) return;
                         $("#title").text(data.title);
@@ -101,7 +102,7 @@
         }
         function search() {
             var query=$("#search").find("input[name=search]").val();
-            $.get("/netvis-ismi/search?q=" + encodeURIComponent(query),
+            $.get(backendApiPrefix+"/search?q=" + encodeURIComponent(query),
                     function (data) {
                         var t = $("table#results tbody").empty();
                         if (!data || data.length == 0) return;
@@ -130,7 +131,7 @@
             .attr("width", "100%").attr("height", "100%")
             .attr("pointer-events", "all");
 
-    d3.json("/netvis-ismi/graph", function(error, graph) {
+    d3.json(backendApiPrefix+"/graph", function(error, graph) {
 		if (error) return;
 		
         force.nodes(graph.nodes).links(graph.links).start();