Cannot move the debug window.
Re: Cannot move the debug window.
okay, but how do I incorporate this into my Spiderbasic code?
Re: Cannot move the debug window.
Code: Select all
!document.body.style.zoom = 1 / window.devicePixelRatio * 100 + "%"
!v_width=document.body.clientWidth;
!v_height=document.body.clientHeight;
I need a java script or a Spiderbasic code for this.
Does anyone have an idea?
Re: Cannot move the debug window.
You could do this with inline JS:Stefan wrote: Sun Nov 10, 2024 6:49 amI'm still looking for an alternative for this code, as Fred says it's not a good idea to use it.Code: Select all
!document.body.style.zoom = 1 / window.devicePixelRatio * 100 + "%" !v_width=document.body.clientWidth; !v_height=document.body.clientHeight;
I need a java script or a Spiderbasic code for this.
Does anyone have an idea?
Code: Select all
! const metaViewport = document.createElement("meta");
! metaViewport.name = "viewport";
! metaViewport.content = "width=device-width, initial-scale=1.0";
! document.head.appendChild(metaViewport);
Re: Cannot move the debug window.
Unfortunately, this code causes the program to crash
Re: Cannot move the debug window.
Code: Select all
.example2 {
zoom: 1.5; /* Adjust the value to zoom in or out */
}
Maybe I can zoom in and out of the screen with CSS.
But how do I integrate it into SpiderBasic?