[Rozwiązane] Podwójne wyświetlanie zdjęć.
Strona 1 z 2 12 OstatniOstatni
Wyniki 1 do 10 z 13

Temat: Podwójne wyświetlanie zdjęć.

  1. #1
    Debiutant
    Dołączył
    22-10-2019
    Wpisy
    7
    Punkty
    2

    Joomla! 3.6 Podwójne wyświetlanie zdjęć.

    Witam serdecznie.

    Mam taki problem otóż na swojej stronie internetowej do robienia galerii stosuję dodatek: sigplus. Problem z nim jednak jest taki, że po kliknięci zdjęcie otwiera się dwa razy. Raz w okienku lightbox - tak jakby systemowym no i drugi raz w samym sigplusie.

    Teraz pytanie, jak wyłączyć ten "systemowy" podgląd zdjęcia po kliknięciu, abo został sam z sigplusa.
    wersja joomli: 3.6.5

    Zaznaczam, że raczej jestem laikiem w tej tematyce dlatego też proszę o wyrozumiałość.

    Z góry dziękuję za pomoc!

  2. Pani Reklamowa
    Pani Reklamowa jest aktywna
    Avatar Panny Google

    Dołączył
    19-08-2010
    Skąd
    Internet
    Postów
    milion
    Pochwał
    setki
  3. #2
    Wyga siristru awatar
    Dołączył
    28-05-2009
    Skąd
    Szczecin
    Wpisy
    3 242
    Punkty
    302

    Domyślny

    Podaj link do strony by można było zobaczyć ten cud
    Na Forum pomagam bezpłatnie ad maiorem Joomla gloriam
    Mimo pomocy na forum nie dajesz rady? Potrzebujesz by ekspert "zrobił to" za Ciebie?
    Napisz do mnie na PW. Argentum et Aurum nie zawsze jest konieczne ;)

  4. #3
    Debiutant
    Dołączył
    22-10-2019
    Wpisy
    7
    Punkty
    2

    Domyślny

    Proszę bardzo : )

    http://www.kravmaga.ruda-huta.pl/to-...nu-2019-2020-r

    Tekst na którego końcu w galerii występuje ten właśnie problem : /

  5. #4
    Wyga siristru awatar
    Dołączył
    28-05-2009
    Skąd
    Szczecin
    Wpisy
    3 242
    Punkty
    302

    Domyślny

    Pojawiają się dwa obrazki bo jedna akcja wywołuje dwie rzeczy na raz: Sigplus boxplus oraz bd-lightbox który jest częścią twojego aktualnego szablonu.
    Sprawdź ustawienia szablonu czy jest tam jakaś opcja włącz/wyłącz lightbox.
    Na Forum pomagam bezpłatnie ad maiorem Joomla gloriam
    Mimo pomocy na forum nie dajesz rady? Potrzebujesz by ekspert "zrobił to" za Ciebie?
    Napisz do mnie na PW. Argentum et Aurum nie zawsze jest konieczne ;)

  6. #5
    Debiutant
    Dołączył
    22-10-2019
    Wpisy
    7
    Punkty
    2

    Domyślny

    Sprawdzałem ustawienia szablonu i niestety nie ma tam możliwości wyłączenia lightbox który tu przeszkadza : / Jeśli chodzi o ten szablon dostępne opcje podrzucam w screenach: Załącznik 9704 i Załącznik 9705

    Nie znalazłem tu nigdzie informacji na temat możliwości wyłączenia tego podglądu obrazków : /

  7. #6
    Wyga siristru awatar
    Dołączył
    28-05-2009
    Skąd
    Szczecin
    Wpisy
    3 242
    Punkty
    302

    Domyślny

    To lipnie, pozostanie zatem modyfikacja plików. Przez FTP edytuj ten plik: ROOT/templates/dd_autogarage_84/script.js

    Zrób kopię zapasową tego pliku.

    Następnie na serwerze podmień jego zawartość na:

    Kod:
    (function (jQuery, $) {
    var PREVIEW = false;
    
    /* global define */
    /* exported productsGridEqualHeight, initSlider */
    
    (function ($) {
        'use strict';
    
        $.fn.equalImageHeight = function () {
            return this.each(function() {
                var maxHeight = 0;
    
                $(this).children('a').children('img').each(function(index, child) {
                    var h = $(child).height();
                    maxHeight = h > maxHeight ? h : maxHeight;
                    $(child).css('height', ''); // clears previous value
                });
    
                $(this).children('a').each(function(index, child) {
                    $(child).height(maxHeight);
                });
    
            });
        };
    
        $.fn.equalColumnsHeight = function () {
            function off() {
                /* jshint validthis: true */
                this.onload = null;
                this.onerror = null;
                this.onabort = null;
            }
    
            function on(dfd) {
                /* jshint validthis: true */
                off.bind(this)();
                dfd.resolve();
            }
    
            return this.each(function() {
                var loadPromises = [];
    
                $(this).find('img').each(function () {
                    if (this.complete) return;
                    var deferred = $.Deferred();
                    this.onload = on.bind(this, deferred);
                    this.onerror = on.bind(this, deferred);
                    this.onabort = on.bind(this, deferred);
                    loadPromises.push(deferred.promise());
                });
    
                $.when.apply($, loadPromises).done((function () {
                    var cols =  $(this).children('[class*="col-"]').children('[class*="bd-layoutcolumn-"]').css('height', '');
                    var indexesForEqual = [];
                    var colsWidth = 0;
                    var containerWidth = parseInt($(this).css('width'), 10);
                    $(cols).each((function (key, column) {
                        colsWidth += parseInt($(column).parent().css('width'), 10);
                        if ((containerWidth + cols.length) >= colsWidth) { // col.length fixes width round in FF
                            indexesForEqual.push(key);
                        }
                    }).bind(this));
    
                    var maxHeight = 0;
                    indexesForEqual.forEach(function (index) {
                        if (maxHeight < parseInt($(cols[index]).parent().css('height'), 10)) {
                            maxHeight = parseInt($(cols[index]).parent().css('height'), 10);
                        }
                    });
    
                    indexesForEqual.forEach(function (index) {
                        $(cols[index]).css('height', maxHeight);
                    });
                }).bind(this));
            });
        };
    
        $(function(){
            $('.bd-row-auto-height').equalColumnsHeight();
            $(window).resize(function(){
                $('.bd-row-auto-height').equalColumnsHeight();
            });
        });
    })(jQuery);
    
    // IE10+ flex fix
    if (1-'\0') {
    
        var fixHeight = function fixHeight() {
            jQuery('.bd-row-flex > [class*="col-"] > [class*="bd-layoutcolumn-"] > .bd-vertical-align-wrapper, ' +
                    '[class*="bd-layoutitemsbox-"].bd-flex-wide').each(function () {
    
                var content = jQuery(this);
                var wrapper = content.children('.bd-fix-flex-height');
                if (!wrapper.length) {
                    content.wrapInner('<div class="bd-fix-flex-height clearfix"></div>');
                }
                var height = wrapper.outerHeight(true);
                content.removeAttr('style');
                content.css({
                    '-ms-flex-preferred-size': height + 'px',
                    'flex-basis': height + 'px'
                });
            });
    
            setTimeout(fixHeight, 500);
        };
    
        var fixMinHeight = function () {
            jQuery('.bd-stretch-inner').wrap('<div class="bd-flex-vertical"></div>');
        };
    
        jQuery(fixHeight);
        jQuery(fixMinHeight);
    }
    
    /*!
     * jQuery Cookie Plugin v1.4.0
     * https://github.com/carhartl/jquery-cookie
     *
     * Copyright 2013 Klaus Hartl
     * Released under the MIT license
     */
    (function (factory) {
        'use strict';
        if (typeof define === 'function' && define.amd) {
            define(['jquery'], factory);
        } else {
            factory(jQuery);
        }
    }(function ($) {
        'use strict';
        var pluses = /\+/g;
    
        function encode(s) {
            return config.raw ? s : encodeURIComponent(s);
        }
    
        function decode(s) {
            return config.raw ? s : decodeURIComponent(s);
        }
    
        function stringifyCookieValue(value) {
            return encode(config.json ? JSON.stringify(value) : String(value));
        }
    
        function parseCookieValue(s) {
            if (s.indexOf('"') === 0) {
                s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
            }
    
            try {
                s = decodeURIComponent(s.replace(pluses, ' '));
            } catch(e) {
                return;
            }
    
            try {
                return config.json ? JSON.parse(s) : s;
            } catch(e) {}
        }
    
        function read(s, converter) {
            var value = config.raw ? s : parseCookieValue(s);
            return $.isFunction(converter) ? converter(value) : value;
        }
    
        var config = $.cookie = function (key, value, options) {
    
            // Write
            if (value !== undefined && !$.isFunction(value)) {
                options = $.extend({}, config.defaults, options);
    
                if (typeof options.expires === 'number') {
                    var days = options.expires, t = options.expires = new Date();
                    t.setDate(t.getDate() + days);
                }
    
                return (document.cookie = [
                    encode(key), '=', stringifyCookieValue(value),
                    options.expires ? '; expires=' + options.expires.toUTCString() : '',
                    options.path    ? '; path=' + options.path : '',
                    options.domain  ? '; domain=' + options.domain : '',
                    options.secure  ? '; secure' : ''
                ].join(''));
            }
    
            var result = key ? undefined : {};
            var cookies = document.cookie ? document.cookie.split('; ') : [];
    
            for (var i = 0, l = cookies.length; i < l; i++) {
                var parts = cookies[i].split('=');
                var name = decode(parts.shift());
                var cookie = parts.join('=');
    
                if (key && key === name) {
                    result = read(cookie, value);
                    break;
                }
    
                if (!key && (cookie = read(cookie)) !== undefined) {
                    result[name] = cookie;
                }
            }
    
            return result;
        };
    
        config.defaults = {};
    
        $.removeCookie = function (key, options) {
            if ($.cookie(key) !== undefined) {
                $.cookie(key, '', $.extend({}, options, { expires: -1 }));
                return true;
            }
            return false;
        };
    
    }));
    
    window.initSlider = function initSlider(selector, leftButtonSelector, rightButtonSelector, navigatorSelector, indicatorsSelector, carouselInterval, carouselPause, carouselWrap, carouselRideOnStart) {
        'use strict';
        jQuery(selector + '.carousel.slide .carousel-inner > .item:first-child').addClass('active');
    
        function setSliderInterval() {
            jQuery(selector + '.carousel.slide').carousel({interval: carouselInterval, pause: carouselPause, wrap: carouselWrap});
            if (!carouselRideOnStart) {
                jQuery(selector + '.carousel.slide').carousel('pause');
        }
        }
    
        /* 'active' must be always specified, otherwise slider would not be visible */
        jQuery(selector + '.carousel.slide .' + leftButtonSelector + ' a' + navigatorSelector).attr('href', '#');
        jQuery(selector + '.carousel.slide .' + leftButtonSelector + ' a' + navigatorSelector).click(function() {
            setSliderInterval();
            jQuery(selector + '.carousel.slide').carousel('prev');
            return false;
        });
    
        jQuery(selector + '.carousel.slide .' + rightButtonSelector + ' a' + navigatorSelector).attr('href', '#');
        jQuery(selector + '.carousel.slide .' + rightButtonSelector + ' a' + navigatorSelector).click(function() {
            setSliderInterval();
            jQuery(selector + '.carousel.slide').carousel('next');
            return false;
        });
    
        jQuery(selector + '.carousel.slide').on('slid.bs.carousel', function () {
            var indicators = jQuery(indicatorsSelector, this);
            indicators.find('.active').removeClass('active');
            var activeSlide = jQuery(this).find('.item.active');
            var activeIndex = activeSlide.parent().children().index(activeSlide);
            var activeItem = indicators.children()[activeIndex];
            jQuery(activeItem).children('a').addClass('active');
        });
    
        setSliderInterval();
    };
    
    jQuery(function ($) {
        'use strict';
    
        $('.collapse-button').each(function () {
            var button = $(this);
            var collapse = button.siblings('.collapse');
    
            collapse.on('show.bs.collapse', function () {
                if (button.parent().css('position') === 'absolute') {
                    var right = collapse.width() - button.width();
                    if (button.hasClass('bd-collapse-right')) {
                        $(this).css({
                            'position': 'relative',
                            'right': right
                        });
                    } else {
                        $(this).css({
                            'position': '',
                            'right': ''
                        });
                    }
                }
            });
        });
    });
    
    (function ($) {
        'use strict';
        var row = [],
            getOffset = function (el) {
                var isInline = false;
                el.css('position', 'relative');
                if (el.css('display') === 'inline') {
                    el.css('display', 'inline-block');
                    isInline = true;
                }
                var offset = el.position().top;
                if (isInline) {
                    el.css('display', 'inline');
                }
                return offset;
            },
            getCollapsedMargin = function (el) {
                if (el.css('display') === 'block') {
                    var m0 = parseFloat(el.css('margin-top'));
                    if (m0 > 0) {
                        var p = el.prev();
                        var prop = 'margin-bottom';
                        if (p.length < 1) {
                            p = el.parent();
                            prop = 'margin-top';
                        }
                        if (p.length > 0 && p.css('display') === 'block') {
                            var m = parseFloat(p.css(prop));
                            if (m > 0) {
                                return Math.min(m0, m);
                            }
                        }
                    }
                }
                return 0;
            },
            classRE = new RegExp('.*(bd-\\S+[-\\d]*).*'),
            childFilter = function () {
                return classRE.test(this.className);
            },
            calcOrder = function (items) {
                var roots = items;
                while (roots.eq(0).children().length === 1) {
                    roots = roots.children();
                }
                var childrenClasses = [];
                var childrenWeights = {};
                var getNextWeight = function (children, i, l) {
                    for (var j = i + 1; j < l; j++) {
                        var cls = children[j].className.replace(classRE, '$1');
                        if (childrenClasses.indexOf(cls) !== -1) {
                            return childrenWeights[cls];
                        }
                    }
                    return 100; //%
                };
                roots.each(function (i, root) {
                    var children = $(root).children().filter(childFilter);
                    var previousWeight = 0;
                    for (var c = 0, l = children.length; c < l; c++) {
                        var cls = children[c].className.replace(classRE, '$1');
                        if (childrenClasses.indexOf(cls) === -1) {
                            var nextWeight = getNextWeight(children, c, l);
                            childrenWeights[cls] = previousWeight + (nextWeight - previousWeight) / 10; //~max unique child
                            childrenClasses.push(cls);
                        }
                        previousWeight = childrenWeights[cls];
                    }
                });
                childrenClasses.sort(function (a, b) {
                    return childrenWeights[a] > childrenWeights[b];
                });
                return childrenClasses;
            };
        var calcRow = function (helpNodes, last, order) {
    
            $(row).css({'overflow': 'visible', 'height': 'auto'}).toggleClass('last-row', last);
    
            if (row.length > 0) {
                var roots = $(row);
                roots.removeClass('last-col').last().addClass('last-col');
                while (roots.eq(0).children().length === 1) {
                    roots = roots.children();
                }
                var cls = '';
                var maxOffset = 0;
                var calcMaxOffsets = function (i, root) {
                    var el = $(root).children().filter('.' + cls + ':visible:first');
                    if (el.length < 1 || el.css('position') === 'absolute') {
                        return;
                    }
                    var offset = getOffset(el);
                    if (offset > maxOffset) {
                        maxOffset = offset;
                    }
                };
                var setMaxOffsets = function (i, root) {
                    var el = $(root).children().filter('.' + cls + ':visible:first');
                    if (el.length < 1 || el.css('position') === 'absolute') {
                        return;
                    }
                    var offset = getOffset(el);
                    var fix = maxOffset - offset - getCollapsedMargin(el);
                    if (fix > 0) {
                        var helpNode = document.createElement('div');
                        helpNode.setAttribute('style', 'height:' + fix + 'px');
                        helpNode.className = 'bd-empty-grid-item';
                        helpNodes.push(helpNode);
                        el.before(helpNode);
                    }
                };
                for (var c = 0; c < order.length; c++) {
                    maxOffset = 0;
                    cls = order[c];
                    roots.each(calcMaxOffsets).each(setMaxOffsets);
                }
                var hMax = 0;
                $.each(roots, function (i, e) {
                    var h = $(e).outerHeight();
                    if (hMax < h) {
                        hMax = h;
                    }
                });
                $.each(roots, function (i, e) {
                    var el = $(e);
                    var fix = hMax - el.outerHeight();
                    if (fix > 0) {
                        var helpNode = document.createElement('div');
                        helpNode.setAttribute('style', 'height:' + fix + 'px');
                        helpNode.className = 'bd-empty-grid-item';
                        helpNodes.push(helpNode);
                        el.append(helpNode);
                    }
                });
            }
            row = [];
        };
        var itemsRE = new RegExp('.*(separated-item[^\\s]+).*'),
            resize =  function () {
                var grid = $('.separated-grid');
                grid.each(function (i, gridElement) {
                    var g = $(gridElement);
                    if (!g.is(':visible')) {
                        return;
                    }
                    if (!gridElement._item || !gridElement._item.length || !gridElement._item.is(':visible')){
                        gridElement._item = g.find('div[class*=separated-item]:visible:first');
                        if (!gridElement._item.length){
                            return;
                        }
                        gridElement._items =  g.find(
                            'div.' + gridElement._item.attr('class').replace(itemsRE, '$1')
                        ).filter(function () {
                                return $(this).parents('.separated-grid')[0] === gridElement;
                            })
                    }
                    var items = gridElement._items;
                    if (!items.length){
                        return;
                    }
                    var h = 0;
                    for (var k = 0; k < items.length; k++) {
                        var el = $(items[k]);
                        var _h = el.height();
                        if (el.is('.first-col')) {
                            h = _h;
                        }
                        if (h !== _h) {
                            gridElement._height = 0;
                        }
                    }
    
    
                    if (g.innerHeight() === gridElement._height && g.innerWidth() === gridElement._width) {
                        return;
                    }
    
                    var windowScrollTop = $(window).scrollTop();
                    items.css({'overflow': 'hidden', 'height': '10px'}).removeClass('last-row');
                    if (gridElement._helpNodes) {
                        $(gridElement._helpNodes).remove();
                    }
                    gridElement._helpNodes = [];
                    var firstLeft = items.position().left;
                    var order = calcOrder(items);
                    var notDisplayed = [];
                    var lastItem = null;
                    items.each(function (i, gridItem) {
                        var item = $(gridItem);
                        var p = item;
                        do {
                            if (p.css('display') === 'none') {
                                p.data('style', p.attr('style')).css('display', 'block');
                                notDisplayed.push(p[0]);
                            }
                            p = p.parent();
    
                        } while (p.length > 0 && p[0] !== gridElement && !item.is(':visible'));
                        var first = firstLeft >= item.position().left;
                        if (first && row.length > 0) {
                            calcRow(gridElement._helpNodes, lastItem && lastItem.parentNode !== gridItem.parentNode, order);
                        }
                        row.push(gridItem);
                        item.toggleClass('first-col', first);
                        if (i === items.length - 1) {
                            calcRow(gridElement._helpNodes, true, order);
                        }
                        lastItem = gridItem;
                    });
                    $(notDisplayed).each(function (i, e) {
                        var el = $(e);
                        var css = el.data('style');
                        el.removeData('style');
                        if ('undefined' !== typeof css) {
                            el.attr('style', css);
                        } else {
                            el.removeAttr('style');
                        }
                    });
                    gridElement._width = g.innerWidth();
                    gridElement._height = g.innerHeight();
                    $(window).scrollTop(windowScrollTop);
                    $(window).off('resize', lazy);
                    $(window).resize();
                    $(window).on('resize', lazy);
                });
            },
            timeoutLazy,
            lazy = function(){
                clearTimeout(timeoutLazy);
                timeoutLazy = setTimeout(resize, 100);
            },
            interval =function (){
                lazy();
                setTimeout(interval, 1000);
            };
        $(window).resize(lazy);
        $(interval);
    })(jQuery);
    
    
    (function ($) {
        'use strict';
        $(document).ready(function () {
            if ("undefined" !== typeof parent.AppController) return;
            var controls = $('[data-autoplay=true]');
            $(controls).each(function (index, item) {
                item.src = item.src + "&autoplay=1";
            });
        });
    
    })(jQuery);
    
    jQuery(function ($) {
        'use strict';
    
        $(document).on('click.themler', '[data-responsive-menu] li > a:not([data-toggle="collapse"])', function responsiveClick() {
            var itemLink = $(this);
            var menu = itemLink.closest('[data-responsive-menu]');
            var responsiveBtn = menu.find('.collapse-button');
            var responsiveLevels = menu.data('responsiveLevels');
    
            if (responsiveBtn.length &&
                    !responsiveBtn.is(':visible') ||
                    (responsiveLevels !== 'expand on click' && responsiveLevels !== '') ||
                    !menu.data('responsiveMenu')) {
                return true;
            }
    
            var submenu = itemLink.siblings();
            if (!submenu.length) return true;
            if (submenu.css('visibility') === 'visible') {
                submenu.removeClass('show');
                submenu.find('.show').removeClass('show');
                itemLink.removeClass('active');
            } else {
                itemLink
                    .closest('li')
                    .siblings('li')
                    .find('ul').parent()
                    .removeClass('show');
                submenu.addClass('show');
                itemLink.addClass('active');
            }
            return false;
        });
    });
    
    jQuery(function ($) {
        'use strict';
    
        $('body')
            .on('click.themler', '[data-url] a', function (e) {
                e.stopPropagation();
            })
            .on('click.themler', '[data-url]', function () {
                var elem = $(this),
                    url = elem.data('url'),
                    target = elem.data('target');
                window.open(url, target);
            });
    });
    
    jQuery(function ($) {
        'use strict';
        var leftClass = 'bd-popup-left';
        var rightClass = 'bd-popup-right';
    
        $(document).on('mouseenter', 'ul.nav > li, .nav ul > li', function calcSubmenuDirection() {
            var popup = $(this).children('[class$="-popup"], [class*="-popup "]');
            if (popup.length) {
                popup.removeClass(leftClass + ' ' + rightClass);
                var dir = '';
                if (popup.parents('.' + leftClass).length) {
                    dir = leftClass;
                } else if (popup.parents('.' + rightClass).length) {
                    dir = rightClass;
                }
                if (dir) {
                    popup.addClass(dir);
                } else {
                    var left = popup.offset().left;
                    var width = popup.outerWidth();
                    if (left < 0) {
                        popup.addClass(rightClass);
                    } else if (left + width > $(window).width()) {
                        popup.addClass(leftClass);
                    }
                }
            }
        });
    });
    
    jQuery(function ($) {
        'use strict';
    
        window.tabCollapseResize = function () {
            $('.tabbable').each(function () {
                var tabbable = $(this);
                var tabMenu = tabbable.children('.nav-tabs');
                var tabs = tabMenu.children('li');
                var tabContent = tabbable.children('.tab-content');
                var panels = tabContent.find('.tab-pane');
    
                if (!tabs.filter('.active').length) {
                    tabs.first().addClass('active');
                    panels.removeClass('active').first().addClass('active');
                }
    
                if (!tabbable.data('responsive')) {
                    if (tabContent.children('.accordion').length) {
                        tabContent.children('.accordion').children().first().unwrap();
                    }
                    tabContent.find('.accordion-item').remove();
                    panels.each(function () {
                        var wrapper = $(this).children('.accordion-wrap');
                        if (wrapper.children().length) {
                            wrapper.children().first().unwrap();
                        } else {
                            wrapper.remove();
                        }
                    });
                    return;
                }
    
                var cls = tabMenu.siblings('.accordion').children('.accordion-content').attr('class');
                var wrapper = tabContent.find('.accordion-wrap');
                if (wrapper.length) {
                    tabContent.find('.accordion-wrap').toggleClass(cls, tabContent.find('.accordion-item:visible').length > 0);
                    return;
                }
    
                var accordion = tabbable.children('.accordion');
    
                accordion.show();
                var accordionTpl = accordion.clone();
                accordion.hide();
    
                var itemTpl = accordion.find('.accordion-item').clone();
                var contentTpl = accordion.find('.accordion-content').clone();
                accordionTpl.empty();
    
                tabs.each(function () {
                    var tab = $(this);
                    var tablink = tab.find('[data-toggle="tab"]');
                    var currentId = tablink.attr('href');
                    var panel = panels.filter(currentId);
    
                    var collapseLink = $('<a></a>');
                    collapseLink.html(tablink.html());
                    collapseLink.attr('data-toggle', 'collapse');
                    collapseLink.attr('data-target', currentId);
    
                    panel.before(itemTpl.clone().append(collapseLink));
                    panel.wrapInner(contentTpl.clone().addClass('accordion-wrap').toggleClass(cls, collapseLink.is(':visible')));
    
                    panel.addClass('collapse');
                    if (panel.is('.active')) {
                        panel.addClass('in');
                        collapseLink.addClass('active');
                    }
    
                    /* Collapse */
    
                    panel.on('show.bs.collapse', function () {
                        var actives = panels.filter('.in');
                        panels.filter('.collapsing:not(.active)').addClass('bd-collapsing');
                        if (actives && actives.length) {
                            var activesData = actives.data('bs.collapse');
                            if (!activesData || !activesData.transitioning) {
                                actives.collapse('hide');
                                if (!activesData) actives.data('bs.collapse', null);
                            }
                        }
                        panel.css('display', 'block');
    
                        collapseLink.addClass('active');
                    });
    
                    panel.on('shown.bs.collapse', function () {
                        tab.addClass('active');
                        panel.addClass('active');
    
                        panel.css('display', '');
                        panel.filter('.bd-collapsing').removeClass('bd-collapsing').collapse('hide');
                    });
    
                    panel.on('hide.bs.collapse', function () {
                        collapseLink.removeClass('active');
                    });
    
                    panel.on('hidden.bs.collapse', function () {
                        tab.removeClass('active');
                        panel.removeClass('active');
                        panel.css('height', '');
                    });
    
                    /* Tabs */
    
                    tablink.on('show.bs.tab', function () {
                        panels.removeClass('in');
                        tabContent.find('.accordion > .accordion-item > a').removeClass('active');
    
                        panel.css('height', '');
                        panel.addClass('in');
                        collapseLink.addClass('active');
                    });
                });
    
                tabContent.wrapInner(accordionTpl);
            });
        };
    
        var resizeTimeout;
        $(window).on('resize', function () {
            clearTimeout(resizeTimeout);
            resizeTimeout = setTimeout(window.tabCollapseResize, 25);
        });
    
        window.tabCollapseResize();
    });
    
    jQuery(function ($) {
        'use strict';
    
        var resizeHandler = function () {
            $('.carousel.adjust-slides').each(function () {
                var inner = $(this).find('.carousel-inner'),
                    items = inner.children('.item').addClass('clearfix').css('width', '100%');
                var maxH = 0;
                if (items.length > 1) {
                    var windowScrollTop = $(window).scrollTop();
                    items.css('min-height', '0').each(function(){
                        maxH = Math.max(maxH, parseFloat(getComputedStyle(this).height));
                    }).css('min-height', maxH);
                    inner.css('height', maxH);
                    if ($(window).scrollTop() !== windowScrollTop){
                        $(window).scrollTop(windowScrollTop);
                    }
                }
            });
            setTimeout(resizeHandler, 100);
        };
        resizeHandler();
    });
    
    
    
    jQuery(function ($) {
        'use strict';
        var panels = $('.bd-accordion .bd-container-43').parent();
        panels.on('show.bs.collapse', function () {
            var actives = panels.filter('.in');
    
            $(this).prev().children('a').addClass('active');
            actives.prev().children('a').removeClass('active');
    
            if (actives && actives.length) {
                var hasData = actives.data('bs.collapse');
                if (!hasData || !hasData.transitioning) {
                    actives.collapse('hide');
                    if (!hasData) actives.data('bs.collapse', null);
                }
            }
        });
        panels.on('hidden.bs.collapse', function () {
            $(this).prev().children('a').removeClass('active');
        });
    });
    
    
    jQuery(function($) {
        'use strict';
        $('.add_to_cart_button').filter(function(){
            return '#' === $(this).attr('href');
        }).click(function (e) {
                e.preventDefault();
                var link = $(this),
                    formClone = $(this).parent('.product').clone(),
                    vmsiteurl = link.attr('data-vmsiteurl'),
                    vmlang = link.attr('data-vmlang'),
                    success = link.attr('data-vmsuccessmsg'),
                    carts = $('div[data-cart-position]'),
                    cartCustomFields = $('.product-field[data-cart-attribute="1"] *[name]'),
                    cloneCartCustomFields = cartCustomFields.clone(),
                    cart, position, style, id, url, datas;
                if (formClone.length) {
                    cartCustomFields.each(function(i) {
                        var element = this;
                        cloneCartCustomFields.eq(i).val($(element).val());
                    });
                    formClone.append(cloneCartCustomFields);
                    datas = formClone.serialize();
                    url = vmsiteurl + 'index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json' + vmlang;
                    $.getJSON(url, datas, function(datas, textStatus) {
                        link.html(success);
                        if (carts.length > 0) {
                            carts.each(function () {
                                position = $(this).attr('data-cart-position') || '';
                                style = $(this).attr('data-style') || '';
                                id = $(this).attr('data-id') || '';
                                cart = $(this);
                                if ('' !== position) {
                                    url = vmsiteurl + 'index.php';
                                    (function(url, style, cart ) {
                                        $.ajax({
                                            url: url,
                                            type : 'get',
                                            data: {
                                                tmpl : 'modrender',
                                                modulename : 'mod_virtuemart_cart',
                                                modulestyle : style,
                                                moduleid : id,
                                                is_preview : PREVIEW ? 'on' : 'off'
                                            },
                                            dataType: 'html',
                                            success: function (data) {
                                                if (data)
                                                    cart.replaceWith(data);
                                            },
                                            error: function (xhr, status) {}
                                        });
                                    })(url, style, cart);
                                }
                            });
                        }
                    });
                }
                return false;
            });
    });
    
    
    jQuery(function ($) {
        'use strict';
        if (PREVIEW) {
            var search = $('form[name*="search"]');
            search.submit(function() {
                return false;
            });
    
            $('#form-login').submit(function() {
                return false;
            });
            var logout = $('#form-login > input[type*="submit"]');
            logout.attr('link-disable', true);
    
            $('#checkoutForm').submit(function() {
                return false;
            });
            var checkout = $('#checkoutFormSubmit');
            checkout.attr('link-disable', true);
    
            var removeLinks = $('.removelink').filter(function () {
                if((this.getAttribute('name') + '').indexOf('delete.') === 0) return true;
                else return false;
            });
            removeLinks.attr('link-disable', true);
    
            var versions = $('.edit.item-page a[title=\'Versions\']');
            versions.attr('link-disable', true);
        }
    });
    
    
    // Fixing conflict Mootools.fx slide with Bootstap Carousel
    if ('undefined' !== typeof jQuery && 'undefined' !== typeof MooTools) {
        Element.implement({
            slide: function (how, mode) {
                return this;
            },
            hide: function () {
                return this;
            },
            show: function () {
                return this;
            }
        });
    }
    
    (function ($) {
        'use strict';
        window.eventSetProductType = function(event) {
    
            var form = event.data.form,
                product = event.data.product,
                prices = product.find(".product-prices");
    
            if (prices.length === 0) {
                return false;
            }
    
            if (!event.data.form) {
                return false;
            }
    
            var formClone = form.clone(),
                cartCustomFields = $('.product-field[data-cart-attribute="1"] *[name]', product),
                cloneCartCustomFields = cartCustomFields.clone();
    
            cartCustomFields.each(function(i) {
                var element = this;
                cloneCartCustomFields.eq(i).val($(element).val());
            });
            formClone.append(cloneCartCustomFields);
            var datas = formClone.serialize();
            datas = datas.replace("&view=cart", "");
    
            prices.fadeTo("fast", 0.75);
            $.ajax({
                type: "POST",
                cache: false,
                dataType: "json",
                url: window.vmSiteurl + "index.php?&option=com_virtuemart&view=productdetails&task=recalculate&format=json&nosef=1" + window.vmLang,
                data: datas
            }).done(
                function (data, textStatus) {
                    prices.fadeTo("fast", 1);
                    // refresh price
                    for (var key in data) {
                        var value = data[key];
                        if (key !== 'messages' && value !== 0) {
                            prices.find("span."+key).show().html(value);
                        }
                    }
                }
            );
    
            return false; // prevent reload
        };
    
        window.onEventSetProductType = function(product) {
            product.attr('data-updating-content', true);
            $("form.product", product).each(function() {
                var form = $(this),
                    select = form.find('select:not(.no-vm-bind)'),
                    selectOutForm = $('.product-field[data-cart-attribute="1"] select:not(.no-vm-bind)', product),
                    radio = form.find('input:radio:not(.no-vm-bind)'),
                    radioOutForm = $('.product-field[data-cart-attribute="1"] input:radio:not(.no-vm-bind)', product),
                    virtuemart_product_id = form.find('input[name="virtuemart_product_id[]"]').val();
    
                $(select).off('change', window.eventSetProductType);
                $(select).on('change', {form : form, product : product}, window.eventSetProductType);
                $(selectOutForm).off('change', window.eventSetProductType);
                $(selectOutForm).on('change', {form : form, product : product}, window.eventSetProductType);
    
                $(radio).off('change', window.eventSetProductType);
                $(radio).on('change', {form : form, product : product}, window.eventSetProductType);
                $(radioOutForm).off('change', window.eventSetProductType);
                $(radioOutForm).on('change', {form : form, product : product}, window.eventSetProductType);
            });
        };
    })(jQuery);
    
    })(window._$, window._$);
    (function (jQuery, $) {
    (function ($) {
        'use strict';
    
        window.initAffix = function initAffix(selector) {
            $('.bd-affix-fake').prev(':not([data-fix-at-screen])').next().remove();
    
            $(selector).each(function () {
                var element = $(this),
                    offset = {},
                    cachedOffset = null;
    
                element.off('.affix');
                element.removeAttr('style');
                element.removeClass($.fn.affix.Constructor.RESET);
                element.removeData('bs.affix');
    
                offset.top = function () {
                    var hasAffix = element.hasClass('affix');
    
                    if (cachedOffset === null && hasAffix) {
                        element.removeClass('affix');
                    }
    
                    if (!hasAffix) {
                        var elTop = element.offset().top,
                            offset = parseInt(element.data('offset'), 10) || 0,
                            clipAtControl = element.data('clipAtControl'),
                            fixAtScreen = element.data('fixAtScreen'),
                            elHeight = element.outerHeight();
    
                        var ev = $.Event('affix-calc.theme.affix');
                        element.trigger(ev);
                        ev.offset = ev.offset || 0;
                        offset += ev.offset;
    
                        if (clipAtControl === 'bottom') {
                            elTop += elHeight;
                        }
    
                        if (fixAtScreen === 'bottom') {
                            elTop += offset;
                            elTop -= $(window).height();
                        }
    
                        if (fixAtScreen === 'top') {
                            elTop -= offset;
                        }
    
                        cachedOffset = elTop;
                    }
    
                    if (cachedOffset === null && hasAffix) {
                        element.addClass('affix');
                    }
    
                    return cachedOffset;
                };
    
                element.on('affix.bs.affix', function (e) {
                    var el = $(this),
                        fake = el.next('.bd-affix-fake');
    
                    if (!fake.is(':visible')) {
                        e.preventDefault();
                        return;
                    }
    
                    if (['absolute', 'fixed'].indexOf(el.css('position')) === -1) {
                        fake.css('height', el.outerHeight(true));
                    }
    
                    // fix affix position
                    var body = $('body');
                    var bodyWidth = body.outerWidth() || 1;
                    var elWidth = el.outerWidth();
                    var elLeft = el.offset().left;
                    el.css('width', (el.outerWidth() / bodyWidth * 100) + '%');
    
                    if (bodyWidth / 2 > (elLeft + elWidth / 2)) {
                        el.css('left', (elLeft / bodyWidth * 100) + '%');
                        el.css('right', 'auto');
                    } else {
                        el.css('right', ((bodyWidth - elLeft - elWidth) / bodyWidth * 100) + '%');
                        el.css('left', 'auto');
                    }
    
                    var offset = parseInt(element.data('offset'), 10) || 0;
                    var ev = $.Event('affix-calc.theme.affix');
                    el.trigger(ev);
                    ev.offset = ev.offset || 0;
                    offset += ev.offset;
    
                    if (element.data('fixAtScreen') === 'bottom') {
                        el.css('top', 'auto');
                        el.css('bottom', offset + 'px');
                    } else {
                        el.css('top', offset + 'px');
                        el.css('bottom', 'auto');
                    }
                });
    
                element.on('affixed-top.bs.affix', function () {
                    $(this).next('.bd-affix-fake').removeAttr('style');
                    $(this).removeAttr('style');
                });
    
                if (!element.next('.bd-affix-fake').length) {
                    element.after('<div class="bd-affix-fake"></div>');
                }
    
                $('body').trigger($.Event('affix-init.theme.affix'), [element]);
    
                element.affix({
                    'offset': offset
                });
    
                element.affix('checkPosition');
            });
        };
    
        $(function ($) {
            var affixTimeout;
    
            $(window).on('resize', function () {
                clearTimeout(affixTimeout);
                affixTimeout = setTimeout(function () {
                    window.initAffix('[data-affix]');
                }, 100);
            });
    
            window.initAffix('[data-affix]');
        });
    })(jQuery);
    })(window._$, window._$);
    (function (jQuery, $) {
    (function($){
        'use strict';
        /*jshint -W004 */
        /**
         * Copyright 2012, Digital Fusion
         * Licensed under the MIT license.
         * http://teamdf.com/jquery-plugins/license/
         *
         * @author Sam Sehnert
         * @desc A small plugin that checks whether elements are within
         *       the user visible viewport of a web browser.
         *       only accounts for vertical position, not horizontal.
         */
        var $w = $(window);
        $.fn.visible = function(partial,hidden,direction){
    
            if (this.length < 1)
                return;
    
            var $t        = this.length > 1 ? this.eq(0) : this,
                t         = $t.get(0),
                vpWidth   = $w.width(),
                vpHeight  = $w.height(),
                direction = (direction) ? direction : 'both',
                clientSize = hidden === true ? t.offsetWidth * t.offsetHeight : true;
    
            if (typeof t.getBoundingClientRect === 'function'){
    
                // Use this native browser method, if available.
                var rec = t.getBoundingClientRect(),
                    tViz = rec.top    >= 0 && rec.top    <  vpHeight,
                    bViz = rec.bottom >  0 && rec.bottom <= vpHeight,
                    lViz = rec.left   >= 0 && rec.left   <  vpWidth,
                    rViz = rec.right  >  0 && rec.right  <= vpWidth,
                    vVisible   = partial ? tViz || bViz : tViz && bViz,
                    hVisible   = partial ? lViz || rViz : lViz && rViz;
    
                if(direction === 'both')
                    return clientSize && vVisible && hVisible;
                else if(direction === 'vertical')
                    return clientSize && vVisible;
                else if(direction === 'horizontal')
                    return clientSize && hVisible;
            } else {
    
                var viewTop         = $w.scrollTop(),
                    viewBottom      = viewTop + vpHeight,
                    viewLeft        = $w.scrollLeft(),
                    viewRight       = viewLeft + vpWidth,
                    offset          = $t.offset(),
                    _top            = offset.top,
                    _bottom         = _top + $t.height(),
                    _left           = offset.left,
                    _right          = _left + $t.width(),
                    compareTop      = partial === true ? _bottom : _top,
                    compareBottom   = partial === true ? _top : _bottom,
                    compareLeft     = partial === true ? _right : _left,
                    compareRight    = partial === true ? _left : _right;
    
                if(direction === 'both')
                    return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop)) && ((compareRight <= viewRight) && (compareLeft >= viewLeft));
                else if(direction === 'vertical')
                    return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop));
                else if(direction === 'horizontal')
                    return !!clientSize && ((compareRight <= viewRight) && (compareLeft >= viewLeft));
            }
        };
    
        $(onLoad);
        $(window).on('scroll', animateOnScroll);
    
        function onLoad() {
            var hoverEffects = $('.animated[data-animation-event="hover"]');
            if (hoverEffects.length) {
                hoverEffects.each(function () {
                    var effect = $(this);
                    effect.on('mouseover', animateOnHover(effect));
                });
            }
    
            subscribeOnSlideEvents('slideout');
            subscribeOnSlideEvents('slidein');
    
            var slideInEffects = $('.animated[data-animation-event="slidein"]');
            if (slideInEffects.length) {
                var carousels = getCarousels(slideInEffects);
    
                if (carousels.length) {
                    carousels.forEach(function (_class) {
                        var _carousel = $('.' + _class.trim().replace(/\s{2,}/g, ' ').replace(/\s/g, '.'));
                        _carousel.trigger('slid.bs.carousel');
                    });
                }
            }
    
            var onLoadEffects = $('.animated[data-animation-event="onload"]');
            if (onLoadEffects.length) {
                onLoadEffects.each(function () {
                    applyAnimation($(this));
                });
            }
            var onLoadIntervalEffects = $('.animated[data-animation-event="onloadinterval"]');
            if (onLoadIntervalEffects.length) {
                onLoadIntervalEffects.each(function () {
                    var effect = $(this);
                    if (effect.visible(true)) {
                        var animationClass = effect.data('animation-name');
                        if (animationClass) {
                            effect.addClass(animationClass);
                        }
                    }
    
                    var duration = isNaN(parseFloat(effect.attr('data-animation-duration'))) ? 0 : parseFloat(effect.attr('data-animation-duration'));
                    var delay = isNaN(parseFloat(effect.attr('data-animation-delay'))) ? 0 : parseFloat(effect.attr('data-animation-delay'));
                    setInterval(function () {
                        effect.removeClass(animationClass);
                        setTimeout(function (){
                            effect.addClass(animationClass);
                        }, 50);
                    }, duration + delay);
                });
            }
    
        }
        function applyAnimation(effect) {
            if (effect.visible(true)) {
                var animationClass = effect.data('animation-name');
                if (animationClass) {
                    effect.addClass(animationClass);
                }
    
                if (effect.attr('data-animation-infinited') === 'true') {
                    effect.addClass('infinite');
                }
            }
        }
    
        function animateOnScroll() {
            var scrollEffects = $('.animated[data-animation-event="scroll"]');
    
            if (scrollEffects) {
                scrollEffects.each(function () {
                    applyAnimation($(this));
                });
            }
            var scrollLoopEffects = $('.animated[data-animation-event="scrollloop"]');
            if (scrollLoopEffects) {
                scrollLoopEffects.each(function () {
                    var effect = $(this);
                    if (effect.visible(false)) {
                        effect.removeClass(effect.data('animation-name'));
                    }
                    applyAnimation(effect);
                });
            }
        }
    
        function animateOnHover(dom) {
            return (function() {
                var animationClass = dom.attr('data-animation-name');
                if (animationClass && !dom.is('.' + animationClass)) {
                    if (dom.attr('data-animation-infinited') === 'false') {
                        var duration = dom.attr('data-animation-duration');
                        setTimeout(function () {
                            dom.removeClass(animationClass);
                        }, isNaN(parseFloat(duration)) ? 1000 : parseFloat(duration));
                    } else {
                        dom.addClass('infinite');
                    }
                    dom.addClass(animationClass);
                }
            });
        }
    
        function subscribeOnSlideEvents(eventName) {
            var slideEffects = $('.animated[data-animation-event="' + eventName + '"]');
            var carouselEvent = eventName === 'slideout' ? 'slide' : 'slid';
            if (slideEffects.length) {
                var carousels = getCarousels(slideEffects);
    
                if (carousels.length) {
                    carousels.forEach(function (_class) {
                        var _carousel = $('.' + _class.trim().replace(/\s{2,}/g, ' ').replace(/\s/g, '.'));
                        _carousel.on(carouselEvent + '.bs.carousel', eventName === 'slidein' ? animateOnSlideIn(_carousel) : animateOnSlideOut(_carousel));
                        var slidinTargets = _carousel.find('.animated[data-animation-event="' + eventName + '"]');
                        slidinTargets.each(function() {
                            var target = $(this);
                            if (target.attr('data-animation-display') && target.attr('data-animation-display') === 'none') {
                                target.css('display', 'none');
                            }
                        });
                        _carousel.on('slide.bs.carousel', function (event) {
                            var target = $(event.relatedTarget);
                            var effectsInSlider = target.find('.animated[data-animation-event="' + eventName + '"]');
                            if (effectsInSlider.length) {
                                var maxDuration = eventName === 'slideout' ? getMaxDuration(effectsInSlider) : 0;
                                effectsInSlider.each(function () {
                                    var effect = $(this);
                                    if (needToHide(effect)) {
                                        if (eventName === 'slideout') {
                                            setTimeout(function () {
                                                effect.css('display', '');
                                            }, maxDuration);
                                        }
                                        if (eventName === 'slidein') {
                                            effect.css('display', 'none');
                                        }
                                    }
                                });
                            }
                        });
                    });
                }
            }
        }
    
    
    
        function animateOnSlideOut(carousel) {
            return (function() {
                var moveSlide = false;
                return function (event) {
                    var effects = getActiveSlideEffects(carousel, 'slideout');
                    if (effects.length) {
                        if (!moveSlide) {
                            event.isDefaultPrevented = function () {
                                return true;
                            };
    
                            animateFunc(carousel, 'slideout');
    
                            var eventDirection = event.direction === 'left' ? 'next' : 'prev';
                            var maxDuration = getMaxDuration(effects);
                            setTimeout(function () {
                                moveSlide = true;
                                carousel.carousel(eventDirection);
                            }, maxDuration);
                        } else {
                            moveSlide = false;
                        }
                    }
                };
            })();
        }
    
        function animateOnSlideIn(carousel) {
            return (function () {
                animateFunc(carousel, 'slidein');
            });
        }
    
        function animateFunc(carousel, eventName){
            var effects = getActiveSlideEffects(carousel, eventName);
            var maxDuration = getMaxDuration(effects);
            effects.each(function () {
                var effect = $(this);
                var animationClass = effect.attr('data-animation-name');
                if (animationClass) {
                    if (effect.attr('data-animation-infinited') === 'false') {
                        if (!effect.is('.' + animationClass)) {
                            setTimeout(function () {
                                effect.removeClass(animationClass);
                            }, maxDuration + 100);
                        }
                    } else {
                        effect.addClass('infinite');
                    }
                    if (needToHide(effect)) {
                        if (eventName === 'slideout') {
                            setTimeout(function () {
                                effect.css('display', 'none');
                            }, maxDuration);
                        }
                        if (eventName === 'slidein') {
                            effect.css('display', '').find('.animated[data-animation-event="slideout"]').css('display','');
                        }
                    }
                    effect.addClass(animationClass);
                }
            });
        }
    
        function needToHide(effect) {
            var hide = true;
            var animationName = effect.attr('data-animation-name');
            var visibleAnimations = ['bounce', 'flash', 'pulse', 'rubber', 'band','snake','swing','tada','wobble', 'slideindown' , 'slideinleft' , 'slideinright', 'slideinup',
                'slideoutdown', 'slideoutleft', 'slideoutright', 'slideoutup'];
            hide = visibleAnimations.indexOf(animationName.toLowerCase()) === -1;
            return hide;
        }
    
        function getCarousels(effects) {
            var carousels = [];
            effects.each(function () {
                var effect = $(this);
                var carousel = $('.carousel').has(effect);
                if (carousel.length && carousels.indexOf(carousel.attr('class')) === -1) {
                    carousels.push(carousel.attr('class'));
                }
            });
            return carousels;
        }
    
        function getMaxDuration(effects) {
            var maxDuration = 0;
            effects.each(function () {
                var effect = $(this);
                var duration = isNaN(parseFloat(effect.attr('data-animation-duration'))) ? 0 : parseFloat(effect.attr('data-animation-duration')),
                    delay = isNaN(parseFloat(effect.attr('data-animation-delay'))) ? 0 : parseFloat(effect.attr('data-animation-delay'));
                var animationTime = duration + delay;
    
                maxDuration = maxDuration < animationTime ? animationTime : maxDuration;
            });
            return maxDuration;
        }
    
        function getActiveSlideEffects(carousel, event) {
            var activeSlide = carousel.find('.carousel-inner > .active');
            var effects = activeSlide.find('.animated[data-animation-event="' + event + '"]');
            return effects;
        }
    
    })(jQuery);
    })(window._$, window._$);
    
    window.ProductOverview_Class = "bd-productoverview";
    (function (jQuery, $) {
    jQuery(function($) {
        'use strict';
        function makeCloudZoom1() {
            if ($('.bd-productimage-6 a').length > 0) {
                $('.bd-productimage-6 a').attr('id', 'cloud-zoom-effect-1').addClass('cloud-zoom');
                $('.bd-productimage-6 a').attr('rel', "position:'right', adjustX:0, adjustY:0, tint:'#ffffff', softFocus:1, smoothMove:1, tintOpacity:0.5");
    
                if ('undefined' !== typeof window.ProductOverview_Class && 'undefined' !== typeof window.ImageThumbnails_Class) {
                    var parent = $('.bd-productimage-6')
                                .closest('[class*=" ' + window.ProductOverview_Class + '"], [class^="' + window.ProductOverview_Class + '"]'),
                        thumbnails = $('[class*=" ' + window.ImageThumbnails_Class + '"], [class^="' + window.ImageThumbnails_Class + '"]', parent);
    
                    if (thumbnails.length > 0) {
                        $('a', thumbnails).each(function () {
                            var thumbnail = $(this),
                                rel = thumbnail.attr('rel'),
                                relAttr = (rel === '' ? '' : rel + ',') + "useZoom: 'cloud-zoom-effect-1'";
                            thumbnail.attr('rel', relAttr).addClass('cloud-zoom-gallery');
                        });
                    }
                }
    
                var parent = $(".bd-productimage-6").parents().filter(function (key, value) {
                    return parseInt($(value).css('z-index'), 10).toString() !== 'NaN';
                });
    
                var minZIndex = 100;
                var zIndex = parent.length > 0 ? parseInt($(parent[0]).css('z-index'), 10) + 1 : 1;
                zIndex = zIndex < minZIndex ? minZIndex : zIndex;
    
                $('<style type="text/css"> .bd-productimage-6 .mousetrap { z-index: ' + zIndex + '!important;} </style>').appendTo("head");
    
                $('#cloud-zoom-effect-1, .cloud-zoom-gallery').CloudZoom();
            }
        }
        makeCloudZoom1();
        var resizeTimeout;
        $(window).resize(function(){
            clearTimeout(resizeTimeout);
            resizeTimeout = setTimeout(makeCloudZoom1, 25);
        });
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    window.ImageThumbnails_Class = 'bd-imagethumbnails';
    jQuery(function () {
        'use strict';
        /* 'active' must be always specified, otherwise slider would not be visible */
        jQuery('.bd-imagethumbnails-1.carousel.slide').each(function () {
            var slider = jQuery(this);
            if (!slider || !slider.length){
                return;
            }
    
            slider.data('resize', function () {
                jQuery('.carousel-inner', slider).equalImageHeight();
            });
    
            slider.data('resize')();
    
            jQuery('.left-button .bd-carousel-3', slider)
                .attr('href', '#')
                .click(function() {
                    slider.carousel('prev');
                    return false;
            });
    
            jQuery('.right-button .bd-carousel-3', slider)
                .attr('href', '#')
                .click(function() {
                    slider.carousel('next');
                    return false;
            });
        });
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    jQuery(function ($) {
        $('.review-rating .bd-rating').mousemove( function(e){
            var t = event.target || event.srcElement;
            if ('span' === t.tagName.toLowerCase()) {
                $(event.target).addClass('active');
                $(event.target).prevAll().addClass('active');
                $(event.target).nextAll().removeClass('active');
                $('#vote').val($(event.target).prevAll().length + 1);
            }
        });
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    jQuery(function($) {
        'use strict';
    
        var activeLayoutType = $.cookie('layoutType') || 'grid',
            activeLayoutTypeSelector = $.cookie('layoutSelector') || '.separated-item-5.grid';
    
        var layoutTypes = [];
    
            layoutTypes.push({
                name:'bd-griditemgrid',
                iconUrl: '',
                iconDataId: '3368',
                iconClassNames: 'bd-icon-64'
            });
            layoutTypes.push({
                name:'bd-griditemlist',
                iconUrl: '',
                iconDataId: '3383',
                iconClassNames: 'bd-icon-65'
            });
        if (typeof window.buildTypeSelector === 'function') {
            window.buildTypeSelector(layoutTypes, $('.bd-productsgridbar-28'));
        }
    
    
            $(document).on('click', '.bd-products i[data-layout-name="bd-griditemgrid"]', function (e) {
                if (activeLayoutType !== 'grid') {
                    var grid = $('.bd-grid-53');
                    grid.find('.separated-item-5.grid').css('display', 'block');
                    grid.find(activeLayoutTypeSelector).css('display', 'none');
                    activeLayoutType = 'grid';
                    activeLayoutTypeSelector = '.separated-item-5.grid';
    
                    $.cookie('layoutType', activeLayoutType, { path: '/' });
                    $.cookie('layoutSelector', activeLayoutTypeSelector, { path: '/' });
                }
                e.preventDefault();
                e.stopPropagation();
                return false;
            });
            $(document).on('click', '.bd-products i[data-layout-name="bd-griditemlist"]', function (e) {
                if (activeLayoutType !== 'list') {
                    var grid = $('.bd-grid-53');
                    grid.find('.separated-item-6.list').css('display', 'block');
                    grid.find(activeLayoutTypeSelector).css('display', 'none');
                    activeLayoutType = 'list';
                    activeLayoutTypeSelector = '.separated-item-6.list';
    
                    $.cookie('layoutType', activeLayoutType, { path: '/' });
                    $.cookie('layoutSelector', activeLayoutTypeSelector, { path: '/' });
                }
                e.preventDefault();
                e.stopPropagation();
                return false;
            });
    
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    buildTypeSelector = function(layouts, parent) {
        layouts.map(function(layout){
            var a = document.createElement('a'),
                i = document.createElement('i');
            jQuery(i).addClass(layout.iconClassNames).addClass('data-control-id-' + layout.iconDataId);
            jQuery(i).attr('data-layout-name', layout.name);
            jQuery(a).attr('href', '##').append(i);
            jQuery(a).each(function() { this.style.textDecoration = 'none'; });
            (parent || jQuery).find('.bd-typeselector-1').append(a);
        });
    }
    })(window._$, window._$);
    (function (jQuery, $) {
    jQuery(function ($) {
        'use strict';
    
        function getFloat(value){
            return parseFloat(value.replace('px', ''))  ;
        }
    
        $('.bd-productsslider-1').each(function () {
            var slider = $(this).find('.carousel.slide');
            slider.carousel({ interval: 3000, pause: "", wrap: false});
    
            var leftButton = $('.left-button', slider);
            var rightButton = $('.right-button', slider);
    
    
                var blockSelector = '.bd-block',
                    blockHeaderSelector = '.bd-container-53';
                if ($(blockSelector, this).length > 0 && $(blockHeaderSelector, this).length > 0)
                {
                    var block = $(blockSelector, this),
                        blockHeader = block.find(blockHeaderSelector),
                        blockHeaderTitle = blockHeader.children('h4');
    
                    blockHeader.css('min-height', '35px');
                    blockHeader.css('position', 'relative');
    
                    var navigationWrapper = $('<div class="bd-top-navigation-wrapper"></div>');
                    blockHeaderTitle.addClass('bd-top-navigation');
                    blockHeaderTitle.append(navigationWrapper);
    
                    leftButton.appendTo(navigationWrapper);
                    rightButton.appendTo(navigationWrapper);
                }
    
            leftButton.find('.bd-carousel-5').click(function() {
                slider.carousel('prev');
                return false;
            }).attr('href', '#');
    
            rightButton.find('.bd-carousel-5').click(function() {
                slider.carousel('next');
                return false;
            }).attr('href', '#');
    
    
                slider.carousel('pause');
        });
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    (function ($) {
        'use strict';
    
        var timeout;
        $(window).on('resize', function () {
            clearTimeout(timeout);
            timeout = setTimeout(stretchToBottom, 25);
        });
    
        $(stretchToBottom);
    
        function stretchToBottom() {
            var bh, mh = 0;
            var parent;
    
            var c = $('.bd-stretch-to-bottom');
            var target = c.find(c.data('controlSelector'))
                .add(c.find(c.data('controlSelector') + ' .bd-stretch-inner').first());
    
            if (target.length === 0) {
                return;
            }
    
            target.removeAttr('style');
            bh = $('body').height();
    
            $('body').children().each(function() {
                var $node = $(this);
                if ($node.css('position') !== 'absolute' && $node.css('position') !== 'fixed') {
                    mh += $node.outerHeight(true);
                    if ($.contains(this, target[0]) || this === target[0]) {
                        parent = $node;
                    }
                }
            });
    
            if (mh < bh && parent) {
                var r = bh - mh;
                target.css('min-height', (target.outerHeight(true) + r) + 'px');
            }
        }
    
    })(jQuery);
    })(window._$, window._$);
    (function (jQuery, $) {
    
    jQuery(function ($) {
        'use strict';
        // hide #back-top first
        $(".bd-backtotop-1").hide();
        // fade in #back-top
        $(function () {
            $(window).scroll(function () {
                if ($(this).scrollTop() > 100) {
                    $('.bd-backtotop-1').fadeIn().css('display', 'block');
                } else {
                    $('.bd-backtotop-1').fadeOut();
                }
            });
        });
    });
    
    })(window._$, window._$);
    (function (jQuery, $) {
    jQuery(function ($) {
        'use strict';
    
        $('.bd-smoothscroll-3 a[href^="#"]:not([data-toggle="collapse"])').on('click', function(e) {
            var animationTime = parseInt($('.bd-smoothscroll-3').data('animationTime'), 10) || 0;
            var target = this.hash;
            var link = $(this);
            e.preventDefault();
    
            $('body').data('scroll-animating', true);
            var targetElement = $(target || 'body');
    
            link.trigger($.Event('theme.smooth-scroll.before'));
    
            $('html, body').animate({
                scrollTop: targetElement.offset().top
            }, animationTime, function() {
                $('body').data('scroll-animating', false);
                window.location.hash = target;
                if (targetElement.is(':not(body)') && $('body').data('bs.scrollspy')) {
                    link.parent('li').siblings('li').children('a').removeClass('active');
                    link.addClass('active');
                }
                link.trigger($.Event('theme.smooth-scroll.after'));
            });
        });
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    
    
    
    jQuery(function () {
        'use strict';
        new window.ThemeLightbox('.bd-postcontent-4 img:not(.no-lightbox)').init();
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    
    
    
    jQuery(function () {
        'use strict';
        new window.ThemeLightbox('.bd-postcontent-3 img:not(.no-lightbox)').init();
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    
    
    
    jQuery(function () {
        'use strict';
        new window.ThemeLightbox('.bd-postcontent-1 img:not(.no-lightbox)').init();
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    
    
    
    jQuery(function () {
        'use strict';
        new window.ThemeLightbox('.bd-postcontent-5 img:not(.no-lightbox)').init();
    });
    })(window._$, window._$);
    (function (jQuery, $) {
    
    
    
    jQuery(function () {
        'use strict';
        new window.ThemeLightbox('.bd-postcontent-6 img:not(.no-lightbox)').init();
    });
    })(window._$, window._$);
    Na Forum pomagam bezpłatnie ad maiorem Joomla gloriam
    Mimo pomocy na forum nie dajesz rady? Potrzebujesz by ekspert "zrobił to" za Ciebie?
    Napisz do mnie na PW. Argentum et Aurum nie zawsze jest konieczne ;)

  8. #7
    Debiutant
    Dołączył
    22-10-2019
    Wpisy
    7
    Punkty
    2

    Domyślny

    Próbowałem to podmienić, niestety nic nie dało : /
    Mało tego, mogę całkowicie usunąć ten plik i też się nic nie zmienia... Coś odpowiedzialnego, za działanie tego komponentu musi być gdzie indziej : /
    Szału można dostać : )

    Dzięki za próby pomocy : )

  9. #8
    Wyga siristru awatar
    Dołączył
    28-05-2009
    Skąd
    Szczecin
    Wpisy
    3 242
    Punkty
    302

    Domyślny

    Czekaj, nie poddawaj się. Na 100% za ten efekt odpowiedzialny jest lightbox z szablonu.
    Wyczyść zawartość tego pliku. Zapisz. I potwierdź na forum. Wejdę i zobaczę.
    Na Forum pomagam bezpłatnie ad maiorem Joomla gloriam
    Mimo pomocy na forum nie dajesz rady? Potrzebujesz by ekspert "zrobił to" za Ciebie?
    Napisz do mnie na PW. Argentum et Aurum nie zawsze jest konieczne ;)

  10. #9
    Debiutant
    Dołączył
    22-10-2019
    Wpisy
    7
    Punkty
    2

    Domyślny

    Plik jest już całkowicie pusty. Poniżej jest jeszcze drugi podobny plik: script.ie też w rozszerzeniu .js
    Coś tam zmieniać? Czy zostawić jak było?

  11. #10
    Wyga siristru awatar
    Dołączył
    28-05-2009
    Skąd
    Szczecin
    Wpisy
    3 242
    Punkty
    302

    Domyślny

    Przecież działa teraz dobrze
    Wyczyść pamięć podręczną przeglądarki lub przeładuj stronę z CTRL + F5
    Na Forum pomagam bezpłatnie ad maiorem Joomla gloriam
    Mimo pomocy na forum nie dajesz rady? Potrzebujesz by ekspert "zrobił to" za Ciebie?
    Napisz do mnie na PW. Argentum et Aurum nie zawsze jest konieczne ;)

Strona 1 z 2 12 OstatniOstatni

Podobne tematy

  1. JoomLeague v3.0.23 - podwójne wyświetlanie i błąd z usuwaniem
    przez bialy13 na forum Rozszerzenia - problemy z obsługą, zarządzaniem
    Odpowiedzi: 7
    Ostatni post/autor: 24-01-2019, 13:49
  2. Podwójne wyświetlanie zdjęć po kliknięciu miniatury
    przez jablonix na forum Rozszerzenia - problemy z obsługą, zarządzaniem
    Odpowiedzi: 7
    Ostatni post/autor: 29-03-2016, 23:00
  3. podwójne wyświetlanie w internet explorer 8
    przez vxam na forum Rozszerzenia - problemy z obsługą, zarządzaniem
    Odpowiedzi: 29
    Ostatni post/autor: 26-06-2014, 09:42
  4. Jak wyłączyć podwójne wylogowanie?
    przez sLy_x na forum Administracja - ogólne
    Odpowiedzi: 0
    Ostatni post/autor: 23-03-2010, 16:29

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •