Commit d06090e9 authored by Romain Loth's avatar Romain Loth

set brand (app name displayed) from settings_explorerjs

parent 97c0ccce
......@@ -69,7 +69,8 @@
</li>
<li style="margin-left:10px;">
<a href="#" class="navbar-middle navbar-brand">
<span id="twbrand">Mapping Risk Research</span>
<!-- will be replaced by TW.branding -->
<span id="twbrand">TinaWebJS</span>
</a>
</li>
......
......@@ -101,6 +101,7 @@ var semanticConverged=false;
// ============ < / DEVELOPER OPTIONS > ============
TW.branding = 'Politoscope: explorer les programmes'
TW.nodeClusAtt = "modularity_class"
TW.edgeDefaultOpacity = 0.5 // opacity when true_color
......
......@@ -14,7 +14,9 @@ var theHtml = document.getElementsByTagName('html')[0]
TW.anynodegoes = true
// TW.anynodegoes = true
function writeBrand (brandString) {
document.getElementById('twbrand').innerHTML = brandString
}
//============================ < NEW BUTTONS > =============================//
......
......@@ -78,6 +78,9 @@ function jsActionOnGexfSelector(gexfBasename , db_json){
}
// show the custom name of the app
writeBrand(TW.branding)
var file =""
if(!isUndef(getUrlParam.mode)) { // if {db|api}.json
file = getUrlParam.mode
......
......@@ -769,6 +769,7 @@ function repaintEdges() {
}
// rewrite of clustersBy with binning and for attributes that can have negative float values
// /!\ age and growth_rate attributes referred to by name
function colorsRelByBins(daclass) {
cancelSelection(false);
......
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