How Thanksgiving came to be a holiday

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnnbusiness_business_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”What does the author of “Mary Had a Little Lamb” have to do with Thanksgiving? Here’s a timeline of how Thanksgiving became a holiday in the US.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171122182831-hale-lincoln-turkey-thanksgiving-origins-large-169.jpg”,”title”:”How Thanksgiving came to be a holiday “,”videoCMSUrl”:”/videos/us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.cnn”,”videoLeafUrl”:”/videos/us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.cnn”,”videoId”:”us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.cnn”,”videoUrl”:”/videos/us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.cnn”,”surrogateKey”:”video_D68037A6-81D4-E5E3-9562-E5FAC1613967″},{“descriptionPlainText”:”If you see rice as a mere side dish, you are missing out on some delicious meals. In the latest episode of “Around the World,” Great Big Story senior producer/resident foodie/excellent home cook Beryl Shereshewsky invites seven people in seven countries—from Mexico to Iran—to prepare rice-based dishes that are part of their nation’s culinary identity. After sampling Finland’s savory Karelian pie, Vietnam’s bánh tét lá cẩm rice cakes stuffed with salted duck egg and dried shrimp and all of the other delicious food featured, she is confident you’ll have a new appreciation for this simple grain.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200820095338-02-gbs-atw-rice-restricted-large-169.jpg”,”title”:”7 rice dishes from around the world”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/21/great-big-story-rice-dishes-around-the-world-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/21/great-big-story-rice-dishes-around-the-world-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/21/great-big-story-rice-dishes-around-the-world-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/21/great-big-story-rice-dishes-around-the-world-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_CABC7963-91E9-E7AD-4E0D-117CEE511D83″},{“descriptionPlainText”:”There’s no place that combines reverence and community in the sacred and secular to encompass worship quite like the Ganesha Temple in Queens, New York. It’s a Hindu temple—with a restaurant. The cultural touchstone for the Hindu community in New York has a full-service, A+ Indian restaurant tucked away through a side entrance, down a few staircases and hallways, and into the basement. The Temple Canteen is not hidden on purpose, according to Uma Mysorekar, the president of the Hindu Temple Society of North America. It was just kind of an afterthought that took on a life of its own.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818112102-01-gbs-hindu-god-restricted-large-169.jpg”,”title”:”How to eat like a Hindu God”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/21/great-big-story-how-to-eat-like-a-hindu-god-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/21/great-big-story-how-to-eat-like-a-hindu-god-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/21/great-big-story-how-to-eat-like-a-hindu-god-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/21/great-big-story-how-to-eat-like-a-hindu-god-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_8CE31D77-96DD-72F7-1A0A-117CA3134EDC”},{“descriptionPlainText”:”This round bread might look like a bagel. It’s even got the trademark hole in the middle. But this is not a bagel. It’s guang-bing, and it’s got a heroic past. This is the story of how a humble little doughy treat helped China win a war 500 years ago. And that hole? There’s a story there, too.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200819180502-02-gbs-chinese-bagel-restricted-large-169.jpg”,”title”:”How a 500-year-old Chinese ‘bagel’ helped win a war”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/20/great-big-story-chinese-bagel-guang-bing-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/20/great-big-story-chinese-bagel-guang-bing-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/20/great-big-story-chinese-bagel-guang-bing-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/20/great-big-story-chinese-bagel-guang-bing-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_725B2E84-F6B3-2280-E02C-0C1EC1C3DD4E”},{“descriptionPlainText”:”Hear that swish? That’s the Salam Stars crushing it on the court. The all-female varsity basketball team is made up of Muslim students from the Salam School, an Islamic school in Milwaukee. All the players wear hijabs and modest athletic wear. In an ideal world, that wouldn’t be a big deal, but they often face judgment based on their outfits and their religion. But these athletes ignore the haters. The Salam Stars are focused on the game. They play to win while making space for other girls to do the same.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818111302-02-gbs-girls-basketball-restricted-large-169.jpg”,”title”:”How this all-Muslim girls basketball team is crushing it on the court”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/20/great-big-story-salam-stars-girls-basketball-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/20/great-big-story-salam-stars-girls-basketball-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/20/great-big-story-salam-stars-girls-basketball-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/20/great-big-story-salam-stars-girls-basketball-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_E36DAF6D-1905-D842-D08B-0C213B6CF0B6″},{“descriptionPlainText”:”At the Aviation Career and Technical High School, students literally have to earn their wings. Everyday, students take classes in an airplane hangar and work on real aircrafts. The New York City public high school has been training students since the 1930s, and it certifies the most airplane mechanics in the country. Advanced students spend their days at JFK Airport working on their own 727s. From the classroom to the sky, this school is pretty fly.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818105402-02-gbs-aviation-high-school-restricted-large-169.jpg”,”title”:”Welcome to Aviation High School”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/19/great-big-story-aviation-high-school-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/19/great-big-story-aviation-high-school-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/19/great-big-story-aviation-high-school-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/19/great-big-story-aviation-high-school-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_8523F7C0-A839-3718-3F42-072D4A45E8BD”},{“descriptionPlainText”:”In the 1930s, brothers Adolf and Rudolph Dassler made the most kickass kicks throughout the land. Business began to take off once Jesse Owens won four gold medals at the 1936 Olympics while wearing Dassler sneakers. But with great success brought great competition. Soon, sibling rivalry split the brothers and their company apart, with each creating their own line of shoes. Today, Adidas and Puma continue to be leaders within the shoe industry, while brothers Adolf and Rudolph lie buried at opposite ends of a soccer field as their feud continues on into eternity.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818094425-02-gbs-puma-vs-adidas-restricted-large-169.jpg”,”title”:”The sibling rivalry behind Adidas versus Puma”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/18/great-big-story-adidas-puma-rivalry-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/18/great-big-story-adidas-puma-rivalry-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/18/great-big-story-adidas-puma-rivalry-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/18/great-big-story-adidas-puma-rivalry-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_009EB798-626C-440C-8349-0264E92A0ACD”},{“descriptionPlainText”:”We ricocheted all over Europe on a quest to grab a pint at the oldest pub in the world. Trying to pin down which pub deserved that title, however, proved to be a little trickier than expected. From Nottingham, England, to Athlone, Ireland, watering holes all over Europe claim to have been pulling pints long before anyone else. Will we find the answers we’re looking for? Will one pint reign supreme? Maybe, but one thing’s for sure, this has got to be the best excuse for a pub crawl there is. Cheers!”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807150039-01-gbs-oldest-pub-restricted-large-169.jpg”,”title”:”Searching for the oldest pub in the world”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/07/gbs-oldest-pub-in-the-world-great-big-story.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/07/gbs-oldest-pub-in-the-world-great-big-story.great-big-story”,”videoId”:”great-big-story/2020/08/07/gbs-oldest-pub-in-the-world-great-big-story.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/07/gbs-oldest-pub-in-the-world-great-big-story.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_E9044DE2-9629-2754-5006-CA3E8D909F6A”},{“descriptionPlainText”:”The bad news—you lost your wallet in Tokyo. The good news—chances are good you will get it back, along with all the cash tucked inside. In Japan, residents are diligent about making sure what’s lost is found and returned to its rightful owner. This is how the city’s stunningly efficient Lost & Found system works.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818105416-01-gbs-lost-and-found-restricted-large-169.jpg”,”title”:” How Tokyo’s massive lost & found works”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/19/great-big-story-tokyo-lost-and-found-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/19/great-big-story-tokyo-lost-and-found-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/19/great-big-story-tokyo-lost-and-found-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/19/great-big-story-tokyo-lost-and-found-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_3580B746-229A-6B74-5773-072584D4336C”},{“descriptionPlainText”:”Typically eat eggs, or a bowl of cereal for breakfast? There are so many other tasty options. In this episode of “Around the World,” Great Big Story senior producer Beryl Shereshewsky makes wake-up calls to seven people in seven countries to find out what they eat to start the day. Among the dishes featured: Vietnam’s súp lu’o’n, a spicy eel soup; mandazi, an airy deep-fried dough from Kenya; and a plate of scrumptious catfish and grits made to perfection in the United States.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807150213-great-big-story-breakfast-around-the-world-gbs-00094325-large-169.jpg”,”title”:”What breakfast is like around the world”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/07/great-big-story-breakfast-around-the-world-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/07/great-big-story-breakfast-around-the-world-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/07/great-big-story-breakfast-around-the-world-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/07/great-big-story-breakfast-around-the-world-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_97F5C91A-2E94-07CE-9648-C9EDDFAA88A5″},{“descriptionPlainText”:”When Mosha, an elephant, was two years old, she lost her leg in a landmine injury along the Thai-Burmese border. Luckily, an orthopedic surgeon was able to fit her with the first prosthetic leg ever designed for an elephant. As she has grown, she has needed to be fitted for new ones. But she’s never forgotten the doctor who changed her life.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807133001-01-gbs-elephant-restricted-large-169.jpg”,”title”:”When an elephant lost her leg, he invented a prosthesis for her”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/07/great-big-story-elephant-prosthetic-leg-hospital-doctor-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/07/great-big-story-elephant-prosthetic-leg-hospital-doctor-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/07/great-big-story-elephant-prosthetic-leg-hospital-doctor-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/07/great-big-story-elephant-prosthetic-leg-hospital-doctor-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_3F4FFA41-3D4B-C1D2-E801-CA12559E0C80″},{“descriptionPlainText”:”For the record, cat composer David Teie is not a cat. He is an adult human man. And although Teie is most certainly not a cat, he makes some excellent music for felines. Teie is a cellist for the National Symphony Orchestra and a composer who lives in Washington, D.C. Teie’s interest in composing for animals started with an interest in how humans hear music. Teie has released two volumes of music for cats that uses “feline-centric sounds” like bird noises and purring to interest kitties.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807132958-01-gbs-cat-composer-restricted-large-169.jpg”,”title”:”A cat composer’s mewsic to meow ears”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/07/great-big-story-cat-music-composer-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/07/great-big-story-cat-music-composer-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/07/great-big-story-cat-music-composer-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/07/great-big-story-cat-music-composer-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_CFAED963-6AC8-94C3-98FC-CA12728EC19C”},{“descriptionPlainText”:”Justin Schmidt is an entomologist who studies stinging insects. Through the course of his work, he estimates that he has been stung more than 1,000 times, all in the name of science. In fact, Schmidt has been stung so many times that he’s created a pain scale based on his research. Now that’s suffering for your work.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200806193926-great-big-story-stung-1000-times-for-science-gbs-00001816-large-169.jpg”,”title”:”I was stung 1,000 times for science”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/06/great-big-story-stung-1000-times-for-science-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/06/great-big-story-stung-1000-times-for-science-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/06/great-big-story-stung-1000-times-for-science-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/06/great-big-story-stung-1000-times-for-science-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_F91A61AE-23C3-5734-7375-C60A955F686E”},{“descriptionPlainText”:”In the 1660’s, German alchemist Hennig Brand thought he knew the secret to making solid gold: pee. So set was he on these golden ambitions, he dehydrated 1,500 gallons (gallons!) of human urine to make it happen. Though pee ultimately failed to produce gold, Brand didn’t have to flush all his hard work down the toilet. ​In a surprise twist, he discovered a glowing substance we now call phosphorus.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200803095411-02-gbs-phosphorus-restricted-large-169.jpg”,”title”:”Did you know that phosphorus was discovered from … urine?”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/03/great-big-story-hennig-brand-phosphorus-discovery-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/03/great-big-story-hennig-brand-phosphorus-discovery-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/03/great-big-story-hennig-brand-phosphorus-discovery-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/03/great-big-story-hennig-brand-phosphorus-discovery-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_5F057F1F-3B57-16B5-7E7C-B4A83446A88B”},{“descriptionPlainText”:”In many parts of India, baby boys are favored over girls, who—due to the dowry system—can be seen as a financial burden on families. But the people of Piplantri are fighting this prejudice. In Piplantri, villagers celebrate the birth of their girls by planting 111 trees for each infant. The ritual began after Shyam Sunder Paliwal lost his teenage daughter, Kiran, and planted a tree in her honor. Today, he is leading the charge to ensure the girls of Piplantri are protected from harm and educated so they can grow up to be independent and self-sufficient. The trees are now becoming a source of beauty, sustenance and growth for the girls and the village as a whole.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191029095505-02-gbs-girls-trees-restricted-large-169.jpg”,”title”:”This village in India plants 111 trees every time a girl is born”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/08/03/great-big-story-india-trees-girl-born-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/08/03/great-big-story-india-trees-girl-born-gbs.great-big-story”,”videoId”:”great-big-story/2020/08/03/great-big-story-india-trees-girl-born-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/08/03/great-big-story-india-trees-girl-born-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_023339F7-46AB-C1E8-6471-B4A55E0CD7B5″},{“descriptionPlainText”:”You’ve definitely seen James Hong’s face before. From “Blade Runner” and “Airplane!” to “The Big Bang Theory” and “Seinfeld,” Hong has racked up over 500 credits. That’s more than any actor living or dead. Born in Minnesota, Hong is of Chinese descent and started acting in Hollywood in the 1950s. He has spent his career combating clichés and fighting for more opportunities for Asians in television and film. At the age of 90, Hong is showing no signs of slowing down.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200728095432-02-gbs-james-hong-restricted-large-169.jpg”,”title”:”The actor with 500 credits and counting”,”videoCMSUrl”:”/video/data/3.0/video/great-big-story/2020/07/30/great-big-story-james-hong-actor-gbs.great-big-story/index.xml”,”videoLeafUrl”:”/videos/great-big-story/2020/07/30/great-big-story-james-hong-actor-gbs.great-big-story”,”videoId”:”great-big-story/2020/07/30/great-big-story-james-hong-actor-gbs.great-big-story”,”videoUrl”:”/videos/great-big-story/2020/07/30/great-big-story-james-hong-actor-gbs.great-big-story/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_088D176E-7F04-C348-32DE-A1BAF406F864″}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,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 = CNN.Features.enableAutoplayBlock ? false : 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 = {autostart: false,muteOverlayClicked: true,videoCollection: this.videoCollection},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:”us/2017/11/22/how-thanksgiving-became-a-holiday-orig-trnd-lab.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-z7jyze’,videoDescriptionDivId: ‘js-video_description-z7jyze’,videoDurationDivId: ‘js-video_duration-z7jyze’,videoTitleDivId: ‘js-leaf-video_headline-z7jyze’,videoSourceDivId: ‘js-video_sourceName-z7jyze’});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(‘

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow by Email
Pinterest
LinkedIn
Share