Monday, May 11, 2026
HomeiOS Developmentandroid - javascript will run solely in cell view

android – javascript will run solely in cell view

[ad_1]

I need to make this as cell javascript, i run this code however in macbook safari laptop computer view it is operating additionally

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.check(navigator.userAgent) ) {
    operate scrollFinished() {
        vid = doc.getElementsByClassName('my-video-scroll')
    
        //play video
        if (runningVideo < vid.size && runningVideo >= 0) {
            vidTop = vid[runningVideo].offsetTop
            window.scrollTo(0, vidTop - 0 - scrHeight * 0);
    
            vid[runningVideo].currentTime = 0;
            vid[runningVideo].play()
        }
    
        //present the at present enjoying video and the overall video to the console
        console.clear()
        console.log('operating: ' + (runningVideo + 1))
        console.log('complete: ' + vid.size)
    
        setTimeout(operate () {
            scrooling = false
        }, 500)
    }
}

I attempted deleting the webOS/iphone/ipad/ipod its operating as nicely

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments