get Screen Witdh
by Mrt Ja
JavaScript
const mq = window.matchMedia( "(min-width: 500px)" );
if (mq.matches) {
alert(screen.width + ' ist größer als 500px')
} else {
alert(screen.width + ' ist kleienr als 500px')
}
by Mrt Ja
const mq = window.matchMedia( "(min-width: 500px)" );
if (mq.matches) {
alert(screen.width + ' ist größer als 500px')
} else {
alert(screen.width + ' ist kleienr als 500px')
}