jeudi 31 janvier 2019

get instance of object with name in javascript

is it possible to get instance of a object with name of instance in javascript??? i am using a plugin in wordpress that it add many instance of a object and i need to access to this instance with string name of this instance. it add instance like this:

FWDEVPlayer.videoStartBehaviour = 'default';
document.addEventListener('DOMContentLoaded', function(event) {
    FWDEVPUtils.checkIfHasTransofrms();
    new FWDEVPlayer({
        instanceName: 'fwdevpPlayer0',
        initializeOnlyWhenVisible: 'no',
        openDownloadLinkOnMobile: 'no',
        preloaderBackgroundColor: 'transparent',
        preloaderFillColor: 'transparent',
        fillEntireVideoScreen: 'yes',
        useHEXColorsForSkin: 'no',
        stickyOnScroll: 'no',
        stickyOnScrollShowOpener: 'no',
        stickyOnScrollWidth: 700,
        stickyOnScrollHeight: 394,
        showDefaultControllerForVimeo: 'no',
        normalHEXButtonsColor: 'transparent',
        selectedHEXButtonsColor: 'transparent',
        parentId: 'fwdevpDiv0',
    })
})





Aucun commentaire:

Enregistrer un commentaire