-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshowpaper.html
32 lines (31 loc) · 1010 Bytes
/
showpaper.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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
window.onload = function () {
var $_GET = {};
if(document.location.toString().indexOf('?') !== -1) {
var query = document.location
.toString()
// get the query string
.replace(/^.*?\?/, '')
// and remove any existing hash string (thanks, @vrijdenker)
.replace(/#.*$/, '')
.split('&');
for(var i=0, l=query.length; i<l; i++) {
var aux = decodeURIComponent(query[i]).split('=');
$_GET[aux[0]] = aux[1];
}
}
var urls = $_GET['urls'].split(",");
for (var i=0;i<urls.length;i++) {
document.body.innerHTML += "<img src=\".\\papers\\" + urls[i] + "\" width=\"100%\" />";
}
}
</script>
</head>
<body>
</body>
</html>