diff --git a/src/components/HebergementLms.js b/src/components/HebergementLms.js index c32ca51..9c83759 100644 --- a/src/components/HebergementLms.js +++ b/src/components/HebergementLms.js @@ -221,7 +221,7 @@ function HebergementLms(props) { setimg_logo_file2(event.target.files[0]); } else { - sethandleSubmission_logo_message(" La taille de l'image est incorrecte. Larg = "+String(img_width)+" px Long = "+String(img_height)+" px"); + sethandleSubmission_logo_message(" La taille de l'image est incorrecte. Larg = " + String(img_width) + " px Long = " + String(img_height) + " px"); sethandleSubmission_logo_api("false"); setLoading(false); return; @@ -332,7 +332,7 @@ function HebergementLms(props) { console.log(" img_width = ", img_width); _URL.revokeObjectURL(objectUrl); if (parseFloat(img_width) > 1500 && parseFloat(img_width) < 1950 && - parseFloat(img_height) > 180 && parseFloat(img_height) < 200) { + parseFloat(img_height) > 170 && parseFloat(img_height) < 200) { //console.log(" img_height est = ", img_height, " < à 1500 "); @@ -342,7 +342,7 @@ function HebergementLms(props) { } else { - sethandleSubmission_bg_message(" La taille de l'image est incorrecte. Larg = "+String(img_width)+" px Long = "+String(img_height)+" px"); + sethandleSubmission_bg_message(" La taille de l'image est incorrecte. Larg = " + String(img_width) + " px Long = " + String(img_height) + " px"); sethandleSubmission_bg_api("false"); setLoading(false); return; @@ -436,6 +436,25 @@ function HebergementLms(props) { } + function Annule_bg_img() { + clear_message(); + setimg_bg_file(); + setimg_bg_file2(); + sethandleSubmission_bg_message(); + setSendBackground_Img_api(); + setSendBackground_Img_message(); + setbg_file_name(); + } + + function Annule_logo_img() { + clear_message(); + setimg_logo_file(); + setimg_logo_file2(); + sethandleSubmission_logo_message(); + setSend_logo_Img_api(); + setSend_logo_Img_message(); + setlogo_file_name(); + } return (