Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
width = document.body.offsetWidth | window.innerWidth
height = document.body.offsetHeight | window.innerHeight
var winW = 630, winH = 460;
if (parseInt(navigator.appVersion)>3)
{
if (navigator.appName=="Netscape")
{
winW = window.innerWidth; winH = window.innerHeight;
}
if (navigator.appName.indexOf("Microsoft")!=-1)
{
winW = document.body.offsetWidth; winH = document.body.offsetHeight;
}
}
function getClientWidth() {
var cltWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Wanneer de property innerWidth aanwezig is in de browser (en dus een nummer is)
cltWidth = window.innerWidth;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//Wanneer de property document Element aanwezig is
cltWidth = document.documentElement.clientWidth;
} else if( document.body && document.body.clientWidth ) {
//Wanneer de clientWidth property aanwezig is in de body
cltWidth = document.body.clientWidth;
}
return cltWidth;
}
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.