Skip to content

Commit a65cc85

Browse files
committed
Initial version of new demo page
1 parent 6f29d25 commit a65cc85

14 files changed

Lines changed: 9619 additions & 1 deletion

examples/bootstrap/css/bootstrap-responsive.css

Lines changed: 1092 additions & 0 deletions
Large diffs are not rendered by default.

examples/bootstrap/css/bootstrap-responsive.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap/css/bootstrap.css

Lines changed: 6039 additions & 0 deletions
Large diffs are not rendered by default.

examples/bootstrap/css/bootstrap.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
8.57 KB
Loading
12.5 KB
Loading

examples/bootstrap/js/bootstrap.js

Lines changed: 2159 additions & 0 deletions
Large diffs are not rendered by default.

examples/bootstrap/js/bootstrap.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/css/editor.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.row-fluid .no-gutter {
2+
margin-left: 0px;
3+
}
4+
5+
footer {
6+
text-align: center;
7+
margin: 30px 0;
8+
}
9+
10+
#editor {
11+
width: 50%;
12+
height: 400px;
13+
float: left;
14+
clear: left;
15+
position: relative;
16+
}
17+
18+
.controls {
19+
float: left;
20+
clear: left;
21+
width: 50%;
22+
padding-top: 10px;
23+
}
24+

examples/editor.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
var jsPDFEditor = function() {
3+
4+
return {
5+
init: function() {
6+
7+
8+
var editor = ace.edit("editor");
9+
10+
editor.setTheme("ace/theme/monokai");
11+
editor.getSession().setMode("ace/mode/javascript");
12+
13+
console.log('hello');
14+
var doc = new jsPDF();
15+
doc.text(10, 10, 'Hello world.');
16+
var string = pdf.output('datauristring');
17+
18+
$('iframe').attr('src', string);
19+
20+
},
21+
update: function() {
22+
23+
24+
}
25+
};
26+
27+
}();
28+
29+
$(document).ready(function() {
30+
jsPDFEditor.init();
31+
});

0 commit comments

Comments
 (0)