Nice news !
you can show your own repository first. (Github URl).
I have my own repository but I need to continue my efforts.
We've just merged some new features in the core here.
Maybe Mamba could propose another solution, let's see what he says!
<a class="btn btn-secondary" href="javascript:xswatchLightingToggle();" role="button"><span id="xswatch-lighting-ind"></span></a>
<script type="text/javascript">
// Alain
function xswatchLightingIndLight() {
$('#xswatch-lighting-ind').attr('class', 'fa fa-sun-o fa-fw');
// $('#xswatch-lighting').show();
$('#$xswatchCss == 'css-cerulean');
}
function xswatchLightingIndDark() {
$('#xswatch-lighting-ind').attr('class', 'fa fa-moon-o fa-fw');
// $('#xswatch-lighting').hide();
$('#xswatchDarkCss == 'css-slate');
}
function xswatchLightingToggle() {
var lighting_cookie = Cookies.get('xswatch-lighting');
if (lighting_cookie == 'off') {
lighting_cookie = 'on';
xswatchLightingIndLight();
} else {
lighting_cookie = 'off';
xswatchLightingIndDark();
}
Cookies.set('xswatch-lighting', lighting_cookie, { expires: 365, sameSite: 'strict' });
}
// set initial conditions based on cookie
var lighting_cookie = Cookies.get('xswatch-lighting');
if (lighting_cookie == 'off') {
xswatchLightingIndDark();
} else {
xswatchLightingIndLight();
}
</script>