‘)$vidEndSlate.removeClass(‘video__finish-slate–inactive’).addClass(‘video__finish-slate–active’)}}CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === accurate) ? accurate : falsevar configObj = thumb: ‘none’,online video: ‘us/2020/07/02/4th-of-july-basic safety-tips-newday-vpx.cnn’,width: ‘100%’,top: ‘100%’,area: ‘domestic’,profile: ‘expansion’,community: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-short article-pagetop’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: “mini”:”width”:220,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-compact-169.jpg”,”top”:124,”xsmall”:”width”:307,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-medium-moreover-169.jpg”,”top”:173,”compact”:”width”:460,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-substantial-169.jpg”,”top”:259,”medium”:”width”:780,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-exlarge-169.jpg”,”top”:438,”substantial”:”width”:1100,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-super-169.jpg”,”top”:619,”full16x9″:”width”:1600,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-complete-169.jpg”,”top”:900,”mini1x1″:”width”:120,”form”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200626184431-09-july-four-weekend-protected-compact-11.jpg”,”top”:120,autoStartVideo = bogus,isVideoReplayClicked = bogus,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = bogus,mediaMetadataCallbacks,mobilePinnedView = null,moveToNextTimeout,mutePlayerEnabled = bogus,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = bogus,videoPinner,videoEndSlateImplif (CNN.autoPlayVideoExist === bogus) autoStartVideo = trueif (autoStartVideo === accurate) if (turnOnFlashMessaging === accurate) autoStartVideo = falsecontainerEl = jQuery(doc.getElementById(configObj.markupId))CNN.VideoPlayer.showFlashSlate(containerEl) else CNN.autoPlayVideoExist = accurateconfigObj.autostart = CNN.Features.enableAutoplayBlock ? bogus : autoStartVideoCNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled)CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId)videoEndSlateImpl = new CNN.VideoEndSlate(‘large-media_0’)perform findNextVideo(currentVideoId) var i,vidObjif (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.length > ) for (i = i ) videoEndSlateImpl.showEndSlateForContainer()if (mobilePinnedView) mobilePinnedView.disable()callbackObj = {onPlayerReady: perform (containerId) {var playerInstance,containerClassId = ‘#’ + containerIdCNN.VideoPlayer.handleInitialExpandableVideoState(containerId)CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible())if (CNN.Features.enableMobileWebFloatingPlayer &&Modernizr &&(Modernizr.mobile phone || Modernizr.cellular || Modernizr.pill) &&CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’ &&jQuery(containerClassId).mom and dad(‘.js-pg-rail-tall__head’).length > &&CNN.contentModel.pageType === ‘article’) if (Modernizr && !Modernizr.mobile phone && !Modernizr.cellular && !Modernizr.pill) if (jQuery(containerClassId).mom and dad(‘.js-pg-rail-tall__head’).length) videoPinner = new CNN.VideoPinner(containerClassId)videoPinner.init() else CNN.VideoPlayer.hideThumbnail(containerId)},onContentEntryLoad: perform(containerId, playerId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId),onContentPause: perform (containerId, playerId, videoId, paused) if (mobilePinnedView) CNN.VideoPlayer.handleMobilePinnedPlayerStates(containerId, paused),onContentMetadata: perform (containerId, playerId, metadata, contentId, length, width, top) var endSlateLen = jQuery(doc.getElementById(containerId)).dad or mum().discover(‘.js-online video__finish-slate’).eq().lengthCNN.VideoSourceUtils.updateSource(containerId, metadata)if (endSlateLen > ) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata),onAdPlay: perform (containerId, cvpId, token, method, id, length, blockId, adType) /* Dismissing the pinnedPlayer if an additional online video players performs an Advert */CNN.VideoPlayer.dismissMobilePinnedPlayer(containerId)clearTimeout(moveToNextTimeout)CNN.VideoPlayer.hideSpinner(containerId)if (Modernizr && !Modernizr.mobile phone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(accurate)videoPinner.animateDown(),onAdPause: perform (containerId, playerId, token, method, id, length, blockId, adType, instance, isAdPause) if (mobilePinnedView) CNN.VideoPlayer.handleMobilePinnedPlayerStates(containerId, isAdPause),onTrackingFullscreen: perform (containerId, PlayerId, dataObj) CNN.VideoPlayer.handleFullscreenChange(containerId, dataObj)if (mobilePinnedView &&typeof dataObj === ‘object’ &&FAVE.Utils.os === ‘iOS’ && !dataObj.fullscreen) jQuery(doc).scrollTop(mobilePinnedView.getScrollPosition())playerInstance.hideUI(),onContentPlay: perform (containerId, cvpId, party) var playerInstance,prevVideoIdif (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘restoreEpicAds’)clearTimeout(moveToNextTimeout)CNN.VideoPlayer.hideSpinner(containerId)if (Modernizr && !Modernizr.mobile phone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(accurate)videoPinner.animateDown(),onContentReplayRequest: perform (containerId, cvpId, contentId) {if (Modernizr && !Modernizr.mobile phone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(accurate)var $endSlate = jQuery(doc.getElementById(containerId)).dad or mum().discover(‘.js-online video__finish-slate’).eq()if ($endSlate.length > ) $endSlate.removeClass(‘video__finish-slate–active’).addClass(‘video__finish-slate–inactive’)},onContentBegin: perform (containerId, cvpId, contentId) if (mobilePinnedView) mobilePinnedView.permit()/* Dismissing the pinnedPlayer if an additional online video players performs a online video. */CNN.VideoPlayer.dismissMobilePinnedPlayer(containerId)CNN.VideoPlayer.mutePlayer(containerId)if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘removeEpicAds’)CNN.VideoPlayer.hideSpinner(containerId)clearTimeout(moveToNextTimeout)CNN.VideoSourceUtils.clearSource(containerId)jQuery(doc).triggerVideoContentStarted(),onContentComplete: perform (containerId, cvpId, contentId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’)navigateToNextVideo(contentId, containerId),onContentEnd: perform (containerId, cvpId, contentId) if (Modernizr && !Modernizr.mobile phone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(bogus),onCVPVisibilityChange: perform (containerId, cvpId, seen) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, seen)}if (typeof configObj.context !== ‘string’ || configObj.context.length ) configObj.adsection = window.ssidCNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === accurate) ? accurate : falseCNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer)})CNN.INJECTOR.scriptComplete(‘videodemanddust’)