-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins-pdf.html
42 lines (33 loc) · 1.18 KB
/
plugins-pdf.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body class="theme_green">
<div class="block">
<p>Click on this PDF button to download and open a sample pdf.</p>
</div>
<div class="block">
<a href="javascript:;" id="openPdf">Open Sample PDF</a>
</div>
<script type="text/javascript" src="js/zepto.min.js"></script>
<script type="text/javascript" src="js/Cobalt-Web/cobalt.js"></script>
<script type="text/javascript" src="js/Plugins-Pdf-Web/cobalt.pdf.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script>
Zepto(function($) {
cobalt.init();
app.touch('#openPdf', function() {
cobalt.openpdf({
source: 'url',
path: 'https://firebasestorage.googleapis.com/v0/b/cobaltians-by-kristal.appspot.com/o/SampleCatalogFiles%2Funicorn.pdf?alt=media&token=b7e02b70-805d-43e8-baaf-3c519518430d',
});
});
app.initPage('PDF Plugin');
});
</script>
</body>
</html>