-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathfxl-spread-two.html
76 lines (64 loc) · 1.31 KB
/
fxl-spread-two.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
<!DOCTYPE html>
<html>
<head>
<style>
body, html {
height: 100%;
width: 100%;
margin: 0;
background: transparent;
overflow: hidden;
}
.viewport {
position: absolute;
top: 0;
bottom: 0;
width: 50%;
}
#viewport-left {
left: 0;
}
#viewport-right {
right: 0;
}
#viewport-center {
left: 50%;
transform: translateX(-50%);
}
.page {
/* Centers vertically the iframe */
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 0px;
height: 0px;
border: none;
background: white;
}
#page-left {
right: 0;
}
#page-right {
left: 0;
}
#page-center {
/* Centers vertically and horizontally the iframe */
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<meta name="viewport" content="">
</head>
<body>
<div id="viewport-left" class="viewport">
<iframe id="page-left" class="page" scrolling="no"></iframe>
</div>
<div id="viewport-right" class="viewport">
<iframe id="page-right" class="page" scrolling="no"></iframe>
</div>
<div id="viewport-center" class="viewport">
<iframe id="page-center" class="page" scrolling="no"></iframe>
</div>
<script type="text/javascript" src="{{ASSETS_URL}}/scripts/readium-fixed-wrapper-two.js"></script>
</body>
</html>