Message from JavaScript discussions

September 2020

— RubenVerg function showScreen(id) {
var screen = document.getElementById(id);
screen.style.display = "block";
//$("#"+id).show();
screen.style.visibility = "visible";
}
function hideScreen(id) {
var screen = document.getElementById(id);
// $("#"+id).hide();
screen.style.display = "none";
screen.style.visibility = "hidden";

}

function hideScreens() {

var screens = document.getElementsByClassName("container");
for (let i = screens.length - 1; i >= 0; i--) {
let screen = screens[i];

screen.style.display = "none";
//screen.style.disabled = "none" ;

//screen.style.visibility = "hidden";
} }

Message permanent page

— 

Tried bot what i did is first tried to hideScreens (means all) and then only show the ones i want doesnt work

— So each function has hideScreens () and then the ones i want to display e.g showScreen(menu1)

— Can you share more details or link for this

— Hello guys

— What's the best way to check if directory exists?

— With fs.promises

— Problem is and was is a canvas element i have and need my script without it it works fine any suggestion ?

Message permanent page

— Fs.stat

— Or fsextra.fileExists

— What am I doing wrong?

— Forgot 1 }