Ameya Yokocho: Tokyo's open-air street market


‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘travel-play/2018/02/08/ameya-yokocho-tokyo-market.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Tokyo’s historic Ameya Yokocho market is crammed full with more than 500 shops selling everything from food to sneakers. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180208100251-tokyo-market-large-169.jpg”,”title”:”Ameya Yokocho: Tokyo’s open-air street market”,”videoCMSUrl”:”/video/data/3.0/video/travel-play/2018/02/08/ameya-yokocho-tokyo-market.cnn/index.xml”,”videoId”:”travel-play/2018/02/08/ameya-yokocho-tokyo-market.cnn”,”videoUrl”:”/videos/travel-play/2018/02/08/ameya-yokocho-tokyo-market.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”Take a step inside Honmura-an Ogikubo to find out what sets it apart from other Tokyo soba restaurants. Video by Black Buddha”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180126170415-tokyo-soba-restaurant-honmura-an-ogikubo-00011418-large-169.jpg”,”title”:”Is this Tokyo’s best soba restaurant? “,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2018/01/26/tokyo-soba-restaurant-honmura-an-ogikubo.cnn/index.xml”,”videoId”:”foodanddrink/2018/01/26/tokyo-soba-restaurant-honmura-an-ogikubo.cnn”,”videoUrl”:”/videos/foodanddrink/2018/01/26/tokyo-soba-restaurant-honmura-an-ogikubo.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”Beyond Hong Kong’s skyscrapers lies another world — one of green mountains, country parks and tiny fishing villages. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160720162416-hk-beauty-dragons-back-04-large-169.jpg”,”title”:”Hong Kong’s best hikes”,”videoCMSUrl”:”/video/data/3.0/video/travel-play/2018/02/03/hong-kong-best-hikes.cnn/index.xml”,”videoId”:”travel-play/2018/02/03/hong-kong-best-hikes.cnn”,”videoUrl”:”/videos/travel-play/2018/02/03/hong-kong-best-hikes.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”A 1.5-minute look at some of the best places to eat, drink, relax, shop and work out in Hong Kong. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180119150240-hk-gentlemen-tease-large-169.jpg”,”title”:”Essentials for the Hong Kong gentleman”,”videoCMSUrl”:”/video/data/3.0/video/travel/2018/01/19/hong-kong-men.cnn/index.xml”,”videoId”:”travel/2018/01/19/hong-kong-men.cnn”,”videoUrl”:”/videos/travel/2018/01/19/hong-kong-men.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”A peek inside experimental eyewear shop Gentle Monster’s wild flagship store in Nonhyeon, Seoul. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171122080446-gentle-monster-eyewear-seoul-00000806-large-169.jpg”,”title”:”Is this the world’s coolest eyewear shop? “,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/11/22/gentle-monster-eyewear-seoul.cnn/index.xml”,”videoId”:”travel/2017/11/22/gentle-monster-eyewear-seoul.cnn”,”videoUrl”:”/videos/travel/2017/11/22/gentle-monster-eyewear-seoul.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”Open for more than eight decades, old school Bangkok cafe On Lok Yun — located at 72 Charoen Krung Road — is a local institution. Video by Black Buddha”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171108101831-bangkok-breakfast-on-lok-yun-00001513-large-169.jpg”,”title”:”Bangkok’s classic breakfast experience”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/11/06/bangkok-breakfast-on-lok-yun.cnn/index.xml”,”videoId”:”travel/2017/11/06/bangkok-breakfast-on-lok-yun.cnn”,”videoUrl”:”/videos/travel/2017/11/06/bangkok-breakfast-on-lok-yun.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”The epitome of Thai craftsmanship and architecture, Bangkok’s Grand Palace is one of the city’s most popular tourist attractions.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171220095300-bangkok-grand-palace-00010422-large-169.jpg”,”title”:”Inside Bangkok’s Grand Palace”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/12/20/bangkok-grand-palace.cnn/index.xml”,”videoId”:”travel/2017/12/20/bangkok-grand-palace.cnn”,”videoUrl”:”/videos/travel/2017/12/20/bangkok-grand-palace.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”Get a quick taste of Taiwan’s capital as we tour five of Taipei’s hottest restaurants. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180103093114-taipei-food-guide-00001813-large-169.jpg”,”title”:”A foodie’s guide to Taipei”,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2018/01/02/taipei-food-guide.cnn/index.xml”,”videoId”:”foodanddrink/2018/01/02/taipei-food-guide.cnn”,”videoUrl”:”/videos/foodanddrink/2018/01/02/taipei-food-guide.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”Located in Taipei’s Da’an District, Mume focuses on local ingredients — and the results are incredible. Video by Black Buddha”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171211123716-taipei-restaurant-mume-00002502-large-169.jpg”,”title”:”Mume: Casual fine dining in the heart of Taipei”,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2017/12/11/taipei-restaurant-mume.cnn/index.xml”,”videoId”:”foodanddrink/2017/12/11/taipei-restaurant-mume.cnn”,”videoUrl”:”/videos/foodanddrink/2017/12/11/taipei-restaurant-mume.cnn/video/playlists/black-buddha-travel/”},{“descriptionPlainText”:”World’s greatest city? Hong Kong is definitely a contender. Here’s a quick look at some of its top sights and sounds. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171002102631-best-of-hong-kong-00000613-large-169.jpg”,”title”:”Fall in love with Hong Kong in 2 minutes”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/10/02/best-of-hong-kong.cnn/index.xml”,”videoId”:”travel/2017/10/02/best-of-hong-kong.cnn”,”videoUrl”:”/videos/travel/2017/10/02/best-of-hong-kong.cnn/video/playlists/black-buddha-travel/”}],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:”travel-play/2018/02/08/ameya-yokocho-tokyo-market.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-4t2tea’,videoDescriptionDivId: ‘js-video_description-4t2tea’,videoDurationDivId: ‘js-video_duration-4t2tea’,videoTitleDivId: ‘js-leaf-video_headline-4t2tea’,videoSourceDivId: ‘js-video_sourceName-4t2tea’});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