So verwenden Sie Medienabfrage mit JQuery
if (window.matchMedia('(max-width: 768px)').matches)
{
// do functionality on screens smaller than 768px
}
Fragile Flatworm
if (window.matchMedia('(max-width: 768px)').matches)
{
// do functionality on screens smaller than 768px
}