@@ -16,7 +16,7 @@ document.addEventListener("DOMContentLoaded", () => {
16
16
// Escuchamos el click del botón
17
17
const $boton = document . querySelector ( "#generatePDF" ) ;
18
18
$boton . addEventListener ( "click" , ( ) => {
19
- const $elementoParaConvertir = document . body ; // <-- Aquí puedes elegir cualquier elemento del DOM
19
+ const $elementoParaConvertir = document . body ; // <-- Here you can choose any element of the DOM
20
20
html2pdf ( )
21
21
. set ( {
22
22
margin : 1 ,
@@ -26,7 +26,7 @@ document.addEventListener("DOMContentLoaded", () => {
26
26
quality : 0.98
27
27
} ,
28
28
html2canvas : {
29
- scale : 3 , // A mayor escala, mejores gráficos, pero más peso
29
+ scale : 3 , // Larger scale, better graphics, but more weight
30
30
letterRendering : true ,
31
31
} ,
32
32
jsPDF : {
@@ -42,14 +42,6 @@ document.addEventListener("DOMContentLoaded", () => {
42
42
} ) ;
43
43
} ) ;
44
44
45
- /*function generatePDF(){
46
- const element = document.getElementById("payConfirmation");
47
-
48
- html2pdf()
49
- .from(element)
50
- .save();
51
- }*/
52
-
53
45
$ ( document ) . ready ( function ( ) {
54
46
$ ( '#moreImagesButton' ) . on ( 'click' , function ( ) {
55
47
@@ -62,8 +54,8 @@ $(document).ready(function() {
62
54
$ ( '#loader' ) . removeClass ( 'hidden' ) ;
63
55
} ,
64
56
success : function ( data ) {
65
- //Cargamos finalmente el contenido deseado
66
- //$('#masImagenes ').fadeIn(1000).html(data);
57
+ //We finally load the desired content
58
+ //$('#moreImgages ').fadeIn(1000).html(data);
67
59
$ ( "#moreImages" ) . fadeIn ( 1000 ) . append ( data ) ;
68
60
} ,
69
61
complete : function ( ) { // Set our complete callback, adding the .hidden class and hiding the spinner.
0 commit comments