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
2a581280
Commit
2a581280
authored
Apr 20, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sliders removal in correct scope and less gravity in FA2
parent
67a69f93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
settings_explorerjs.js
settings_explorerjs.js
+2
-0
main.js
tinawebJS/main.js
+17
-12
No files found.
settings_explorerjs.js
View file @
2a581280
...
@@ -103,6 +103,8 @@ var semanticConverged=false;
...
@@ -103,6 +103,8 @@ var semanticConverged=false;
TW
.
branding
=
'Politoscope: explorer les programmes'
TW
.
branding
=
'Politoscope: explorer les programmes'
TW
.
nodeClusAtt
=
"modularity_class"
TW
.
nodeClusAtt
=
"modularity_class"
TW
.
filterSliders
=
false
TW
.
edgeDefaultOpacity
=
0.5
// opacity when true_color
TW
.
edgeDefaultOpacity
=
0.5
// opacity when true_color
TW
.
edgeGreyColor
=
"rgba(150, 150, 150, 0.2)"
;
TW
.
edgeGreyColor
=
"rgba(150, 150, 150, 0.2)"
;
TW
.
nodesGreyBorderColor
=
"rgba(100, 100, 100, 0.5)"
;
TW
.
nodesGreyBorderColor
=
"rgba(100, 100, 100, 0.5)"
;
...
...
tinawebJS/main.js
View file @
2a581280
...
@@ -440,16 +440,7 @@ if(RES["OK"]) {
...
@@ -440,16 +440,7 @@ if(RES["OK"]) {
console
.
log
(
"printing the typestring:"
,
typestring
)
console
.
log
(
"printing the typestring:"
,
typestring
)
if
(
!
TW
.
filterSliders
)
{
if
(
TW
.
filterSliders
)
{
document
.
getElementsByClassName
(
'weight-selectors'
)[
0
].
style
.
display
=
"none"
// document.getElementById('slidercat0nodesweight').style.display="none"
// document.getElementById('slidercat0edgesweight').style.display="none"
// document.getElementById('slidercat1nodesweight').style.display="none"
// document.getElementById('slidercat1edgesweight').style.display="none"
}
else
{
if
(
typestring
==
"0|1"
)
{
if
(
typestring
==
"0|1"
)
{
$
(
"#category0"
).
hide
();
$
(
"#category0"
).
hide
();
$
(
"#category1"
).
show
();
$
(
"#category1"
).
show
();
...
@@ -499,9 +490,23 @@ if(RES["OK"]) {
...
@@ -499,9 +490,23 @@ if(RES["OK"]) {
}).
index
();
}).
index
();
if
(
!
TW
.
filterSliders
)
{
var
filterEls
=
document
.
getElementsByClassName
(
'weight-selectors'
)
for
(
var
k
in
filterEls
)
{
if
(
filterEls
[
k
]
&&
filterEls
[
k
].
style
)
filterEls
[
k
].
style
.
display
=
"none"
}
// document.getElementById('slidercat0nodesweight').style.display="none"
// document.getElementById('slidercat0edgesweight').style.display="none"
// document.getElementById('slidercat1nodesweight').style.display="none"
// document.getElementById('slidercat1edgesweight').style.display="none"
}
TW
.
FA2Params
=
{
TW
.
FA2Params
=
{
// adapting speed -------------
// adapting speed -------------
slowDown
:
1
,
slowDown
:
1
.5
,
startingIterations
:
5
,
startingIterations
:
5
,
iterationsPerRender
:
3
,
iterationsPerRender
:
3
,
barnesHutOptimize
:
false
,
barnesHutOptimize
:
false
,
...
@@ -510,7 +515,7 @@ if(RES["OK"]) {
...
@@ -510,7 +515,7 @@ if(RES["OK"]) {
// global behavior -----------
// global behavior -----------
linLogMode
:
true
,
linLogMode
:
true
,
edgeWeightInfluence
:
.
5
,
edgeWeightInfluence
:
.
5
,
gravity
:
3
,
gravity
:
1
,
strongGravityMode
:
false
,
strongGravityMode
:
false
,
scalingRatio
:
1
,
scalingRatio
:
1
,
...
...
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