PageSourceSearch

https://3dvisiondesign.hu/wp-content/plugins/webrotate-360-product-viewer/public/webrotate360.js?ver=3.6.0

js 3dvisiondesign.hu collected 2026-10-08 23:36:20 UTC 2,793 bytes, 67 lines download raw bytes

1function wr360QueryGetParameterByName(name) {
2    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
3    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
4}
5
6jQuery(document).ready(function() {
7    var popup360Elm = jQuery('#wr360PlayerId20');
8    if (popup360Elm.length === 1) {
9        var backgroundColor = wr360QueryGetParameterByName('background');
10        if (backgroundColor && backgroundColor.length > 0)
11            popup360Elm.css('background-color', backgroundColor);
12
13        popup360Elm.rotator({
14            licenseFileURL: wr360QueryGetParameterByName('lic'),
15            graphicsPath: wr360QueryGetParameterByName('grphpath'),
16            configFileURL: wr360QueryGetParameterByName('config'),
17            rootPath: wr360QueryGetParameterByName('root'),
18            googleEventTracking: wr360QueryGetParameterByName('analyt') === 'true',
19            viewName: wr360QueryGetParameterByName('viewname')
20        });
21    }
22    else {
23        var prettySkin = typeof getWR360PopupSkin !== 'undefined' ? getWR360PopupSkin() : 'light_clean';
24
25        if (typeof jQuery.fn.prettyPhoto !== 'undefined')
26            jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({animation_speed: 0, deeplinking: false, theme: prettySkin });
27    }
28
29    jQuery('.single_variation_wrap').on('show_variation', function(event, variation) {
30        var swiperEl = document.querySelector('.wr360-swiper-view');
31        if (!swiperEl || !swiperEl.swiper)
32            return;
33
34        var slidesEl = jQuery(swiperEl).find('.swiper-slide');
35        if (!slidesEl.length)
36            return;
37
38        var $swiper = jQuery(swiperEl),
39            varsLoadedAttrName = 'data-wr360-vars-loaded',
40            isVariationsLoaded = $swiper.attr(varsLoadedAttrName);
41
42        if (!isVariationsLoaded)
43            $swiper.attr(varsLoadedAttrName, 1);
44
45        var $firstSlide = jQuery(slidesEl[0]);
46        if ($firstSlide.data('wr360-cfg') && !isVariationsLoaded)
47            return;
48
49        for (var slideCount = 0; slideCount < slidesEl.length; slideCount++) {
50            var $slide = jQuery(slidesEl[slideCount]);
51            if ($slide.data('image-id') != variation.image_id)
52                continue;
53
54            var swiperMenuEl = document.querySelector('.wr360-swiper-menu'),
55                oldMenuSpeed = null;
56            if (swiperMenuEl && swiperMenuEl.swiper) {
57                oldMenuSpeed = swiperMenuEl.swiper.params.speed;
58                swiperMenuEl.swiper.params.speed = 0;
59            }
60
61            swiperEl.swiper.slideTo($slide.data('index'), 0);
62            if (oldMenuSpeed)
63                swiperMenuEl.swiper.params.speed = oldMenuSpeed;
64            break;
65        }
66    });
67});

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.