Współdzielenie detektora między różnymi aparatami DR Mindray
$(function () {
var isPortrait = window.matchMedia("(max-aspect-ratio: 1/1)").matches;
var isPadPortrait = (isPortrait && window.innerWidth <= 1200 && window.innerWidth >= 640) || false;
var isPhonePortrait = (isPortrait && window.innerWidth <= 639) || false;
var isMobPortrait = (isPadPortrait || isPhonePortrait) || false;
if (!isMobPortrait) {
var scene = new ScrollMagic.Scene({
triggerHook: 0,
triggerElement: '#trigger',
duration: '100%',
offset: 0
})
var mySwiper = new Swiper('.swiper-container', {
direction: 'vertical',
pagination: {
el: '.yfshw_nav',
type: 'bullets',
clickable: true,
bulletClass: 'yfshw_nav_item',
bulletActiveClass: 'active',
currentClass: 'active',
renderBullet: function (index, className) {
switch (index) {
case 0: text = ''; break;
case 1: text = ''; break;
case 2: text = ''; break;
case 3: text = ''; break;
case 4: text = ''; break;
}
return '
' + text + '
';
},
},
on: {
progress: function (swiper, progress) {
scene.progress(progress);
},
},
})
var controller = new ScrollMagic.Controller();
scene
.setPin('.yfshw_container')
.on("progress", function (event) {
if (event.progress > 0 && event.progress < 0.2) {
mySwiper.slideTo(0)
} else if (event.progress > 0.2 && event.progress < 0.4) {
mySwiper.slideTo(1)
} else if (event.progress > 0.4 && event.progress < 0.6) {
mySwiper.slideTo(2)
} else if (event.progress > 0.5 && event.progress < 0.8) {
mySwiper.slideTo(3)
} else if (event.progress > 0.8) {
mySwiper.slideTo(4)
}
})
.addTo(controller)
}
})
Witamy na stronie Mindray Medical Poland
Strona zawiera treści dla profesjonalistów związanych z medycyną lub obrotem wyrobami medycznymi.
Czy jesteś taką osobą i chcesz się zapoznać z treścią strony?
{"enabled":true,"consentTitle":"Twoja prywatność jest dla nas ważna","message":"Ta treść jest udostępniana przez zewnętrznego dostawcę. Włączenie jej może zezwolić dostawcy na przetwarzanie Twoich danych osobowych i zapisywanie plików cookie.\r\n","acceptLabel":"Zezwól i kontynuuj","alwaysAcceptLabel":"Zawsze akceptuj i stosuj domyślne ustawienia dostawcy.","consentState":"undecided"}