A
A
Anton Romanov2019-01-05 13:44:46
css
Anton Romanov, 2019-01-05 13:44:46

Why doesn't the responsive burger menu open?

Help pzhlst deal with the adaptive burger menu.
The menu does not open on the site, the icon is there, but nothing happens when you click. The inspector throws an error: scripts.js:1 Uncaught ReferenceError: $ is not defined at scripts.js:1.
put jQuery in html

<script src="http://code.jquery.com/jquery-latest.min.js"></script>

I uploaded it to the sandbox... Here it surprisingly opens up, BUT when loaded, it immediately shows up open and hides in a second. The html, css, js (jquery) code is the same everywhere.
Please help me understand:
1) why the menu does not open on the site (appears at a resolution of 768px and less))
2) why it is shown open in the sandbox when loading. (I set the resolution large, you can see it right away)
The second day I'm struggling, I can't understand the error. Help out :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-01-05
@a007mr

Include jquery BEFORE your script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question