Re: Cannot move the debug window.
Posted: Mon Oct 21, 2024 5:43 am
okay, but how do I incorporate this into my Spiderbasic code?
- a basic to master the web -
https://forums.spiderbasic.com/
Code: Select all
!document.body.style.zoom = 1 / window.devicePixelRatio * 100 + "%"
!v_width=document.body.clientWidth;
!v_height=document.body.clientHeight;
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);
Code: Select all
.example2 {
zoom: 1.5; /* Adjust the value to zoom in or out */
}