Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| steve-image-carosel-test-page3 [2023/02/09 06:36] – steve.wang | steve-image-carosel-test-page3 [2023/02/09 06:44] (current) – steve.wang | ||
|---|---|---|---|
| Line 685: | Line 685: | ||
| })) | })) | ||
| } | } | ||
| - | window.addEventListener(" | + | |
| - | console.log(' | + | if (deviceTyp!=' |
| - | if (window.innerWidth< | + | |
| - | // | + | console.log(' |
| - | console.log(' | + | if (window.innerWidth< |
| - | | + | // |
| - | deviceOrientation=' | + | console.log(' |
| - | higs.sequenceActions(' | + | |
| - | setTimeout(()=> | + | higs.sequenceActions(' |
| - | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+' | + | setTimeout(()=>{ |
| - | },200) | + | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+'px' |
| + | },300) | ||
| + | } | ||
| + | // | ||
| + | else{ | ||
| + | | ||
| + | console.log(' | ||
| + | | ||
| + | higs.sequenceActions(' | ||
| + | | ||
| + | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+' | ||
| + | },200) | ||
| + | // | ||
| } | } | ||
| - | else if (deviceOrientation==' | + | |
| - | deviceOrientation=' | + | } |
| - | higs.sequenceActions(' | + | |
| - | setTimeout(()=> | + | |
| - | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+' | + | |
| - | | + | |
| - | } | + | |
| - | // | + | |
| - | } | + | |
| - | else{ | + | |
| - | // | + | |
| - | console.log(' | + | |
| - | if (deviceType!=' | + | |
| - | deviceOrientation=' | + | |
| - | higs.sequenceActions(' | + | |
| - | | + | |
| - | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+' | + | |
| - | },200) | + | |
| - | } | + | |
| - | else if (deviceOrientation == ' | + | |
| - | deviceOrientation=' | + | |
| - | higs.sequenceActions(' | + | |
| - | | + | |
| - | higs.carosel.style.height=higs.centeredImg.getBoundingClientRect().height+' | + | |
| - | },200) | + | |
| - | } | + | |
| - | // | + | |
| - | } | + | |
| - | }) | + | |
| /* | /* | ||