Skip to content

Commit 3b2aa08

Browse files
author
JLRR2019
committed
Traducción y pulleo del main para subir la imágen
1 parent ea084a0 commit 3b2aa08

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

backend/gamelink/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
environment:
1010
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/gamelink
1111
- SPRING_DATASOURCE_USERNAME=postgres
12-
- SPRING_DATASOURCE_PASSWORD=Juanluis-123
12+
- SPRING_DATASOURCE_PASSWORD=password
1313
- SPRING_JPA_HIBERNATE_DLL_AUTO=update
1414
- SPRING_JPA_SHOW_SQL=true
1515
restart: on-failure
@@ -21,7 +21,7 @@ services:
2121
restart: always
2222
environment:
2323
- POSTGRES_USER=postgres
24-
- POSTGRES_PASSWORD=Juanluis-123
24+
- POSTGRES_PASSWORD=password
2525
- POSTGRES_DB=gamelink
2626
volumes:
2727
- ./postgres:/var/lib/postgres

backend/gamelink/src/main/resources/static/js/scripts.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ document.addEventListener("DOMContentLoaded", () => {
1616
// Escuchamos el click del botón
1717
const $boton = document.querySelector("#generatePDF");
1818
$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
2020
html2pdf()
2121
.set({
2222
margin: 1,
@@ -26,7 +26,7 @@ document.addEventListener("DOMContentLoaded", () => {
2626
quality: 0.98
2727
},
2828
html2canvas: {
29-
scale: 3, // A mayor escala, mejores gráficos, pero más peso
29+
scale: 3, // Larger scale, better graphics, but more weight
3030
letterRendering: true,
3131
},
3232
jsPDF: {
@@ -42,14 +42,6 @@ document.addEventListener("DOMContentLoaded", () => {
4242
});
4343
});
4444

45-
/*function generatePDF(){
46-
const element = document.getElementById("payConfirmation");
47-
48-
html2pdf()
49-
.from(element)
50-
.save();
51-
}*/
52-
5345
$(document).ready(function() {
5446
$('#moreImagesButton').on('click', function(){
5547

@@ -62,8 +54,8 @@ $(document).ready(function() {
6254
$('#loader').removeClass('hidden');
6355
},
6456
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);
6759
$("#moreImages").fadeIn(1000).append(data);
6860
},
6961
complete: function () { // Set our complete callback, adding the .hidden class and hiding the spinner.

0 commit comments

Comments
 (0)