Skip to content

Commit

Permalink
Add interactive browser demo files to publish website script
Browse files Browse the repository at this point in the history
  • Loading branch information
blikblum committed Jul 10, 2021
1 parent 4898dcb commit dd6569e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
67 changes: 36 additions & 31 deletions demo/browser.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
<!doctype html>
<html>

<head>
<meta charset="utf-8">
<style>
body {
width: 1230px;
margin: 20px auto;
font-family: Georgia;
}
h1 {
margin: 0;
}
a {
color: blue;
}
#editor {
width: 600px;
height: 775px;
margin-right: 20px;
display: inline-block;
}
iframe {
border: 1px solid black;
}
body {
width: 1230px;
margin: 20px auto;
font-family: Georgia;
}

h1 {
margin: 0;
}

a {
color: blue;
}

#editor {
width: 600px;
height: 775px;
margin-right: 20px;
display: inline-block;
}

iframe {
border: 1px solid black;
}
</style>
</head>

<body>
<h1>PDFKit Browser Demo</h1>
<p><a href="http://pdfkit.org/">Website</a> | <a href="http://github.com/devongovett/pdfkit">Github</a></p>
<p><a href="http://pdfkit.org/">Website</a> | <a href="http://github.com/foliojs/pdfkit">Github</a></p>
<div id="editor"></div>
<iframe width="600" height="775"></iframe>
<script src="bundle.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48340245-1', 'pdfkit.org');
ga('send', 'pageview');
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-48340245-1', 'pdfkit.org');
ga('send', 'pageview');
</script>
</body>

</html>
2 changes: 2 additions & 0 deletions docs/publish_website.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ghpages.publish(
'docs/*.html',
'docs/img/*.png',
'docs/guide.pdf',
'demo/browser.html',
'demo/bundle.js',
'demo/out.pdf'
],
add: true,
Expand Down

0 comments on commit dd6569e

Please sign in to comment.