intro.js
/**
     * Add disableinteraction layer and adjust the size and position of the layer
     *
     * @api private
     * @method _disableInteraction
     * @param {Object} targetElement the currently highlighted element
     */
Add disableinteraction layer and adjust the size and position of the layer
@api private
@method _disableInteraction
@param {Object} targetElement the currently highlighted element
Add disableinteraction layer and adjust the size and position of the layer @api private @method _disableInteraction @param { Object } targetElement the currently highlighted element
function _disableInteraction(targetElement) {
        var disableInteractionLayer = document.querySelector('.introjs-disableInteraction');
        if (disableInteractionLayer === null) {
            disableInteractionLayer = document.createElement('div');
            disableInteractionLayer.className = 'introjs-disableInteraction';
            this._rootElement.appendChild(disableInteractionLayer);
        }
        var elementPosition = _getOffset(targetElement);
        disableInteractionLayer.setAttribute('style', 'width: ' + elementPosition.width + 'px; ' +
                                                      'height:' + elementPosition.height + 'px; ' +
                                                      'top:'    + elementPosition.top + 'px;' +
                                                      'left: '  + elementPosition.left + 'px;');
    }
function _disableInteraction ( targetElement ) { var disableInteractionLayer = document . querySelector ( '.introjs-disableInteraction' ) ; if ( disableInteractionLayer === null ) { disableInteractionLayer = document . createElement ( 'div' ) ; disableInteractionLayer . className = 'introjs-disableInteraction' ; this . _rootElement . appendChild ( disableInteractionLayer ) ; } var elementPosition = _getOffset ( targetElement ) ; disableInteractionLayer . setAttribute ( 'style' , 'width: ' + elementPosition . width + 'px; ' + 'height:' + elementPosition . height + 'px; ' + 'top:' + elementPosition . top + 'px;' + 'left: ' + elementPosition . left + 'px;' ) ; }
Add disableinteraction layer and adjust the size and position of the layer
 @api private
 @method _disableInteraction
 @param {Object} targetElement the currently highlighted element
Add disableinteraction layer and adjust the size and position of the layer @api private @method _disableInteraction @param { Object } targetElement the currently highlighted element
// set new position for the 'disableInteraction' layer