Skip to content

Commit

Permalink
Update flasq.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
philffm committed Nov 13, 2020
1 parent 682af1c commit fe0b876
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions viewer_figma/flasq.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// https://browserhow.com/how-to-clear-chrome-android-history-cookies-and-cache-data/
// imports
import {HideButton,DragItem,publish,subscribe,LinkClickButton,CanvasProgressInfoClass,LinkVisible,ForAllElements,setElementVal,getElementVal,DomList,getElement} from '../lib/koiosf_util.mjs';
import {HideButton,DragItem,publish,subscribe,LinkClickButton,LinkToggleButton,CanvasProgressInfoClass,LinkVisible,ForAllElements,setElementVal,getElementVal,DomList,getElement} from '../lib/koiosf_util.mjs';
import {SetupLogWindow} from '../lib/koiosf_log.mjs';
import {GetToggleState} from '../genhtml/startgen.mjs';

var darkModeactive = false;
var githubRepoUrl = 'https://philffm.github.io/lib/viewer_figma/';
Expand Down Expand Up @@ -57,7 +58,7 @@ async function asyncloaded() {
`);
LoadCSS(githubRepoUrl +'flasq.css');
init();
LinkClickButton("modeselect party",switchDarkmode);
LinkToggleButton("modeselect party", switchDarkmode);
}


Expand All @@ -81,15 +82,18 @@ function initLottie(lottieUrl){
}

function switchDarkmode() {
if (darkModeactive ==true) {

}else if (darkModeactive == false){
if (darkModeactive = false){
console.log('DARKMODE HALLO');

LoadCSS(githubRepoUrl +'dm.css');
darkModeactive = true;

}else if (darkModeactive = true) {

}



}

function initTextFields(){
Expand Down

0 comments on commit fe0b876

Please sign in to comment.