PHP Classes

File: lib/js/dropdown.js

Recommend this page to a friend!
  Classes of Joko Prasetyo   kciaotime WordPress Theme   lib/js/dropdown.js   Download  
File: lib/js/dropdown.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: kciaotime WordPress Theme
WordPress theme to customize different page parts
Author: By
Last change:
Date: 1 year ago
Size: 347 bytes
 

Contents

Class file image Download
( function( $ ) { $( document ).ready(function() { $('.nav-menu').prepend('<div class="menu-button">Menu</div>'); $('.nav-menu .menu-button').on('click', function(){ var menu = $(this).next('ul'); if (menu.hasClass('open')) { menu.removeClass('open'); } else { menu.addClass('open'); } }); }); } )( jQuery );