Skip to content

Commit

Permalink
Correcciones
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucasponzoni committed Apr 29, 2024
1 parent 3c17344 commit 1f2aaae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 1 addition & 6 deletions formulario-andesmar.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ function enviarSolicitud() {
if (data.Message && data.Message === "ERRORNo es posible realizar el envío hacia el destino seleccionado.") {
// Crear un contenedor para el mensaje de error con estilos
const contenedorError = document.createElement("div");
contenedorError.style.textAlign = "center";
contenedorError.style.marginTop = "20px";
contenedorError.style.backgroundColor = "red"; // Color de fondo rojo
contenedorError.style.color = "white"; // Color del texto blanco
contenedorError.style.borderRadius = "10px"; // Borde redondeado
contenedorError.style.padding = "20px"; // Añadir relleno
contenedorError.classList.add('contenedorError');

// Crear un mensaje de error con el texto deseado
const mensajeError = document.createElement("p");
Expand Down
12 changes: 12 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,16 @@ button:hover {

#calleRemitente, #calleNroRemitente, #codigoPostalRemitente, #m3{
display: none;
}

.contenedorError{
background-color: #3498db;
text-align: center;
justify-content: center;
align-items: center;
border-radius: 10px;
}

.contenedorError p{
color: white;
}

0 comments on commit 1f2aaae

Please sign in to comment.