1(function ($) { 2 "use strict"; 3 $(window).on('elementor/frontend/init', () => { 4 elementorFrontend.hooks.addAction('frontend/element_ready/winwood-image-hotspots.default', ($scope) => { 5 let imgHotspotsElem = $scope.find('.opal-image-hotspots-container'), 6 imgHotspotsSettings = imgHotspotsElem.data('settings'), 7 triggerClick = false, 8 triggerHover = true; 9 10 imgHotspotsElem.find('.tooltip-wrapper').tooltipster({ 11 12 functionInit : function (instance, helper) { 13 var content = $(helper.origin).find(".tooltip_content").detach(); 14 instance.content(content); 15 }, 16 functionReady : function () { 17 $(".tooltipster-box").addClass("tooltipster-box-" + imgHotspotsSettings['id']); 18 $(".tooltipster-arrow").addClass("tooltipster-arrow-" + imgHotspotsSettings['id']); 19 }, 20 contentCloning : true, 21 plugins : ['sideTip'], 22 animation : imgHotspotsSettings['anim'], 23 animationDuration: imgHotspotsSettings['animDur'], 24 delay : imgHotspotsSettings['delay'], 25 trigger : "custom", 26 triggerOpen : { 27 click : triggerClick, 28 tap : true, 29 mouseenter: triggerHover 30 }, 31 triggerClose : { 32 click : triggerClick, 33 tap : true, 34 mouseleave: triggerHover 35 }, 36 arrow : imgHotspotsSettings['arrow'], 37 contentAsHTML : true, 38 autoClose : false, 39 minWidth : imgHotspotsSettings['minWidth'], 40 maxWidth : imgHotspotsSettings['maxWidth'], 41 distance : imgHotspotsSettings['distance'], 42 interactive : true, 43 minIntersection : 16, 44 side : imgHotspotsSettings['side'] 45 }); 46 47 $(window).load(function () { 48 49 if ($(window).width() >= 768) { 50 imgHotspotsElem.find('.active.tooltip-wrapper').tooltipster('open'); 51 } 52 53 }); 54 }); 55 }); 56 57})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.