Commit 0d5232c7 authored by Romain Loth's avatar Romain Loth

change paths in tina and helper app in coherence with new static root

parent b9c3e34c
This diff is collapsed.
......@@ -528,7 +528,7 @@ class MyExtractor:
else:
if len(self.scholars)<2000:
im_id = int(floor(randint(0, 11)))
content += '<img src="img/'+str(im_id)+'.png" width=' + str(self.imsize) + 'px style=float:left;margin:5px>'
content += '<img src="static/img/'+str(im_id)+'.png" width=' + str(self.imsize) + 'px style=float:left;margin:5px>'
content += '<b>Country: </b>' + self.scholars[idNode]['country'] + '</br>'
......
### About the tinawebjs directory
This directory contains the copy of
https://github.com/moma/tinawebJS/tree/comex_wip
It was added via:
```
git remote add twjs_custom https://github.com/moma/tinawebJS.git
git subtree add --squash --prefix=static/tinawebJS twjs_custom comex_wip
```
It replaces an identical copy that wasn't inside `static` dir, which itself replaced an old submodule in https://github.com/moma/legacy_php_comex ...
......@@ -751,7 +751,7 @@ function SigmaLayouting( URL, DATA, NAME) {
// < === ASYNCHRONOUS FA2.JS === >
pr(getClientTime()+" : Ini FA2");
var ForceAtlas2 = new Worker("tinawebJS/asyncFA2.js");
var ForceAtlas2 = new Worker("static/tinawebJS/asyncFA2.js");
ForceAtlas2.postMessage({
"nodes": partialGraph._core.graph.nodes,
"edges": partialGraph._core.graph.edges,
......@@ -798,7 +798,7 @@ function SigmaLayouting( URL, DATA, NAME) {
// [ semantic layouting ]
var ForceAtlas2_ = new Worker("tinawebJS/asyncFA2.js");
var ForceAtlas2_ = new Worker("static/tinawebJS/asyncFA2.js");
ForceAtlas2_.postMessage({
"nodes": otherGraph._core.graph.nodes,
"edges": otherGraph._core.graph.edges,
......
......@@ -412,9 +412,9 @@ function htmlfied_nodesatts(elems){
if(node.type==catSem){
information += '<li><b>' + node.label + '</b></li>';
google='<a href=http://www.google.com/#hl=en&source=hp&q=%20'+node.label.replace(" ","+")+'%20><img src="'+'img/google.png"></img></a>';
wiki = '<a href=http://en.wikipedia.org/wiki/'+node.label.replace(" ","_")+'><img src="'+'img/wikipedia.png"></img></a>';
flickr= '<a href=http://www.flickr.com/search/?w=all&q='+node.label.replace(" ","+")+'><img src="'+'img/flickr.png"></img></a>';
google='<a href=http://www.google.com/#hl=en&source=hp&q=%20'+node.label.replace(" ","+")+'%20><img src="'+'static/img/google.png"></img></a>';
wiki = '<a href=http://en.wikipedia.org/wiki/'+node.label.replace(" ","_")+'><img src="'+'static/img/wikipedia.png"></img></a>';
flickr= '<a href=http://www.flickr.com/search/?w=all&q='+node.label.replace(" ","+")+'><img src="'+'static/img/flickr.png"></img></a>';
information += '<li>'+google+"&nbsp;"+wiki+"&nbsp;"+flickr+'</li><br>';
semnodes.push(information)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment