Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>.et_mobile_menu .first-level > a {
- background-color: transparent;
- position: relative;
- }
- .et_mobile_menu .first-level > a:after {
- font-family: 'ETmodules';
- content: '\4c';
- font-weight: normal;
- position: absolute;
- font-size: 16px;
- top: 13px;
- right: 10px;
- }
- .et_mobile_menu .first-level > .icon-switch:after{
- content: '\4d';
- }
- .second-level {
- display: none;
- }
- .reveal-items {
- display: block;
- }
- .et_mobile_menu {
- margin-top: 20px;
- width: 230%;
- margin-left: -65%;
- }</style>
- <script>(function($) {
- function setup_collapsible_submenus() {
- var FirstLevel = $('.et_mobile_menu .first-level > a');
- FirstLevel.off('click').click(function() {
- $(this).attr('href', '#');
- $(this).parent().children().children().toggleClass('reveal-items');
- $(this).toggleClass('icon-switch');
- });
- }
- $(window).load(function() {
- setTimeout(function() {
- setup_collapsible_submenus();
- }, 700);
- });
- })(jQuery);</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement