altZanyLvl 1
- Windows
To make a code.org applab project fullscreen, do I have to make it entirely out of HTML?
To make a code.org applab project fullscreen, do I have to make it entirely out of HTML?
altZany I believe @Varrience had a method for doing this on any app lab project.
Letti42 Like this?
var url = getAttribute("divApplab", "baseURI");
if(!url.includes("edit") && !url.includes("view"))setStyle('divApplab', "position: fixed; top: 0; left:0; width: 100vw; height: 100vh; z-index: 1000000;");
button('hi', "lol");
setPosition("hi", 500, 500, 100, 40);
hideElement("hi");
it doesn't seem to be working for me.
I'm confused, what do you want it to do? It's hiding the element so it doesn't show
Letti42 If I try to make a button centered in the middle of the screen (for example) it just dissapears.
https://studio.code.org/projects/applab/llBZT3pVx4ofKfW7RqMcMjs4rmeWG1nP7PPSI8gkzP0
you have to add another setStyle to the screen you use, just copy the one for divApplab and paste it in the same if statement but replace divApplab
with screen1
.