script.min.js
559 Bytes
/*
* Copyright © 2018 Regular Labs - All Rights Reserved
* License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
(function($){"use strict";$(document).ready(function(){$('.betterpreview-dropdown .dropdown-toggle').hover(function(){var el=$(this).parent();var menu=el.find('.dropdown-menu');menu.stop(true,true).show();el.addClass('open');var hide=function(){menu.stop(true,true).hide();el.removeClass('open');};$('html').click(function(){hide();});menu.hover(function(){},function(){hide();});$('#menu').hover(function(){hide();});});});})(jQuery);