-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
executable file
·107 lines (46 loc) · 1.41 KB
/
settings.js
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
var option_PDFF = {
/* BASIC SETTINGS */
openPage: 1,
height: '100%',
enableSound: true,
downloadEnable: true,
direction: pdfflip.DIRECTION.LTR,
autoPlay: true,
autoPlayStart: false,
autoPlayDuration: 3000,
autoEnableOutline: false,
autoEnableThumbnail: false,
/* TRANSLATE INTERFACE */
text: {
toggleSound: "Sound",
toggleThumbnails: "Thumbnails",
toggleOutline: "Contents",
previousPage: "Previous Page",
nextPage: "Next Page",
toggleFullscreen: "Fullscreen",
zoomIn: "Zoom In",
zoomOut: "Zoom Out",
downloadPDFFile: "Download PDF",
gotoFirstPage: "First Page",
gotoLastPage: "Last Page",
play: "AutoPlay On",
pause: "AutoPlay Off",
share: "Share"
},
/* ADVANCED SETTINGS */
hard: "none",
overwritePDFOutline: true,
duration: 1000,
pageMode: pdfflip.PAGE_MODE.AUTO,
singlePageMode: pdfflip.SINGLE_PAGE_MODE.AUTO,
transparent: false,
scrollWheel: true,
zoomRatio: 1.5,
maxTextureSize: 1600,
backgroundImage: "pflip/background.jpg",
backgroundColor: "#fff",
controlsPosition: pdfflip.CONTROLSPOSITION.BOTTOM,
allControls: "thumbnail,play,startPage,altPrev,pageNumber,altNext,endPage,zoomIn,zoomOut,fullScreen,download,sound,share",
hideControls: "outline",
};
var pdfflipLocation = "./pflip/";