Mercurial > hg > NetworkVis
diff ismi-python-neo4jrestclient/static/index.html @ 9:0f4846255b20
updated for ismi-dev.
author | casties |
---|---|
date | Thu, 01 Oct 2015 17:35:56 +0200 |
parents | 45dad9e38c82 |
children | 394bd5cfc508 |
line wrap: on
line diff
--- a/ismi-python-neo4jrestclient/static/index.html Thu Oct 01 14:39:56 2015 +0200 +++ b/ismi-python-neo4jrestclient/static/index.html Thu Oct 01 17:35:56 2015 +0200 @@ -1,11 +1,11 @@ <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="stylesheet" href="http://neo4j-contrib.github.io/developer-resources/language-guides/assets/css/main.css"> + <link rel="stylesheet" href="//neo4j-contrib.github.io/developer-resources/language-guides/assets/css/main.css"> <title>Neo4j Movies</title> </head> -<body> +<body style="background:none;"> <div id="graph"> </div> <div role="navigation" class="navbar navbar-default navbar-static-top"> @@ -25,8 +25,8 @@ </div> <div class="navbar-header col-sm-6 col-md-6"> <div class="logo-well"> - <a href="http://neo4j.com/developer-resources"> - <img src="http://neo4j-contrib.github.io/developer-resources/language-guides/assets/img/logo-white.svg" alt="Neo4j World's Leading Graph Database" id="logo"> + <a href="//neo4j.com/developer-resources"> + <img src="//neo4j-contrib.github.io/developer-resources/language-guides/assets/img/logo-white.svg" alt="Neo4j World's Leading Graph Database" id="logo"> </a> </div> <div class="navbar-brand"> @@ -45,8 +45,8 @@ <thead> <tr> <th>Title (translit)</th> + <th>Title (arabic)</th> <th>ismi_id</th> - <th>Title (arabic)</th> </tr> </thead> <tbody> @@ -78,15 +78,16 @@ </style> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> -<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> +<!-- <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"> $(function () { function showMovie(text_id) { - $.get("/text/" + encodeURIComponent(text_id), + $.get("/netvis-ismi/text/" + encodeURIComponent(text_id), function (data) { if (!data) return; $("#title").text(data.title); - // $("#poster").attr("src","http://neo4j-contrib.github.io/developer-resources/language-guides/assets/posters/"+encodeURIComponent(data.title)+".jpg"); + // $("#poster").attr("src","//neo4j-contrib.github.io/developer-resources/language-guides/assets/posters/"+encodeURIComponent(data.title)+".jpg"); var $list = $("#info").empty(); for (key in data.attrs) { $list.append($("<li>" + key + ": " + data.attrs[key] + "</li>")); @@ -96,7 +97,7 @@ } function search() { var query=$("#search").find("input[name=search]").val(); - $.get("/search?q=" + encodeURIComponent(query), + $.get("/netvis-ismi/search?q=" + encodeURIComponent(query), function (data) { var t = $("table#results tbody").empty(); if (!data || data.length == 0) return; @@ -125,7 +126,7 @@ .attr("width", "100%").attr("height", "100%") .attr("pointer-events", "all"); - d3.json("/graph", function(error, graph) { + d3.json("/netvis-ismi/graph", function(error, graph) { if (error) return; force.nodes(graph.nodes).links(graph.links).start();