Darkmode added to the framework

Thanks to darkmode-js, a darkmode was added to the framework:

    async function darkmode(Webfan){
        try{
            if(true !== Webfan.c.website.darkmode.enabled && 'true' !== Webfan.c.website.darkmode.enabled){
              return;    
            }
            (new Webfan.Darkmode(Webfan.c.website.darkmode.options)).showWidget();
        }catch(err){
          console.warn(err);    
        }
    }

Read here how you can change the options: https://frdl.de/blog/view/1208/webfanjs-webfan-websitejs-configuration-parameters

Comments

NoticeLog in

Your need to be logged in to be able to comment.

connect with ❤️Webfan | connect with Google