Advertisement
vojin

Untitled

Aug 31st, 2023
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.95 KB | None | 0 0
  1. <style>.et_mobile_menu .first-level > a {
  2. background-color: transparent;
  3. position: relative;
  4. }
  5. .et_mobile_menu .first-level > a:after {
  6. font-family: 'ETmodules';
  7. content: '\4c';
  8. font-weight: normal;
  9. position: absolute;
  10. font-size: 16px;
  11. top: 13px;
  12. right: 10px;
  13. }
  14. .et_mobile_menu .first-level > .icon-switch:after{
  15. content: '\4d';
  16. }
  17. .second-level {
  18. display: none;
  19. }
  20. .reveal-items {
  21. display: block;
  22. }
  23. .et_mobile_menu {
  24. margin-top: 20px;
  25. width: 230%;
  26. margin-left: -65%;
  27. }</style>
  28. <script>(function($) {
  29.        
  30. function setup_collapsible_submenus() {
  31.      
  32. var FirstLevel = $('.et_mobile_menu .first-level > a');
  33.    
  34. FirstLevel.off('click').click(function() {
  35. $(this).attr('href', '#');  
  36. $(this).parent().children().children().toggleClass('reveal-items');
  37. $(this).toggleClass('icon-switch');
  38. });
  39.    
  40.  
  41. }
  42.        
  43. $(window).load(function() {
  44. setTimeout(function() {
  45. setup_collapsible_submenus();
  46. }, 700);
  47. });
  48.  
  49. })(jQuery);</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement