Breakpoint für mobile menu mit jQuery ? 2
Guten Tag,
auf meiner Seite wird das Menü mit einer jQuery(function($) aufgerufen.
Ich möchte vorher abfragen, ob: @media only screen and ( max-width: 768px )
dann soll eine andere funktion aufgerufen werden.
Kommentar abgeben zu diesen Beitrag/Code ?Dann hier klicken
Der hier verwendete Code
<html>
<head>
<style>
*{
margin:0;
padding:0;
}
.slide-in-open{
cursor: pointer;
position:fixed;
top:0;
height:30px;
width:30px;
border:1px solid black;
left:0;
}
.line{
display: block;
position: absolute;
height: 3px;
width: 30px;
background: #ad9262;
border-radius: 9px;
opacity: 1;
transition: .1s ease-in-out;
}
.line-2 {
top: 10px;
}
.line-3 {
top: 20px;
}
#aufzu{
position:absolute;
left:-20000px;