Sha256: eee8a2470843b158f514e3eb426b6a460411522290ae7cceddd135341ff73288

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

// dirty: клик по фрейму, у которого есть ссылка, совершит переход на указанную страницу
var handle_swiper_frames_clicks = function () {
    $('.swiper-slide').each(function () {
        var $this = $(this);
        var frame_link_url = $this.data('link-url');
        //console.log('>> ' + $this.data('link-url'));
        if (frame_link_url != '') {
            $this.css('cursor','pointer');
            $this.on('click', function () {
                window.location.href = frame_link_url;
            })
        }
        //if ($this.data('link-url'))
    });
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_swiper-0.1.0.1 app/assets/javascripts/c80_swiper/handle_swiper_frames_clicks.js