ungleich-user/dal/static/hosting/js/order.js

18 lines
492 B
JavaScript
Raw Normal View History

2018-11-10 12:10:17 +00:00
$(document).ready(function() {
$('.btn-pdf').click(function(e) {
e.preventDefault();
var $target = $($(this).attr('data-target')) || $('body');
var fileName = $target.attr('id') + '.pdf';
html2pdf($target[0], {
filename: fileName,
html2canvas: {
scale: 2
}
});
});
$('.btn-print').click(function(e) {
e.preventDefault();
console.log('a');
window.print();
});
});