| 1 |
/** |
| 2 |
* Start marker widget script |
| 3 |
*/ |
| 4 |
|
| 5 |
( function( $, elementor ) { |
| 6 |
|
| 7 |
'use strict'; |
| 8 |
|
| 9 |
var widgetIconMobileMenu = function( $scope, $ ) { |
| 10 |
|
| 11 |
var $marker = $scope.find( '.usk-mobile-menu-wrap' ); |
| 12 |
|
| 13 |
if ( ! $marker.length ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
|
| 17 |
var $tooltip = $marker.find('ul > li > .usk-tippy-tooltip'), |
| 18 |
widgetID = $scope.data('id'); |
| 19 |
|
| 20 |
$tooltip.each( function( index ) { |
| 21 |
tippy( this, { |
| 22 |
allowHTML: true, |
| 23 |
theme: 'usk-tippy-' + widgetID |
| 24 |
}); |
| 25 |
}); |
| 26 |
|
| 27 |
}; |
| 28 |
|
| 29 |
|
| 30 |
jQuery(window).on('elementor/frontend/init', function() { |
| 31 |
elementorFrontend.hooks.addAction( 'frontend/element_ready/usk-mobile-menu.default', widgetIconMobileMenu ); |
| 32 |
}); |
| 33 |
|
| 34 |
}( jQuery, window.elementorFrontend ) ); |
| 35 |
|
| 36 |
/** |
| 37 |
* End marker widget script |
| 38 |
*/ |
| 39 |
|
| 40 |
|