Include hosting and stripe
This commit is contained in:
parent
64fcc3e613
commit
d774d38554
432 changed files with 55919 additions and 13 deletions
18
static/hosting/js/order.js
Normal file
18
static/hosting/js/order.js
Normal 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();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue