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
7 years ago
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 @@
...
@@ -76,12 +76,9 @@
<div
class=
"navbar-collapse collapse"
id=
"navbar-main"
>
<div
class=
"navbar-collapse collapse"
id=
"navbar-main"
>
<ul
class=
"nav navbar-nav navbar-left"
>
<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;"
>
<li
style=
"margin-left:10px;"
>
<
a
href=
"#"
class=
"navbar-middle navbar-brand"
>
<
!-- name will be replaced by TW.conf.branding, link by TW.conf.brandingLink --
>
<!-- will be replaced by TW.conf.branding --
>
<a
href=
"#"
class=
"navbar-middle navbar-brand twbrand-link"
>
<span
id=
"twbrand"
>
TinaWebJS
</span>
<span
id=
"twbrand"
>
TinaWebJS
</span>
</a>
</a>
</li>
</li>
...
...
This diff is collapsed.
Click to expand it.
static/tinawebJS/enviroment.js
View file @
f3af54ef
...
@@ -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
)
{
...
@@ -948,7 +954,7 @@ function updateSearchLabels(id,name,type){
...
@@ -948,7 +954,7 @@ function updateSearchLabels(id,name,type){
function
createWaitIcon
(
idname
,
width
)
{
function
createWaitIcon
(
idname
,
width
)
{
let
icon
=
document
.
createElement
(
'img'
)
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
.
position
=
'absolute'
icon
.
style
.
left
=
'0'
icon
.
style
.
left
=
'0'
...
...
This diff is collapsed.
Click to expand it.
static/tinawebJS/main.js
View file @
f3af54ef
...
@@ -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
// -------------------
// -------------------
...
...
This diff is collapsed.
Click to expand it.
static/tinawebJS/settings_explorerjs.js
View file @
f3af54ef
...
@@ -6,7 +6,8 @@ TW.conf = (function(TW){
...
@@ -6,7 +6,8 @@ TW.conf = (function(TW){
let
TWConf
=
{}
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){
...
@@ -202,7 +203,7 @@ TW.conf = (function(TW){
// if fa2Available, the auto-run config:
// if fa2Available, the auto-run config:
TWConf
.
fa2Enabled
=
true
;
// fa2 auto-run at start and after graph modified ?
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
TWConf
.
minNodesForAutoFA2
=
5
// graph size threshold to auto-run
...
...
This diff is collapsed.
Click to expand it.
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