-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (124 loc) · 3.46 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="This is the 3D Pdf viewer it can be located on your website.">
<meta name="keywords" content="HTML, CSS, JavaScript, PDF Viewer, 3D Flip">
<meta name="author" content="Expressd3v">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D flip Pdf view</title>
<link rel="image_src" type="image/png" href="screen.png">
<style type="text/css">
body {
background-color: #333;
margin: 0;
padding: 0;
}
.container {
height: 95vh;
width: 95%;
margin: 20px auto;
border: 2px solid red;
box-shadow: 0 0 5px red;
}
.fullscreen {
background-color: #333;
}
</style>
</head>
<body>
<div class="container" id="container">
</div>
<script src="js/libs/jquery.min.js"></script>
<script src="js/libs/html2canvas.min.js"></script>
<script src="js/libs/three.min.js"></script>
<script src="js/libs/pdf.min.js"></script>
<script src="js/dist/3dflipbook.js"></script>
<script type="text/javascript">
// // Sample 0 {
// $('#container').FlipBook({
// pdf: 'books/pdf/FoxitPdfSdk.pdf',
// template: {
// html: 'templates/default-book-view.html',
// styles: [
// 'css/short-black-book-view.css'
// ],
// links: [
// {
// rel: 'stylesheet',
// href: 'css/font-awesome.min.css'
// }
// ],
// script: 'js/default-book-view.js'
// }
// });
// // }
// Sample 1 {
function theKingIsBlackPageCallback(n) {
return {
type: 'image',
src: 'books/image/theKingIsBlack/'+(n+1)+'.jpg',
interactive: false
};
}
$('#container').FlipBook({
pageCallback: theKingIsBlackPageCallback,
pages: 40,
propertiesCallback: function(props) {
props.cover.color = 0x000000;
return props;
},
template: {
html: 'templates/default-book-view.html',
styles: [
'css/short-white-book-view.css'
],
links: [
{
rel: 'stylesheet',
href: 'css/font-awesome.min.css'
}
],
script: 'js/default-book-view.js',
sounds: {
startFlip: 'sounds/start-flip.mp3',
endFlip: 'sounds/end-flip.mp3'
}
}
});
// }
// // Sample 2 {
// function preview(n) {
// return {
// type: 'html',
// src: 'books/html/preview/'+(n%3+1)+'.html',
// interactive: true
// };
// }
//
// $('#container').FlipBook({
// pageCallback: preview,
// pages: 20,
// propertiesCallback: function(props) {
// props.sheet.color = 0x008080;
// props.cover.padding = 0.002;
// return props;
// },
// template: {
// html: 'templates/default-book-view.html',
// styles: [
// 'css/black-book-view.css'
// ],
// links: [
// {
// rel: 'stylesheet',
// href: 'css/font-awesome.min.css'
// }
// ],
// script: 'js/default-book-view.js'
// }
// });
// // }
</script>
</body>
</html>