<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[Frdlweb: Darkmode added to the framework}]]></title>
	<link>https://frdl.de/blog/view/1213/darkmode-added-to-the-framework</link>
	<atom:link href="https://frdl.de/blog/view/1213/darkmode-added-to-the-framework" rel="self" type="application/rss+xml" />
	<description><![CDATA[}]]></description>
		<item>
	<guid isPermaLink="true">https://frdl.de/blog/view/1213/darkmode-added-to-the-framework</guid>
	<pubDate>Sat, 23 Dec 2023 19:21:06 +0000</pubDate>
	<link>https://frdl.de/blog/view/1213/darkmode-added-to-the-framework</link>
	<title><![CDATA[Darkmode added to the framework]]></title>
	<description><![CDATA[<p>Thanks to <a href="https://www.npmjs.com/package/darkmode-js">darkmode-js</a>, a darkmode was added to the framework:</p><blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;async function darkmode(Webfan){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(true !== Webfan.c.website.darkmode.enabled &amp;&amp; 'true' !== Webfan.c.website.darkmode.enabled){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;return;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(new Webfan.Darkmode(Webfan.c.website.darkmode.options)).showWidget();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}catch(err){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;console.warn(err);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}</p></blockquote><p><a href="https://frdl.de/blog/view/1208/webfanjs-webfan-websitejs-configuration-parameters">Read here how you can change the options: https://frdl.de/blog/view/1208/webfanjs-webfan-websitejs-configuration-parameters</a></p><p>&nbsp;</p>]]></description>
	<dc:creator>Melanie Wehowski</dc:creator>		</item>
</channel>
</rss>
