Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StrandLab2.net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Strand Lab
StrandLab2.net
Merge requests
!9
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Develop
develop
into
master
Overview
0
Commits
45
Pipelines
0
Changes
62
Merged
Gervaise Henry
requested to merge
develop
into
master
5 years ago
Overview
0
Commits
45
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
3eb88fb5
Prev
Next
Show latest version
5 files
+
55
−
24
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
3eb88fb5
[almost working]
· 3eb88fb5
Nicole Finks
authored
5 years ago
layouts/custom/repository.html
+
37
−
17
Options
@@ -12,25 +12,33 @@
@@ -12,25 +12,33 @@
<!-- Sidebar for Filters -->
<!-- Sidebar for Filters -->
<div
class=
"sidenav"
>
<div
class=
"sidenav"
>
<button
class=
"dropdown-btn"
>
<button
class=
"dropdown-btn"
>
Type 2 Diabetes
Type 2 Diabetes
<i
class=
"fa fa-caret-down"
></i>
<i
class=
"fa fa-caret-down"
></i>
</button>
</button>
<div
id=
"filter"
>
<div
id=
"filter"
>
<input
type=
"checkbox"
name=
"Type 2 diabetes"
value=
"0"
>
Has Type 2 Diabetes
</input><br>
<input
type=
"checkbox"
name=
"Type 2 diabetes"
value=
"1"
>
T2 Diabetes
</input>
<input
type=
"checkbox"
name=
"Type 2 diabetes"
value=
"1"
>
No Type 2 Diabetes
</input>
<p
class=
"numbers"
id=
"Type2diabetes1"
>
#
</p>
<br>
<input
type=
"checkbox"
name=
"Type 2 diabetes"
value=
"0"
>
No T2 Diabetes
</input>
<p
class =
"numbers"
id=
"Type2diabetes0"
>
#
</p>
</div>
</div>
<button
class=
"dropdown-btn"
>
<button
class=
"dropdown-btn"
>
Age
Age
<i
class=
"fa fa-caret-down"
></i>
<i
class=
"fa fa-caret-down"
></i>
</button>
</button>
<div
id=
"filter"
>
<input
value=
"Enter Age Here"
></input>
<p
id=
"displayFiles"
>
replace me
</p
>
</div
>
</div>
<p
id=
"displayFiles"
>
0
</p>
</div>
@@ -56,23 +64,35 @@
@@ -56,23 +64,35 @@
<body>
<body>
<script>
<script>
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
var
results
=
[];
var
data
=
{{
index
.
Site
.
Data
.
scRNAseq_huPr_D
.
updated_cleaned_json
}};
$
(
"
input
"
).
click
(
function
(){
$
(
"
input
"
).
click
(
function
(){
var
data
=
{{
index
.
Site
.
Data
.
scRNAseq_huPr_D
.
updated_cleaned_json
}};
var
name
=
$
(
this
).
attr
(
"
name
"
);
var
name
=
$
(
this
).
attr
(
"
name
"
);
var
value
=
$
(
this
).
attr
(
"
value
"
);
var
id
=
name
+
value
;
id
=
id
.
replace
(
/
\s
+/g
,
''
);
if
(
$
(
this
).
prop
(
"
checked
"
)
==
true
){
if
(
$
(
this
).
prop
(
"
checked
"
)
==
true
){
if
(
$
.
inArray
(
name
,
data
[
0
])
<
0
){
var
i
;
alert
(
"
Name:
"
+
name
+
"
Data:
"
+
data
);
for
(
i
=
0
;
i
<
data
.
length
;
i
++
){
if
(
data
[
i
][
name
]
==
value
){
results
.
push
(
data
[
i
]);
$
(
'
#
'
+
id
).
text
(
results
.
length
);
}
}
}
else
if
(
$
.
inArray
(
name
,
data
[
0
])
>
0
){
}
alert
(
"
Name is in array
"
+
name
);
else
if
(
$
(
this
).
prop
(
"
checked
"
)
==
false
){
}
var
i
;
for
(
i
=
0
;
i
<
results
.
length
;
i
++
){
$
(
"
#displayFiles
"
).
text
(
"
true
"
);
if
(
results
[
i
][
name
]
==
value
){
}
results
.
splice
(
i
,
1
);
else
if
(
$
(
this
).
prop
(
"
checked
"
)
==
false
){
i
--
;
$
(
"
#displayFiles
"
).
text
(
"
false
"
);
}
}
}
$
(
'
#
'
+
id
).
text
(
results
.
length
);
}
});
});