Skip to content

Commit 26a60fc

Browse files
committed
Don't show attributes.
Show only links.
1 parent 1f578e7 commit 26a60fc

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

js/gexfjs.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,14 @@ function displayNode(_nodeIndex, _recentre) {
138138
});
139139
});
140140
_str += '<h3><div class="largepill" style="background: ' + _d.color.base +'"></div>' + _d.label + '</h3>';
141-
_str += '<h4>' + strLang("nodeAttr") + '</h4>';
142-
_str += '<ul><li><b>id</b> : ' + _d.id + '</li>';
141+
//_str += '<h4>' + strLang("nodeAttr") + '</h4>';
142+
//_str += '<ul><li><b>id</b> : ' + _d.id + '</li>';
143143
for (var i in _d.attributes) {
144-
_str += '<li><b>' + strLang(i) + '</b> : ' + _d.attributes[i] + '</li>';
144+
if (_d.attributes[i].indexOf("http") != -1) {
145+
_str += '<li><b>' + strLang(i) + '</b> : <a href="'+ _d.attributes[i] + '" target="_blank">Acceder a Web</a></li>';
146+
} else {
147+
// _str += '<li><b>' + strLang(i) + '</b> : ' + _d.attributes[i] + '</li>';
148+
}
145149
}
146150
_str += '</ul><h4>' + ( GexfJS.graph.directed ? strLang("inLinks") : strLang("undirLinks") ) + '</h4><ul>';
147151
for (var i in GexfJS.graph.edgeList) {
@@ -847,4 +851,4 @@ $(document).ready(function() {
847851
}
848852
return false;
849853
});
850-
});
854+
});

styles/gexfjs.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
44

55
body {
66
font-family: Helvetica, Arial, sans-serif; font-size: 12px;
7-
background-color: #e0e0e8; color: #204020; margin: 0;
7+
/* background-color: #e0e080; color: #204020; margin: 0;*/
8+
background-color: #cfb590; color: #204020; margin: 0;
89
}
910

1011
.clear {
1112
clear: both;
1213
}
1314

15+
/*
1416
.gradient {
1517
background-color: #f0f0f8;
1618
background-image: -webkit-radial-gradient(#ffffff, #d8d8e0); background-image: -moz-radial-gradient(#ffffff, #d8d8e0);
1719
}
20+
*/
1821

1922
/* EN HAUT */
2023

@@ -271,4 +274,4 @@ a:hover {
271274

272275
#autocomplete img {
273276
float: left; border: 0; width: 24px; height: 24px; margin: 2px 6px;
274-
}
277+
}

0 commit comments

Comments
 (0)