Ready for prod.
This commit is contained in:
@@ -31,7 +31,7 @@ html, body{
|
||||
|
||||
#logo {
|
||||
background-color: aqua;
|
||||
background-image: url("Logo.jpg");
|
||||
background-image: url("../images/Logo.jpg");
|
||||
/*background:no-repeat;*/
|
||||
height: 103px;
|
||||
width: 141px;
|
||||
@@ -131,6 +131,34 @@ body {
|
||||
/*display:none;*/
|
||||
}
|
||||
|
||||
.title-site {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
font-size: 100px;
|
||||
}
|
||||
|
||||
.random-proposition {
|
||||
gap: 5%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.recommandation img {
|
||||
max-width: calc( 7vh + 7vw );
|
||||
max-height: calc( 7vh + 7vw );
|
||||
}
|
||||
|
||||
.line-acceuil {
|
||||
color: #03be90;
|
||||
box-shadow: 20px 6px 8px #007054;
|
||||
}
|
||||
|
||||
.tag-selected-div {
|
||||
flex: 4;
|
||||
}
|
||||
@@ -623,5 +651,9 @@ footer{
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.meta-recettes {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ document.addEventListener("DOMContentLoaded", function(){
|
||||
if (data.success) {
|
||||
let new_elem = document.createElement("option");
|
||||
|
||||
new_elem.setAttribute("value",document.getElementById('recette-form-ingr-nom').value);
|
||||
new_elem.setAttribute("value",data.id);
|
||||
new_elem.innerText = document.getElementById('recette-form-ingr-nom').value;
|
||||
|
||||
cible.appendChild(new_elem);
|
||||
@@ -86,7 +86,7 @@ document.addEventListener("DOMContentLoaded", function(){
|
||||
if (data.success) {
|
||||
let new_elem = document.createElement("option");
|
||||
|
||||
new_elem.setAttribute("value",nomTag.value);
|
||||
new_elem.setAttribute("value",data.id);
|
||||
new_elem.innerText = nomTag.value;
|
||||
|
||||
cible.appendChild(new_elem);
|
||||
@@ -146,7 +146,11 @@ document.addEventListener("DOMContentLoaded", function(){
|
||||
else {
|
||||
reponse.json().then( data => {
|
||||
if (data.success) {
|
||||
alert( "Envoyé" );
|
||||
if( IS_EDIT )
|
||||
alert( "Votre recette a été ajouté, vous allez être redirigé." );
|
||||
else
|
||||
alert( "Votre recette a été ajouté, vous allez être redirigé." );
|
||||
window.location.href = data.route !== null ? data.route : window.location.origin;
|
||||
} else {
|
||||
alert( data.error || "" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user