HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Apache24/htdocs/wp-content/themes/simone/js/functions.js
jQuery(function($){
   /* 
    * Toggles search on and off
    */
   $('.search-toggle').on('click',function(event){
      var that = $(this),
      wrapper = $('.search-box-wrapper');
      
      that.toggleClass('active');
      wrapper.toggleClass('hide');
      
      if(that.is('.active)') || $('.search-toggle .screen-reader-text')[0] === event.target) {
          wrapper.find('.search-field').focus();
      }
   });
   
   var sf;
var breakpoint = 600;
   sf = $('ul.nav-menu');
    if($(document).width() >= breakpoint){
        sf.superfish({
            delay: 200,
            speed: 'fast'
        });
    }
    $(window).resize(function(){
        if($(document).width() >= breakpoint & !sf.hasClass('sf-js-enabled')){
            sf.superfish({
                delay: 200,
                speed: 'fast'
            });
        } else if($(document).width() < breakpoint) {
            sf.superfish('destroy');
        }
    });
});