‘); $(‘.tpu-fancybox-wrap’).css(‘maxWidth’, maxWidth);*/ instance.$refs.stage.on(‘transitionend’, function() { updateButtonPos(instance); }); }, onUpdate: updateButtonPos, afterShow: function(instance, slide) { updateButtonPos(instance); instance.$refs.inner.find(‘.fancybox-tpu-nav’).show(); }, beforeClose: function(instance, slide) { instance.$refs.inner.find(‘.fancybox-tpu-nav’).hide(); }, afterClose: function(instance, slide) { $(‘.tpu-fancybox-wrap’).contents().unwrap(); $(‘body’).removeClass(‘tpu-fancybox-body-wrap’) }, baseTpl: ‘
‘ + ‘‘ + ‘‘ + ‘‘ + ‘
‘ + ” + ” + ‘
‘ + ‘
‘, }); }); } loadjs.ready([‘jquery’, ‘fancybox’, ‘swiper’], function() { attachLightbox(‘a[data-fancybox]’); if ($(window).width()<600) { $(‘.imgcontainer’).each(function() { var $this=$(this); if (($this.find(‘a’).length==1) || ($this.find(‘a’).length>7)) return; $this.addClass(‘swiper-container’); $this.find(‘a’).addClass(‘swiper-slide’).css(‘width’, ‘auto’).wrapAll(”); $this.find(‘.swiper-wrapper’).after(”); new Swiper ($this.eq(0), { slidesPerView: ‘auto’, slidesPerGroup: 1, spaceBetween: 15, pagination: { el: ‘.swiper-pagination’, clickable: true } }); }); } $(‘.newspost’).on(‘click’, ‘.spoiler > .button, .spoiler > a’, function(e) { e.preventDefault(); $(this).next(‘div’).toggle(); }); $(‘.newspost’).on(‘click’, ‘.ispoiler’, function(e) { e.preventDefault(); $(this).find(‘div’).css(‘filter’, ”); $(this).removeClass(‘ispoiler’); }); $(‘.contnt’).on(‘click’, ‘.newspoll_btn’, function() { popup.Show(‘TechPowerUp Quick Poll’,’Loading…’); $.get(‘/news-poll/options?id=’+$(this).data(‘id’), function(data) { $(‘#popup_content’).html(data); }); }); }); ]]>
Friday, December 27th 2024
For more information, and to participate, visit this page.