Active la position fixe sur contain ou cover dans l'image d'arrière plan

This commit is contained in:
Prof Langues 2021-02-05 10:07:58 +01:00
parent f6c1e2a9f3
commit 2935a4dd8e
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,15 @@ $(document).ready(function(){
* Aperçu en direct * Aperçu en direct
*/ */
$("input, select").on("change", function() { $("input, select").on("change", function() {
// Option fixe pour contain et cover
var themeBodyImageSize = $("#themeBodyImageSize").val();
if(themeBodyImageSize === "cover" ||
themeBodyImageSize === "contain" ) {
$("#themeBodyImageAttachment").val("fixed");
}
// Couleur du fond // Couleur du fond
var css = "html{background-color:" + $("#themeBodyBackgroundColor").val() + "}"; var css = "html{background-color:" + $("#themeBodyBackgroundColor").val() + "}";
// Image du fond // Image du fond