10.1 toutjours afficher backtotop dans body

This commit is contained in:
Fred Tempez 2020-05-21 08:00:52 +02:00
parent 1475ff30fa
commit 902d70a663
1 changed files with 11 additions and 3 deletions

View File

@ -10,6 +10,13 @@
* @link http://zwiicms.com/ * @link http://zwiicms.com/
*/ */
/**
* Affichage de l'icone de remontée et permettre l'aperçu.
*/
$(document).ready(function(){
$("#backToTop").css("display","show");
});
/** /**
* Aperçu en direct * Aperçu en direct
*/ */
@ -24,8 +31,8 @@ $("input, select").on("change", function() {
else { else {
css += "body{background-image:none}"; css += "body{background-image:none}";
} }
css += '#backToTop {background-color:' + $("#themeBodyToTopBackground").val() + ';color:' + $("#themeBodyToTopColor").val() + ';}'; css += '#backToTop {background-color:' + $("#themeBodyToTopBackground").val() + ';color:' + $("#themeBodyToTopColor").val() + ';}';
// Ajout du css au DOM // Ajout du css au DOM
$("#themePreview").remove(); $("#themePreview").remove();
$("<style>") $("<style>")
@ -42,4 +49,5 @@ $("#themeBodyImage").on("change", function() {
else { else {
$("#themeBodyImageOptions").slideUp(); $("#themeBodyImageOptions").slideUp();
} }
}).trigger("change"); }).trigger("change");