PageSourceSearch

https://ecofamily.hu/!common_packages/jquery/own/shop_tooltip/shop_tooltip.js?mod_time=1759314983

js ecofamily.hu collected 2026-10-06 13:28:32 UTC 3,123 bytes, 78 lines download raw bytes

1$(document).ready(function(){
2	var currentID;
3
4	if (unas_design_ver < 5) {
5        $.shop_popup("open", {
6            id: 'PopupContainer_tooltip',
7            popupId: "tooltip",
8            ajax_url: 'no',
9            ajax_loader: false,
10            overflow: ''
11        });
12        $('#page_PopupContainer_tooltip').hover(function () {
13            $('#page_PopupContainer_tooltip').attr('data-hoverIntentAttached', 1);
14        }, function () {
15            if (unas_design_ver < 3 || (typeof shop_tooltip_mouseout_hide !== 'undefined' && shop_tooltip_mouseout_hide == 1)) {
16                $.shop_popup("close", { popupId: 'tooltip' });
17                $('#page_PopupContainer_tooltip').css("display", "none");
18            }
19            $('#page_PopupContainer_tooltip').attr('data-hoverIntentAttached', 0);
20        });
21
22        $(document).bind('ajaxStop', function() {
23            product_tooltip();
24        });
25    }
26
27    product_tooltip();
28});
29
30function product_tooltip() {
31    if (typeof config_plus['product_tooltip']!=='undefined' && config_plus['product_tooltip']==1 && unas_design_ver<=3) {
32        $(".page_PopupTrigger, .product_tooltip_hover, .js-product-tooltip-hover").hoverIntent({
33            over: function () {
34                currentID = $(this).attr('data-sku');
35                if (currentID == '') return;
36                $.shop_popup("open", {
37                    id: 'PopupContainer_tooltip',
38                    ajax_url: shop_url_main + '/shop_artdet.php',
39                    ajax_data: 'ajax_tooltip=1&get_ajax=1&cikk=' + currentID + '&change_lang=' + actual_lang,
40                    overflow: '',
41                    popupId: 'tooltip'
42                });
43            },
44            out: function () {
45                if ($('#page_PopupContainer_tooltip').attr('data-hoverIntentAttached') != 1) {
46                    $.shop_popup("close", { popupId: 'tooltip' });
47                    $('#page_PopupContainer_tooltip').css("display", "none");
48                }
49            },
50            timeout: 400,
51            interval: 400,
52            sensitivity: 8
53        });
54    }
55}
56
57$(document).on("click", ".product_tooltip_click, .js-product-tooltip-click", function(event){
58    event.preventDefault();
59    var modal = 0;
60    if (unas_design_ver>=4) modal=0.7;
61    currentID = $(this).attr('data-sku');
62    if (currentID == '') return;
63    if (typeof config_plus['product_tooltip']!=='undefined' && config_plus['product_tooltip']==1) {
64        $('#page_PopupContainer_tooltip').attr('data-hoverIntentAttached', 1);
65        $.shop_popup("open", {
66            id: 'PopupContainer_tooltip',
67            ajax_url: shop_url_main + '/shop_artdet.php',
68            ajax_data: 'ajax_tooltip=1&get_ajax=1&cikk=' + currentID + '&change_lang=' + actual_lang,
69            overflow: '',
70            popupId: 'tooltip',
71            modal: modal,
72            closeClick: (config_plus['overlay_close_on_click_forced'] === 1)
73        });
74        $(document).trigger('productTooltipButtonClicked', { event: event, sku: currentID });
75    } else {
76        location.href=unas_shop_url+'/spd/'+currentID+'/';
77    }
78});

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.