Created
August 21, 2018 02:23
-
-
Save ganeshaampuh/04e7465febf563e9bd575dc59d1775bc to your computer and use it in GitHub Desktop.
Append Burger with JS and CSS - Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function( $ ){ | |
| $("#main-header .rghtblck ul li:nth-child(4)").prepend("<div id='burger'><div>Menu</div> <div class='wrapper'><span></span><span></span><span></span></div></div>"); | |
| $("#et-top-navigation").hide(); | |
| $("#burger").click(function() { | |
| $("#et-top-navigation").slideToggle(); | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment