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
f3af54ef
Commit
f3af54ef
authored
Jun 21, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a branding link + minor settings
parent
1f6a6397
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
explorerjs.html
explorerjs.html
+2
-5
enviroment.js
static/tinawebJS/enviroment.js
+8
-2
main.js
static/tinawebJS/main.js
+2
-2
settings_explorerjs.js
static/tinawebJS/settings_explorerjs.js
+3
-2
No files found.
explorerjs.html
View file @
f3af54ef
...
...
@@ -76,12 +76,9 @@
<div
class=
"navbar-collapse collapse"
id=
"navbar-main"
>
<ul
class=
"nav navbar-nav navbar-left"
>
<li
class=
"navbar-middle"
>
<img
style=
"width:20px"
src=
"static/explorerlibs/img2/home.png"
>
</li>
<li
style=
"margin-left:10px;"
>
<
a
href=
"#"
class=
"navbar-middle navbar-brand"
>
<!-- will be replaced by TW.conf.branding --
>
<
!-- name will be replaced by TW.conf.branding, link by TW.conf.brandingLink --
>
<a
href=
"#"
class=
"navbar-middle navbar-brand twbrand-link"
>
<span
id=
"twbrand"
>
TinaWebJS
</span>
</a>
</li>
...
...
static/tinawebJS/enviroment.js
View file @
f3af54ef
...
...
@@ -131,8 +131,14 @@ function getHeatmapColors(nClasses) {
}
function
writeBrand
(
brandString
)
{
function
writeBrand
(
brandString
,
brandLink
)
{
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
)
{
...
...
@@ -948,7 +954,7 @@ function updateSearchLabels(id,name,type){
function
createWaitIcon
(
idname
,
width
)
{
let
icon
=
document
.
createElement
(
'img'
)
icon
.
src
=
TW
.
conf
.
libspath
+
'
/img2/loader.gif'
icon
.
src
=
'static/explorerlibs
/img2/loader.gif'
icon
.
style
.
position
=
'absolute'
icon
.
style
.
left
=
'0'
...
...
static/tinawebJS/main.js
View file @
f3af54ef
...
...
@@ -55,8 +55,8 @@ TW.instance.init()
TW
.
instance
.
initGUIListeners
();
TW
.
instance
.
initSearchListeners
();
// show the custom name of the app
writeBrand
(
TW
.
conf
.
branding
)
// show the custom name
+ home link
of the app
writeBrand
(
TW
.
conf
.
branding
,
TW
.
conf
.
brandingLink
)
// choosing the input
// -------------------
...
...
static/tinawebJS/settings_explorerjs.js
View file @
f3af54ef
...
...
@@ -6,7 +6,8 @@ TW.conf = (function(TW){
let
TWConf
=
{}
TWConf
.
branding
=
'Community Explorer 2'
// <--- the name displayed in upper left
TWConf
.
branding
=
'Community Explorer 2'
// <--- name displayed in upper left
TWConf
.
brandingLink
=
'https://communityexplorer.org'
// <--- link to "home"
// ==========================
...
...
@@ -202,7 +203,7 @@ TW.conf = (function(TW){
// if fa2Available, the auto-run config:
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
TWConf
.
fa2Milliseconds
=
2
000
;
// duration of auto-run
TWConf
.
fa2Milliseconds
=
10
000
;
// duration of auto-run
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
...
...
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