/** * Functionality specific to Abedul. * * Provides helper functions to enhance the theme experience. */ ( function($) { menuToggle = $('.menu-toggle'); siteNavigation = $('#masthead'); _window = $(window); /** * In small screens the dropdownToggle is a button with an icon inside and it is after the 'a' element * that is the child of a 'li' with submenues. (The button, the 'a' element and the submenu are siblings). * In big screens the dropdownToggle is only an icon and it is inside the 'a' that is the child of a 'li' with submenues. **/ function createDropdownToggle() { $('.dropdown-toggle').remove(); $('.dropdown-arrow').remove(); if ( 881 > _window.width() ) { var dropdownToggle = $('