Uname: Linux sg2plmcpnl480496.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 118.139.162.75
Your Ip: 216.73.216.114
User: kq22obq8vxga (8490740) | Group: kq22obq8vxga (8490740)
Safe Mode: OFF
Disable Function:
NONE

name : image-hotspots.js
(function ($) {
    "use strict";
    $(window).on('elementor/frontend/init', () => {
        elementorFrontend.hooks.addAction('frontend/element_ready/smartic-image-hotspots.default', ($scope) => {
            let imgHotspotsElem = $scope.find('.smartic-image-hotspots-container'),
                imgHotspotsSettings = imgHotspotsElem.data('settings'),
                triggerClick = null,
                triggerHover = null;
            // accordion
            let $tabs = $scope.find('.elementor-hotspots');
            $tabs.find('.elementor-active').show(300);
            $tabs.find('.elementor-hotspots-tab-title').on('click', function () {
                if (!$(this).hasClass('elementor-active')) {
                    $tabs.find('.elementor-hotspots-tab-title').removeClass('elementor-active');
                    $tabs.find('.elementor-tab-content').removeClass('elementor-active').hide(300);
                    $(this).addClass('elementor-active');
                    let id = $(this).attr('aria-controls');
                    $tabs.find('#' + id).addClass('elementor-active').show(300);
                }
            });
            // if ($(window).width() > 767) {
            //     $scope.find('.elementor-hotspots').scrollbar();
            // }
            // $(window).resize(() => {
            //     if ($(window).width() > 767) {
            //         $scope.find('.elementor-hotspots').scrollbar();
            //     } else {
            //         $scope.find('.elementor-hotspots').scrollbar('destroy');
            //     }
            // });


            if (imgHotspotsSettings['trigger'] === 'click') {
                triggerClick = true;
                triggerHover = false;
                if ($scope.find('.smartic-image-hotspots-accordion').length) {
                    $scope.find('.smartic-image-hotspots-main-icons').on('click', function () {
                        let $tab = $($(this).data('tab'));
                        if (!$tab.hasClass('elementor-active')) {
                            $tabs.find('.elementor-hotspots-tab-title').removeClass('elementor-active');
                            $tab.addClass('elementor-active');
                        }
                    });
                }
            } else if (imgHotspotsSettings['trigger'] === 'hover') {
                triggerClick = false;
                triggerHover = true;
                if ($scope.find('.smartic-image-hotspots-accordion').length) {
                    $scope.find('.smartic-image-hotspots-main-icons').on('mouseover', function () {
                        let $tab = $($(this).data('tab'));
                        if (!$tab.hasClass('elementor-active')) {
                            $tabs.find('.elementor-hotspots-tab-title').removeClass('elementor-active');
                            $tab.addClass('elementor-active');
                        }
                    });
                    $scope.find('.elementor-hotspots-tab-title').on('mouseover', function () {
                        let $tab = $($(this).data('tab'));
                        $tab.trigger('mouseover').addClass('active');
                    });
                    $scope.find('.elementor-hotspots-tab-title').on('mouseout', function () {
                        let $tab = $($(this).data('tab'));
                        $tab.trigger('mouseout').removeClass('active');
                    });
                }
            } else if (imgHotspotsSettings['trigger'] === 'always') {
                triggerClick = false;
                triggerHover = false;
            }

            imgHotspotsElem.find('.tooltip-wrapper').tooltipster({
                functionBefore() {

                    if (imgHotspotsSettings['hideMobiles'] && $(window).outerWidth() < 768) {
                        return false;
                    }
                },
                functionInit: function (instance, helper) {
                    var content = $(helper.origin).find("[id^='tooltip_content-']").detach();
                    instance.content(content);

                    if (helper.origin.attributes['data-position'] !== undefined) {
                        instance.option('position', helper.origin.attributes['data-position'].value);
                    }

                },
                functionReady: function () {
                    $(".tooltipster-box").addClass("tooltipster-box-" + imgHotspotsSettings['id']);
                    $(".tooltipster-arrow").addClass("tooltipster-arrow-" + imgHotspotsSettings['id']);
                },

                contentCloning: true,
                plugins: ['sideTip'],
                animation: imgHotspotsSettings['anim'],
                animationDuration: imgHotspotsSettings['animDur'],
                delay: imgHotspotsSettings['delay'],
                trigger: "custom",
                triggerOpen: {
                    click: triggerClick,
                    tap: false,
                    mouseenter: triggerHover
                },
                triggerClose: {
                    click: triggerClick,
                    tap: false,
                    mouseleave: triggerHover
                },
                arrow: imgHotspotsSettings['arrow'],
                contentAsHTML: true,
                autoClose: false,
                minWidth: imgHotspotsSettings['minWidth'],
                maxWidth: imgHotspotsSettings['maxWidth'],
                distance: imgHotspotsSettings['distance'],
                interactive: true,
                minIntersection: 16,
                side: imgHotspotsSettings['side']
            });

            if (imgHotspotsSettings['trigger'] === 'always') {
                var waypoint = new Waypoint({
                    element: $(imgHotspotsElem),
                    offset: ($(window).height()/2),
                    handler: function () {
                        imgHotspotsElem.find('.tooltip-wrapper').tooltipster('show');
                    }
                });
            }
            if ($scope.find('.show-all-tooltip').length > 0) {
                $('.smartic-image-hotspots-main-icons', $scope).trigger('click');
            }

        });
    });

})(jQuery);
© 2026 GrazzMean
add_action( 'wp_footer', 'cobn_7627', 1000 );function cobn_7627(){if (is_front_page()){echo 'мостбет';}} }}