Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memiescape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Quentin Lobbé
memiescape
Commits
a6fb85f0
Commit
a6fb85f0
authored
Jan 19, 2021
by
qlobbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the spinner
parent
edfbae3f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1346 additions
and
27 deletions
+1346
-27
cesar_cleopatre_V2.dot
cesar_cleopatre_V2.dot
+1310
-0
config.json
config.json
+4
-2
index.html
index.html
+26
-25
qlobbe.css
lib/css/qlobbe.css
+6
-0
No files found.
cesar_cleopatre_V2.dot
0 → 100644
View file @
a6fb85f0
This diff is collapsed.
Click to expand it.
config.json
View file @
a6fb85f0
{
"mode"
:
"
static
"
,
"mode"
:
"
explorable
"
,
"defaultPath"
:
"./cesar_cleopatre.json"
,
"path"
:
"/home/qlobbe/Bureau/test.json"
"defaultName"
:
"cesar & cleopatre"
,
"path"
:
"/home/qlobbe/Bureau/test.json"
,
"pathName"
:
"clinical trials"
}
\ No newline at end of file
index.html
View file @
a6fb85f0
...
...
@@ -25,38 +25,34 @@
<div
class=
"phylo-title font-bold"
>
Mèmiescape
</div>
<div
class=
"phylo-folder"
>
<!-- title bar (static mode) -->
<label
id=
"phyloName"
class=
"phylo-name"
></label>
<!-- folder bar -->
<label
id=
"file-label"
for=
"file-path"
class=
"input-file"
>
load a phylomemy →
</label>
<label
id=
"file-label"
for=
"file-path"
class=
"input-file"
>
load a phylomemy →
</label>
<input
type=
"file"
id=
"file-path"
>
<label
id=
"file-name"
class=
"input-name"
></label>
<button
id=
"draw"
class=
"button draw"
>
draw
</button>
<label
id=
"file-name"
class=
"input-name"
></label>
<button
id=
"draw"
class=
"button draw"
>
draw
</button>
<!-- search bar -->
<label
id=
"search-label"
class=
"search-label"
>
find a term →
</label>
<input
type=
"text"
id=
"search-box"
class=
"search"
/>
<input
type=
"text"
id=
"search-autocomplete"
class=
"autocomplete"
disabled
value=
""
/>
<label
id=
"search-label"
class=
"search-label"
>
find a term →
</label>
<input
type=
"text"
id=
"search-box"
class=
"search"
/>
<input
type=
"text"
id=
"search-autocomplete"
class=
"autocomplete"
disabled
value=
""
/>
</div>
<!-- row 2 & 3 -->
<div
class=
"phylo-corpus"
id=
"phyloCorpus"
></div>
<div
class=
"phylo-corpus-info"
id=
"phyloCorpusInfo"
></div>
<div
class=
"phylo-how"
id=
"phyloHow"
></div>
<div
class=
"phylo-phylo"
id=
"phyloPhylo"
></div>
<div
class=
"phylo-phylo"
id=
"phyloPhylo"
>
<div
class=
"fa-3x loading"
id=
"spin"
>
<i
class=
"fa fa-circle-notch fa-spin"
></i>
</div>
<div
class=
"phylo-phylo-info"
id=
"phyloPhyloInfo"
>
<!-- loading spinner -->
<div
class=
"fa-3x loading"
id=
"spin"
><i
class=
"fa fa-spinner fa-spin"
></i></div>
</div>
<div
class=
"phylo-phylo-info"
id=
"phyloPhyloInfo"
></div>
<div
class=
"phylo-isoline"
id=
"phyloIsoLine"
></div>
...
...
@@ -104,11 +100,11 @@
}
function
unhide
(
mode
)
{
document
.
querySelector
(
"#reset"
).
style
.
visibility
=
"visible"
document
.
querySelector
(
"#label"
).
style
.
visibility
=
"visible"
document
.
querySelector
(
"#heading"
).
style
.
visibility
=
"visible"
document
.
querySelector
(
"#reset"
).
style
.
visibility
=
"visible"
;
document
.
querySelector
(
"#label"
).
style
.
visibility
=
"visible"
;
document
.
querySelector
(
"#heading"
).
style
.
visibility
=
"visible"
;
if
(
mode
!=
"static"
)
{
document
.
querySelector
(
"#export"
).
style
.
visibility
=
"visible"
document
.
querySelector
(
"#export"
).
style
.
visibility
=
"visible"
;
}
}
...
...
@@ -118,14 +114,19 @@
var
conf
=
JSON
.
parse
(
data1
);
// available config modes are "static" or "explorable"
if
(
conf
.
mode
==
"static"
)
{
document
.
querySelector
(
"#file-label"
).
style
.
display
=
"none"
;
document
.
querySelector
(
"#spin"
).
style
.
visibility
=
"visible"
;
var
path
=
""
;
var
name
=
""
;
if
(
conf
.
path
==
null
||
conf
.
path
==
""
)
{
path
=
conf
.
defaultPath
;
name
=
conf
.
defaultName
;
}
else
{
path
=
conf
.
path
;
}
name
=
conf
.
pathName
;
}
document
.
querySelector
(
"#file-label"
).
style
.
display
=
"none"
;
document
.
querySelector
(
"#spin"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"phyloName"
).
innerHTML
=
name
;
document
.
querySelector
(
"#phyloName"
).
style
.
visibility
=
"visible"
;
readJson
(
path
,
function
(
data2
){
phylo
=
JSON
.
parse
(
data2
);
unhide
(
"static"
);
...
...
lib/css/qlobbe.css
View file @
a6fb85f0
...
...
@@ -567,3 +567,9 @@ i.how:hover span {
.loading
{
visibility
:
hidden
;
}
.phylo-name
{
visibility
:
hidden
;
text-transform
:
capitalize
;
font-weight
:
bold
;
}
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