Episode 4.1: Supercharged is back!

0
10


‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2018/01/03/supercharged-hong-kong-new-season-spc.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_specialreports_formulaesupercharged_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Welcome to a new series of Supercharged and a new Formula E season, getting under way in Hong Kong’s spectacular harbour.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180103161621-formula-e-hong-kong-large-169.jpg”,”title”:”Supercharged: New season, spectacular views”,”videoCMSUrl”:”/videos/sports/2018/01/03/supercharged-hong-kong-new-season-spc.cnn”,”videoId”:”sports/2018/01/03/supercharged-hong-kong-new-season-spc.cnn”,”videoUrl”:”/videos/sports/2018/01/03/supercharged-hong-kong-new-season-spc.cnn”},{“descriptionPlainText”:”A fitness app’s heatmap is taking some heat because it could pose risks for security forces around the world by revealing the location of where they are exercising.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180129160553-strava-diego-garcia-inset-large-169.jpg”,”title”:”Fitness app reveals troops info”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/29/strava-fitness-tracking-app-security-oversight-ejk-lon-orig.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/29/strava-fitness-tracking-app-security-oversight-ejk-lon-orig.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/29/strava-fitness-tracking-app-security-oversight-ejk-lon-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Here are some of the best, most star-studded ads to look for while watching the Super Bowl — from M&M Danny DeVito to a motorcycle riding Keanu Reeves.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180129091241-01-super-bowl-lii-walk-up-large-169.jpg”,”title”:”Watch the 2018 Super Bowl commercials”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/29/super-bowl-commercials-2018.cnnmoney/index.xml”,”videoId”:”cnnmoney/2018/01/29/super-bowl-commercials-2018.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2018/01/29/super-bowl-commercials-2018.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Late-night TV hosts Stephen Colbert, Jimmy Kimmel and Trevor Noah react to President Donald Trump’s State of the Union address.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180131054732-colbert-reax-sotu-large-169.jpg”,”title”:”Late night clowns Trump’s speech”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/31/late-night-sotu-reaction-orig-wmj.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/31/late-night-sotu-reaction-orig-wmj.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/31/late-night-sotu-reaction-orig-wmj.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Late-night TV hosts Jimmy Fallon, Stephen Colbert, Seth Meyers and Jimmy Kimmel previewed President Donald Trump’s upcoming State of the Union address.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180130041232-late-night-fallon-colbert-kimmel-meyers-trump-sotu-preview-orig-cws-00002101-large-169.jpg”,”title”:”Meyers: Blame SOTU ticket typo on DeVos”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/30/late-night-fallon-colbert-kimmel-meyers-trump-sotu-preview-orig-cws.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/30/late-night-fallon-colbert-kimmel-meyers-trump-sotu-preview-orig-cws.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/30/late-night-fallon-colbert-kimmel-meyers-trump-sotu-preview-orig-cws.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Will Ferrell returned to “Saturday Night Live” and brought back his impression of former President George W. Bush.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180128071432-will-ferrell-snl-large-169.jpg”,”title”:”Ferrell returns to ‘SNL’ as Bush, mocks Trump”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/28/will-ferrell-returns-snl-george-w-bush-skit-sot.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/28/will-ferrell-returns-snl-george-w-bush-skit-sot.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/28/will-ferrell-returns-snl-george-w-bush-skit-sot.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Hip-hop star Shawn “Jay-Z” Carter talks with CNN’s Van Jones about mental health, saying he was open to seeing a therapist and that the stigma attached to mental health issues was “ridiculous.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180127162148-van-jones-jay-z-wide-large-169.jpg”,”title”:”Jay-Z: Therapists should be in schools”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/27/jay-z-mental-health-therapy-sot-van-jones-show.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/27/jay-z-mental-health-therapy-sot-van-jones-show.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/27/jay-z-mental-health-therapy-sot-van-jones-show.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Elton John will retire from touring — but not before a three-year worldwide mega-tour. The legendary singer tells CNN’s Chloe Melas that he made the decision to spend more time with his family.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180125082949-cnnee-elton-john-large-169.jpg”,”title”:”Elton John: I don’t want to continue touring”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/25/elton-john-retiring-from-touring.cnnmoney/index.xml”,”videoId”:”cnnmoney/2018/01/25/elton-john-retiring-from-touring.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2018/01/25/elton-john-retiring-from-touring.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”NASA has successfully tested a new shape memory alloy that allows the outer portion of aircraft wings to fold in midair.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180124014822-nasa-alloy-3-large-169.jpg”,”title”:”NASA tests alloy to fold wings mid-flight”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/24/nasa-alloy-fold-wings-abc-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/24/nasa-alloy-fold-wings-abc-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/24/nasa-alloy-fold-wings-abc-orig-vstan.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Comedian Seth MacFarlane has joked about celebrities before allegations against them became public.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171030160032-seth-macfarlane-3-large-169.jpg”,”title”:”‘Family Guy’ joked about Kevin Spacey in 2005″,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/10/30/seth-macfarlane-spacey-orig-lc.cnn/index.xml”,”videoId”:”cnnmoney/2017/10/30/seth-macfarlane-spacey-orig-lc.cnn”,”videoUrl”:”/videos/cnnmoney/2017/10/30/seth-macfarlane-spacey-orig-lc.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Burger King took a stand on net neutrality with this new ad. The fast food chain charged higher prices for faster Whopper delivery. Customers were not amused.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170221112346-cnnmoney-burger-king-sign-large-169.jpg”,”title”:”Watch Burger King explain net neutrality”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/24/burger-king-net-neutrality-whopper.cnnmoney/index.xml”,”videoId”:”cnnmoney/2018/01/24/burger-king-net-neutrality-whopper.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2018/01/24/burger-king-net-neutrality-whopper.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Country music icon Reba McEntire is the first female to play Colonel Sanders in a commercial promoting KFC’s Smoky Mountain BBQ Chicken.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180126141354-kfc-reba-2-large-169.jpg”,”title”:”The next Colonel Sanders is … Reba?”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/27/first-female-colonel-sanders-reba-orig-tc.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/27/first-female-colonel-sanders-reba-orig-tc.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/27/first-female-colonel-sanders-reba-orig-tc.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Singer-songwriter Ed Sheeran announced on Instagram he is engaged to his longtime girlfriend Cherry Seaborn.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/140704103510-entt1-ed-sheeran-07042014-large-169.jpg”,”title”:”Pop star Ed Sheeran engaged”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/21/singer-ed-sheeran-engaged-nr.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/21/singer-ed-sheeran-engaged-nr.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/21/singer-ed-sheeran-engaged-nr.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:””Saturday Night Live” opened its episode by spoofing White House press secretary Sarah Sanders and White House Dr. Ronny Jackson delivering the results of Trump’s latest physical exam.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180121021721-snl-1202018-1-large-169.jpg”,”title”:”‘SNL’ mocks President Trump’s physical exam”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/21/snl-trump-health-report-jessica-chastain-anything-matter-orig-gs.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/21/snl-trump-health-report-jessica-chastain-anything-matter-orig-gs.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/21/snl-trump-health-report-jessica-chastain-anything-matter-orig-gs.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Kim Kardashian West and her husband Kanye West have welcomed a baby girl into their family.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180116115141-kim-kardashian-kanye-west-large-169.jpg”,”title”:”Kim and Kanye welcome third child”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/16/kim-kardashian-west-and-kanye-west-welcome-third-child.cnnmoney/index.xml”,”videoId”:”cnnmoney/2018/01/16/kim-kardashian-west-and-kanye-west-welcome-third-child.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2018/01/16/kim-kardashian-west-and-kanye-west-welcome-third-child.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”It takes 5 to 10 years to develop a new plane. To reduce that, Boeing is using high-speed modeling and virtual meetings to get its hundreds of offices and 20,000+ suppliers to design and collaborate in real time.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160920141503-boeing2-large-169.jpg”,”title”:”A faster way to make an airplane”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2016/09/20/boeing-airplane-design-cnnmoney.cnn/index.xml”,”videoId”:”cnnmoney/2016/09/20/boeing-airplane-design-cnnmoney.cnn”,”videoUrl”:”/videos/cnnmoney/2016/09/20/boeing-airplane-design-cnnmoney.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Bill Murray surprised the audience on NBC’s “Saturday Night Live,” debuting in the show’s opening sketch as former Trump White House chief strategist, Steve Bannon.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180114030422-bill-murray-steve-bannon-snl-large-169.jpg”,”title”:”Bill Murray debuts as Steve Bannon on ‘SNL'”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2018/01/14/snl-steve-bannon-bill-murray-michael-wolff-white-house-book-orig-gs.cnn/index.xml”,”videoId”:”cnnmoney/2018/01/14/snl-steve-bannon-bill-murray-michael-wolff-white-house-book-orig-gs.cnn”,”videoUrl”:”/videos/cnnmoney/2018/01/14/snl-steve-bannon-bill-murray-michael-wolff-white-house-book-orig-gs.cnn/video/playlists/stories-worth-watching/”}],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) {autoStartVideo = true;if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false;containerEl = jQuery(document.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl);} else {CNN.autoPlayVideoExist = true;}}}configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {videoCollection: this.videoCollection,autostart: false},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);thumbImageElem = jQuery(articleElem).find(‘.media__image’);videoId = articleElem.data().videoId;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(configObj.markupId);if (CNN.Utils.existsObject(playerInstance) &&typeof playerInstance.getVideoData === ‘function’ &&playerInstance.getVideoData().id !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {if (!videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem !== ‘undefined’ && thumbImageElem !== null) {thumbImageLargeSource = thumbImageElem.data() && thumbImageElem.data().srcLarge ? thumbImageElem.data().srcLarge : ‘none’;}overrides.thumb = thumbImageLargeSource ? thumbImageLargeSource : ‘none’;shouldStartVideo = true;}if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.cn__column.carousel__content__item’, onVideoCarouselItemClicked);}}if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘videoLoader’) {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers ? window.CNNVideoAPILoadCompleteHandlers : [];window.CNNVideoAPILoadCompleteHandlers.push(initialize);window.CNNVideoAPILoadCompleteHandlers.push(setInitialVideoEmbed);} else {initialize();}CNN.INJECTOR.executeFeature(‘videx’).done(function () {var initMeta = {id:”sports/2018/01/03/supercharged-hong-kong-new-season-spc.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function updateCurrentlyPlaying(videoId) {var videoCollectionId = ‘current_video_collection’,videocardContents = getCurrentVideoCardContents(videoId),carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),domain = CNN.Host.domain || (document.location.protocol + ‘//’ + document.location.hostname),owl,$owlFirstItem,$owlPrevItem,showDetailsSpanContent = ”,gigyaShareElement,showIndex,whatsappShareElement,$carouselContentItems = jQuery(‘.carousel__content__item’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof gigyaShareElement !== ‘undefined’ && CNN.Utils.existsObject(videocardContents)) {jQuery(gigyaShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(gigyaShareElement).attr(‘data-description’, videocardContents.descriptionPlainText || ”);jQuery(gigyaShareElement).attr(‘data-link’, domain + videocardContents.url || ”);jQuery(gigyaShareElement).attr(‘data-image-src’, (videocardContents.media && videocardContents.media.elementContents && videocardContents.media.elementContents.imageUrl) || ”);}whatsappShareElement = jQuery(‘div.share-bar-whatsapp-container’);if (typeof whatsappShareElement !== ‘undefined’) {jQuery(whatsappShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(whatsappShareElement).attr(‘data-storyurl’, domain + videocardContents.url || ”);}if (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.data(‘owl.carousel’) || {};showIndex = getCurrentVideoIndex(videoId);if (typeof owl.to === ‘function’) {owl.to(showIndex);}$owlPrevItem = CNN.Utils.exists(owl.$element) ? owl.$element.find(‘.cd.cd–active’) : $carouselContentItems.find(‘.cd.cd–active’);$owlPrevItem.removeClass(‘cd–active’);$owlPrevItem.find(‘.media__over-text’).remove();$owlPrevItem.find(‘.media__icon’).show();$owlFirstItem = CNN.Utils.exists(owl._items) ? jQuery(owl._items[showIndex]) : $carouselContentItems.eq(showIndex);$owlFirstItem.find(‘.cd’).addClass(‘cd–active’);$owlFirstItem.find(‘.media a:first-child’).append(‘

Now Playing

‘);if (Modernizr && !Modernizr.phone) {$owlFirstItem.find(‘.media__icon’).hide();}}CNN.Videx.Metadata.init({dateCreated: videocardContents.dateCreated,descriptionText: videocardContents.descriptionText,duration: videocardContents.duration,sourceLink: videocardContents.sourceLink,sourceName: videocardContents.sourceName,title: videocardContents.headlineText},{videoCollectionDivId: ‘cn-23stc2t’,videoDescriptionDivId: ‘js-video_description-23stc2t’,videoDurationDivId: ‘js-video_duration-23stc2t’,videoTitleDivId: ‘js-leaf-video_headline-23stc2t’,videoSourceDivId: ‘js-video_sourceName-23stc2t’});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = ‘‘ + videocardContents.showName + ‘ | ‘;} else {showDetailsSpanContent = videocardContents.showName + ‘ | ‘;}}fastdom.measure(function getShowInfo() {var $show = jQuery(‘.metadata__show’),$isShowDetailsSpanExists = $show.find(‘span’).hasClass(‘metadata–show__name’),$showName = jQuery(‘.metadata–show__name’);fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend(‘



Source link

LEAVE A REPLY