Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
ed677841
Commit
ed677841
authored
Jun 22, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better brand management + nicer logos
parent
ceb4d3ac
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
explorerjs.html
explorerjs.html
+2
-5
favicon.ico
favicon.ico
+0
-0
logo.png
libs/img2/logo.png
+0
-0
politoscope_logo.jpg
libs/img2/politoscope_logo.jpg
+0
-0
enviroment.js
tinawebJS/enviroment.js
+7
-1
main.js
tinawebJS/main.js
+5
-6
No files found.
explorerjs.html
View file @
ed677841
...
@@ -160,8 +160,8 @@
...
@@ -160,8 +160,8 @@
<li><a
href=
"http://www.politoscope.org"
<li><a
href=
"http://www.politoscope.org"
class=
"navbar-higher"
class=
"navbar-higher"
title=
"Politoscope"
>
title=
"Politoscope"
>
<img
src=
"libs/img2/
politoscope_logo.jp
g"
<img
src=
"libs/img2/
logo.pn
g"
style=
"width:60px; position:absolute; top:-60px; left:-75px; z-index:5; overflow:visible;
background-color:white
"
>
style=
"width:60px; position:absolute; top:-60px; left:-75px; z-index:5; overflow:visible;"
>
</a></li>
</a></li>
<li>
<li>
...
@@ -768,15 +768,12 @@
...
@@ -768,15 +768,12 @@
<!-- classic tinawebJS imports -->
<!-- classic tinawebJS imports -->
<script
type=
"text/javascript"
src=
"tinawebJS/jLouvain.js"
></script>
<script
type=
"text/javascript"
src=
"tinawebJS/jLouvain.js"
></script>
<!-- <script src="tinawebJS/sigma.v1.customized.js" type="text/javascript" language="javascript"></script> -->
<!-- <script src="tinawebJS/sigma.forceatlas2.js" type="text/javascript" language="javascript"></script> -->
<script
src=
"settings_explorerjs.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"settings_explorerjs.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/enviroment.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/enviroment.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/sigma.parseCustom.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/sigma.parseCustom.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/sigmaUtils.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/sigmaUtils.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"extras_explorerjs.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"extras_explorerjs.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/methods.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/methods.js"
type=
"text/javascript"
language=
"javascript"
></script>
<!-- <script src="tinawebJS/asyncFA2.js" type="text/javascript" language="javascript"></script> -->
<script
src=
"tinawebJS/Tinaweb.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/Tinaweb.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/main.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"tinawebJS/main.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"twitterAPI2/twitterlibs/widgets.js"
type=
"text/javascript"
language=
"javascript"
></script>
<script
src=
"twitterAPI2/twitterlibs/widgets.js"
type=
"text/javascript"
language=
"javascript"
></script>
...
...
favicon.ico
0 → 100644
View file @
ed677841
1.12 KB
libs/img2/logo.png
0 → 100644
View file @
ed677841
311 KB
libs/img2/politoscope_logo.jpg
deleted
100644 → 0
View file @
ceb4d3ac
284 KB
tinawebJS/enviroment.js
View file @
ed677841
...
@@ -131,8 +131,14 @@ function getHeatmapColors(nClasses) {
...
@@ -131,8 +131,14 @@ function getHeatmapColors(nClasses) {
}
}
function
writeBrand
(
brandString
)
{
function
writeBrand
(
brandString
,
brandLink
)
{
document
.
getElementById
(
'twbrand'
).
innerHTML
=
brandString
document
.
getElementById
(
'twbrand'
).
innerHTML
=
brandString
let
anchors
=
document
.
getElementsByClassName
(
'twbrand-link'
)
for
(
var
k
in
anchors
)
{
if
(
anchors
[
k
]
&&
anchors
[
k
].
href
)
{
anchors
[
k
].
href
=
brandLink
}
}
}
}
function
writeLabel
(
aMapLabel
)
{
function
writeLabel
(
aMapLabel
)
{
...
...
tinawebJS/main.js
View file @
ed677841
...
@@ -55,8 +55,8 @@ TW.instance.init()
...
@@ -55,8 +55,8 @@ TW.instance.init()
TW
.
instance
.
initGUIListeners
();
TW
.
instance
.
initGUIListeners
();
TW
.
instance
.
initSearchListeners
();
TW
.
instance
.
initSearchListeners
();
// show the custom name of the app
// show the custom name
+ home link
of the app
writeBrand
(
TW
.
conf
.
branding
)
writeBrand
(
TW
.
conf
.
branding
,
TW
.
conf
.
brandingLink
)
// choosing the input
// choosing the input
// -------------------
// -------------------
...
@@ -361,9 +361,6 @@ function mainStartGraph(inFormat, inData, twInstance) {
...
@@ -361,9 +361,6 @@ function mainStartGraph(inFormat, inData, twInstance) {
// ex: [true,false] = [nodes of type 0 shown ; nodes of type 1 not drawn]
// ex: [true,false] = [nodes of type 0 shown ; nodes of type 1 not drawn]
var
initialActivetypes
=
TW
.
instance
.
initialActivetypes
(
TW
.
categories
)
var
initialActivetypes
=
TW
.
instance
.
initialActivetypes
(
TW
.
categories
)
// remember it
TW
.
pushState
({
'activetypes'
:
initialActivetypes
})
// XML parsing from ParseCustom
// XML parsing from ParseCustom
var
dicts
=
start
.
makeDicts
(
TW
.
categories
);
// > parse json or gexf, dictfy
var
dicts
=
start
.
makeDicts
(
TW
.
categories
);
// > parse json or gexf, dictfy
...
@@ -437,7 +434,6 @@ function mainStartGraph(inFormat, inData, twInstance) {
...
@@ -437,7 +434,6 @@ function mainStartGraph(inFormat, inData, twInstance) {
if
(
TW
.
graphData
.
nodes
.
length
==
0
)
console
.
error
(
"empty graph"
)
if
(
TW
.
graphData
.
nodes
.
length
==
0
)
console
.
error
(
"empty graph"
)
if
(
TW
.
graphData
.
edges
.
length
==
0
)
console
.
error
(
"no edges in graph"
)
if
(
TW
.
graphData
.
edges
.
length
==
0
)
console
.
error
(
"no edges in graph"
)
// our final sigma params (cf github.com/jacomyal/sigma.js/wiki/Settings)
// our final sigma params (cf github.com/jacomyal/sigma.js/wiki/Settings)
TW
.
customSettings
=
Object
.
assign
(
TW
.
customSettings
=
Object
.
assign
(
...
@@ -493,6 +489,9 @@ function mainStartGraph(inFormat, inData, twInstance) {
...
@@ -493,6 +489,9 @@ function mainStartGraph(inFormat, inData, twInstance) {
});
});
// ==================================================================
// ==================================================================
// a new state
TW
.
pushState
({
'activetypes'
:
initialActivetypes
})
// NB the list of nodes and edges from TW.graphData will be changed
// NB the list of nodes and edges from TW.graphData will be changed
// by changeLevel, changeType or subset sliders => no need to keep it
// by changeLevel, changeType or subset sliders => no need to keep it
delete
TW
.
graphData
delete
TW
.
graphData
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment