Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
0c8837f7
Commit
0c8837f7
authored
Oct 08, 2019
by
Bryan BRANCOTTE
Browse files
removing dead code
parent
a903b091
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/static/css/browse.css
View file @
0c8837f7
...
...
@@ -141,23 +141,7 @@ th.hover {
}
.grid_host
thead
th
:last-child:first-child
.splitter
{
display
:
none
;
}
/*
#grid_host_clone tbody td,
#grid_host_clone thead th[data-col] {
visibility: hidden;
}
#grid_container.freeze-row-header-v2{
overflow-x:scroll;
}
#grid_host_clone{
display:none;
}
.freeze-row-header-v2 #grid_host_clone{
display:initial;
position: absolute;
top: 0;
pointer-events: none;
}*/
/*https://codepen.io/paulobrien/pen/gWoVzN*/
#grid_container
.freeze-row-header-v3
{
position
:
relative
;
...
...
src/viralhostrange/viralhostrangedb/static/js/browse.js
View file @
0c8837f7
$
(
document
).
ready
(
function
(){
//let grid_host=jQuery("#grid_host");
//grid_host.clone(true).attr("id","grid_host_clone").appendTo(grid_host.parent());
var
parts
=
location
.
search
.
substring
(
1
).
split
(
'
&
'
);
mem
[
'
virus
'
]
=
[];
mem
[
'
host
'
]
=
[];
...
...
@@ -81,8 +78,6 @@ function host_changed(pk, checked, do_load_data){
'
<a target="_blank" href="
'
+
get_host_url
.
replace
(
"
000000
"
,
pk
)
+
'
">_</a>
'
+
'
<span class="ratio"></span>
'
+
'
</th>
'
;
let
cell_th_clone
=
$
(
cell_th_str
);
cell_th_clone
.
appendTo
(
$
(
"
#grid_host_clone
"
).
find
(
"
thead>tr
"
));
let
cell_th
=
$
(
cell_th_str
);
hover_behavior
(
cell_th
);
cell_th
.
appendTo
(
$
(
"
#grid_host
"
).
find
(
"
thead>tr
"
));
...
...
@@ -145,8 +140,6 @@ function virus_changed(pk, checked, do_load_data){
'
<span class="ratio"></span>
'
+
'
</th>
'
+
'
</tr>
'
;
let
row_clone
=
$
(
row_str
);
row_clone
.
appendTo
(
$
(
"
#grid_host_clone
"
).
find
(
"
tbody
"
));
let
row
=
$
(
row_str
);
row
.
appendTo
(
$
(
"
#grid_host
"
).
find
(
"
tbody
"
));
let
hosts
=
$
(
'
#grid_host thead>tr>th[data-col]
'
).
map
(
function
(
i
,
o
){
...
...
src/viralhostrange/viralhostrangedb/static/js/virus_or_host_detail.js
View file @
0c8837f7
$
(
document
).
ready
(
function
(){
//let grid_host=jQuery("#grid_host");
//grid_host.clone(true).attr("id","grid_host_clone").appendTo(grid_host.parent());
load_data_vh
().
then
(
refresh_all_infection_ratio
);
$
(
"
[data-toggle-css-class]
"
).
change
(
function
(
e
){
$
(
e
.
target
).
attr
(
"
data-toggle-css-class
"
).
split
(
"
"
).
map
(
function
(
c
){
...
...
@@ -68,8 +66,6 @@ function load_data_vh(){
'
<span class="ratio"></span>
'
+
'
</th>
'
+
'
</tr>
'
;
let
tr_row_clone
=
$
(
tr_row_str
);
tr_row_clone
.
appendTo
(
$
(
"
#grid_host_clone
"
).
find
(
"
tbody
"
));
let
tr_row
=
$
(
tr_row_str
);
tr_row
.
appendTo
(
$
(
"
#grid_host
"
).
find
(
"
tbody
"
));
let
hosts
=
$
(
'
#grid_host thead>tr>th[data-col]
'
).
map
(
function
(
i
,
o
){
...
...
Write
Preview
Supports
Markdown
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