-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreferences.html
184 lines (167 loc) · 7.79 KB
/
references.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="keywords" content="key, words">
<meta name="description" content="description">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>Human Impacts</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/style2.css" rel="stylesheet" type="text/css">
<link href="css/style_dev.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="all" type="text/css" href="css/skeleton.css">
<link rel="stylesheet" media="all" type="text/css" href="css/nzs-frame-media.css">
<link rel="stylesheet" media="all" type="text/css" href="font-awesome-4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" media="all" type="text/css" href="icofont/css/icofont.html">
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/3.22.2/minified.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet" type="text/css">
<link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="js/jquery.fancybox.js"></script>
<link href="css/jquery.fancybox.css" rel="stylesheet" type="text/css">
<style>
.container {
position: relative;
width: 1170px;
margin: 0 auto;
padding: 0;
display: table;
top: 20px;
}
.clearfix {
zoom: 1;
/**border: 1px solid #b2b2b2;
padding: 3%;*/
}
.header {display: flex;justify-content:space-between;align-items:center;width:100%;}
.logo {text-decoration: none;}
.logo img {width: 200px;}
.header h1 {width: calc(100% - 220px);margin:0;padding:0;}
</style>
</head>
<body>
<div class="container clearfix">
<div class="header">
<a class="logo" href="https://camilo-mora.github.io/GEO309/" target="_blank">
<img src="https://camilo-mora.github.io/GEO309/images/MoraLab.png" />
</a>
<h1 style="text-align: center;" class="impact-title"> Traceable evidence of the impacts of climate change on humanity </h1>
</div>
<h3 style="text-align: center;"> <u> References </u> </h3>
<p style="text-align: right;"><strong><a href="index.html">Back</a></strong></p>
<table class="table table-bordered ind_entry">
<thead>
<tr style="background: #c1d1f4;">
<th>Reference ID</th>
<th>User</th>
<th>Type</th>
<th>Authors</th>
<th>Year</th>
<th>Title</th>
<th>Journal</th>
<th>Volume</th>
<th>Pages</th>
<th>Book Title</th>
<th>Editor</th>
<th>Publisher</th>
<th>City</th>
<th>Institution</th>
<th>PDF</th>
<th>Entries</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<link href="css/toastr.min.css" rel="stylesheet" type="text/css">
<script src="js/toastr.min.js"></script>
<script>
$(document).ready(function() {
$('.ind_entry').DataTable( {
"processing": true,
"searching": true,
columnDefs: [
{ orderable: true, targets: [1,2,3,4,8,9,10,12,13] },
{
"targets": 14,
"data" : 14,
"render": function ( data, type, row, meta ) {
return '<a href="PDFs/' + data + '" target="_blank">PDF</a>';
}
}
],
ajax: "json/references.json"
});
$('.show_popup').click(function(e){
e.preventDefault();
$('a.show_popup').fancybox({
'type' : 'iframe',
});
});
});
let g_allRef2 = [];
function loadReferences() {
$.ajax({
url: 'json/allref2.json',
type: "get",
dataType: "json",
success: function(references) {
g_allRef2 = references;
}
});
}
loadReferences();
function ckektest(refid) {
if (g_allRef2.length === 0) return;
let html = '<div><div class="container"><h2 style="text-align:center;">Entries</h2><div class="panel-group" id="accordion">';
let filtered = g_allRef2.filter(v => v&&v.reference_id == refid);
let cnt = 1;
filtered.forEach(function(v) {
let description = '', primari_imp = '', secondary_impact = '', climatic_change = '', opn = '';
if (v.description !='') {
description = '<strong> Comment/Findind </strong> <p>' + v.description + ' </p> <br>';
}
if (v.primary_impact !='' && v.p_name !="undefined") {
primari_imp = '<br> <strong> Primary impact </strong> <p>' + v.p_name + ' </p>';
}
if (v.secondary_impact !='' && v.s_name !="undefined") {
secondary_impact = '<br> <strong> Secondary impact </strong> <p>' + v.s_name + ' </p>';
}
if (v.climatic_change !='' && v.c_name !="undefined") {
climatic_change = '<br> <strong> Climatic change </strong> <p>' + v.c_name + ' </p>';
}
if (cnt == '1') {
opn = 'in';
}
if (v.interacting_factor) {
html += '<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse'
+v.entry_id+'">Entry '+cnt+'</a></h4></div><div id="collapse'
+v.entry_id+'" class="panel-collapse collapse '
+opn+'"><div class="panel-body"><div class="message"><strong>Source </strong> <p>'
+ v.authors + ',' + v.year + ',' + v.title + ' </p><a target="_blank" href="PDFs/'
+ v.PDF + '" > Download </a><hr style="border-top: 1px solid #000;">'+climatic_change+'<strong> Interacting factor </strong> <p> '
+ v.interacting_factor + ' </p> '+primari_imp+''+secondary_impact+' <br>'
+description+' <div style="float:right"><strong> Enter By : </strong> <p> '
+ v.name + ' ' + v.last_name + ' </p> </div><div class="clearfix"></div> </div></div></div></div>';
}else{
html += '<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse'
+v.entry_id+'">Entry '+cnt+'</a></h4></div><div id="collapse'
+v.entry_id+'" class="panel-collapse collapse '+opn+'"><div class="panel-body"><div class="message"><strong>Source </strong> <p>'
+ v.authors + ',' + v.year + ',' + v.title + ' </p><a target="_blank" href="PDFs/'
+ v.PDF + '" > Download </a><hr style="border-top: 1px solid #000;">'
+climatic_change+primari_imp+''+secondary_impact+''+description+' <div style="float:right"><strong> Enter By : </strong> <p> '
+ v.name + ' ' + v.last_name + ' </p></div><div class="clearfix"></div> </div></div></div></div>';
}
cnt++;
});
html += '</div></div></div>';
$.fancybox.open(html);
}
</script>
</body>
</html>