/** * This file is part of Zwii. * * For full copyright and license information, please see the LICENSE * file that was distributed with this source code. * * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean * @license GNU General Public License, version 3 * @link http://zwiicms.com/ */ /* * Chargement de l'aperçu */ $( document ).ready(function() { // Import des polices de caractères var titleFont = $("#themeTitleFont").val(); var textFont = $("#themeTextFont").val(); var css = "@import url('https://fonts.googleapis.com/css?family=" + titleFont + "|" + textFont + "');"; var colors = core.colorVariants($("#themeButtonBackgroundColor").val()); css += "h1.preview,h3.preview{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}"; css += "p.preview{color:" + $("#themeTextTextColor").val() + "}"; css += "div.preview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; // Couleurs des liens colors = core.colorVariants($("#themeLinkTextColor").val()); css += "a.preview{color:" + colors.normal + "}"; css += "a.preview:hover{color:" + colors.darken + "}"; // Paramètrage du DOM $("#themePreview").remove(); $("