-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCG_table.html
134 lines (114 loc) · 3.48 KB
/
CG_table.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="js/datatables.min.css"/>
</head>
<body>
<script src="js/datatables.min.js"></script>
<script src="js/papaparse.min.js"></script>
<H3>Interactive table of coarse grained simulations studies of nucleosomes.</H3>
<a href='https://intbio.org/Fedulova_et_al_2024/'>Back</a>
<table id="main" class="display" style="width:100%">
<thead>
</thead>
</table>
<style>
/* a {
display: inline-block;
position: relative;
z-index: 1;
padding: 2em;
margin: -2em;
} */
.tooltip {
text-decoration:none;
position:relative;
padding: 1em;
margin: -1em;
}
.tooltip span {
display:none;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
color:black;
background:white;
}
.tooltip span img {
float:left;
margin:0px 8px 8px 0;
}
.tooltip:hover span {
display:block;
position:absolute;
top:0;
left:0;
z-index:1000;
width:auto;
max-width:450px;
max-height:450px;
min-height:128px;
border:1px solid black;
margin-top:12px;
margin-left:100px;
overflow:hidden;
padding:8px;
opacity: 0.9;
}
</style>
<script>
$(function() {
Papa.parse("data/paper_table - CG.csv", {
download: true,
complete: function(d) {
$(document).ready(function () {
$('#main').DataTable({
data: d.data.slice(1),
dataSrc:"",
"paging": false,
"searching": false,
order: [[2, 'asc']],
columns: [
{title: "Article title"},
{title: "Authors"},
{title: "Year"},
{title: "DOI link"},
{title: "Graph.Abstract link"},
{title: "Model"},
{title: "Force field"},
{title: "Variations/ modifications/interaction"},
{title: "Main findings"},
],
"rowReorder": false,
"columnDefs": [
{ "targets": '_all', "defaultContent": ""},
{ orderable: true, className: 'reorder', targets: [2] },
{ orderable: false, targets: '_all' },
{
targets: 0,
render: function (data, type, row, meta)
{
if (type === 'display')
data = "<a class='tooltip' href='" + row[3] + "' target='_blank'>" + data +
"<span><img src='" + row[4] +
"' style='max-height: 450px; max-width: 450px;'></span></a>";
return data;
}
},
{
"targets": [3,4],
"visible": false,
"searchable": true
},
],
});
});
}
});
});
</script>
</body>
</html>