Move project files to root directory

This commit is contained in:
PCoder 2019-02-17 17:43:06 +01:00
commit ace2fa6eb9
223 changed files with 7 additions and 7 deletions

View file

@ -0,0 +1,18 @@
$(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();
});
});