Current File : /pages/54/47/d0016649/home/htdocs/cd24/wp-content/themes/en-vision/lib/js/topbar.min.js |
/*!
* Envision
*
* @version 3.7.0
*
* @author Wptation
* @link http://envision.wptation.com/
* @license ThemeForest Split Licence
* @copyright 2019
*/
jQuery(document).ready(function(){if(jQuery.isFunction(jQuery.fn.superfish)){var e=jQuery(".ui--custom-menu","#top-bar"),s=e.attr("data-animation-speed");e.superfish({hoverClass:"hover",cssArrows:!1,delay:500,speed:s||50,speedOut:s||50})}var t=jQuery("#widget--search","#top-bar"),a=t.find("a"),n=t.find("input"),i=t.find(".ui--search-form"),r=jQuery("html").hasClass("cssanimations");a.click(function(e){e.preventDefault(),n.focus()}),n.bind("focus",function(){r?t.addClass("state--open"):i.stop(1).animate({width:150})}),n.bind("blur",function(){r?t.removeClass("state--open"):i.stop(1).animate({width:0})})});