Mercurial > hg > NetworkVis
diff ismi-python-neo4jrestclient/static/index.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/index.html Fri Oct 02 01:08:46 2015 -0400 +++ b/ismi-python-neo4jrestclient/static/index.html Mon Oct 05 18:56:19 2015 +0200 @@ -44,6 +44,7 @@ <table id="results" class="table table-striped table-hover"> <thead> <tr> + <th>Author (translit)</th> <th>Title (translit)</th> <th>Title (arabic)</th> <th>ismi_id</th> @@ -73,7 +74,7 @@ <style type="text/css"> .node { stroke: #222; stroke-width: 1.5px; } .node.TEXT { fill: #888; } - .node.movie { fill: #BBB; } + .node.PERSON { fill: #BBB; } .link { stroke: #999; stroke-opacity: .6; stroke-width: 1px; } </style> @@ -81,9 +82,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); @@ -97,7 +99,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; @@ -126,7 +128,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();