forked from nytimes/document-viewer
-
Notifications
You must be signed in to change notification settings - Fork 119
/
viewer-responsive.html
63 lines (56 loc) · 1.44 KB
/
viewer-responsive.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
<!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">
<title>Document Viewer (Responsive Debug)</title>
<link href="dist/viewer-datauri.css" media="screen" rel="stylesheet" type="text/css">
<link href="public/stylesheets/DV/print.css" media="print" rel="stylesheet" type="text/css">
<script src="dist/viewer.js" type="text/javascript"></script>
<script src="dist/templates.js" type="text/javascript"></script>
<style type="text/css" media="screen">
body {
margin: 0;
}
h1 {
font-family: Arial, sans-serif;
text-align: center;
}
#document-viewer {
margin: 0px auto 500px;
width: auto;
}
@media (min-width: 520px) {
#document-viewer {
width: 520px;
}
}
@media (min-width: 720px) {
#document-viewer {
width: 720px;
}
}
@media (min-width: 945px) {
#document-viewer {
width: 945px;
}
}
@media (min-width: 1050px) {
#document-viewer {
width: 1050px;
}
}
</style>
</head>
<body>
<div id="document-viewer"></div>
<script type="text/javascript">
window.currentDocument = DV.load(
'http://www.documentcloud.org/documents/3480299-10-Examples-Industries-Push-Followed-by-Trump.js', {
container: '#document-viewer',
}
);
</script>
</body>
</html>