CINXE.COM

Elinor Wonders Why - Elinor Ari's Wonderful Ideas

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="description" content=""> <title>Elinor Wonders Why - Elinor Ari&#039;s Wonderful Ideas</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,viewport-fit=cover" /> <link href="https://cms-tc.pbskids.org/elinorwebsite/resources/css/game.css?fhash=0d12ee7" rel="stylesheet"> <script src="https://cms-tc.pbskids.org/elinorwebsite/resources/js/libs/bellhop-umd.js?fhash=27482b6"></script> <script src="https://cms-tc.pbskids.org/elinorwebsite/resources/js/libs/container.js?fhash=d50d7dd"></script> <script src="https://cms-tc.pbskids.org/elinorwebsite/resources/js/libs/jquery-3.5.1.min.js?fhash=dc5e7f1"></script> <script type="text/javascript" src="https://cms-tc.pbskids.org/elinorwebsite/resources/js/libs/springroll-google-analytics-container-plugin.js?fhash=88acfae"></script> <link href="https://fonts.googleapis.com/css2?family=Solway:wght@400;700&display=swap" rel="stylesheet" /> <link href="https://cms-tc.pbskids.org/headband/resources/sass/producer-headband.css?fhash=ddacb99" rel="stylesheet"> <link href="https://cms-tc.pbskids.org/sponsorship/resources/css/sponsors.css?fhash=34dfb8d" rel="stylesheet"></head> <body class="fall-background"> <!-- START GLOBAL INCLUDE --> <!-- Start Google Tag Manager --> <noscript> <iframe src="//www.googletagmanager.com/ns.html?id=GTM-MR8JHB" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(), event:'gtm.js'}); var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MR8JHB'); </script> <!-- End Google Tag Manager --> <!-- Start Headband --> <div id="headband-container" class='producer-headband'> <div class="headband-nav"> <ul class="headband-primary-nav"> </ul> <div id="parents-message-bar"> <div class="wrap"> <div id="parents-messages"></div> </div> <div class="parents-bar-tooltips"></div> <button id="squished-headband-toggle"><span class="hidden">Toggle message bar</span></button> </div> <ul class="headband-supplementary-nav"> <li class="nav-item apps"><a href="https://pbskids.org/apps/">Apps</a></li> <li class="nav-item shop hidden"><a href="https://shop.pbskids.org/?utm_source=PBS_kids&utm_medium=brandsite&utm_content=ShopButton&utm_campaign=homepage_091914">Shop</a></li> <li class="nav-item parents hidden"><a href="https://pbskids.org/grownups/">Parents</a></li> <script type="text/javascript"> if ( !(/NO_SHOP_LINK=/).test(document.cookie) ) { document.querySelector('.nav-item.shop').classList.remove('hidden'); document.querySelector('.nav-item.parents').classList.remove('hidden'); } </script> <li class="nav-item station" style="display:none;"> <a class="callsign" href="" title="" > <span class="alt-call-letters"></span> <img src=""/> </a> </li> <li class="nav-item tv-times" style="display:none"> <a href="">TV Times</a> </li> <li class="nav-item settings"> <button data-action="settings-trigger">Settings</button> </li> </ul> </div> </div> <!-- End Headband --> <script type='text/javascript'> var _loader_root = "https://cms-tc.pbskids.org/loader/resources/"; var _headband_js_root = "https://cms-tc.pbskids.org/headband/resources/js/"; var _global_resources_root = "https://cms-tc.pbskids.org/globalresources/resources/"; var _sponsor_js_root = "https://cms-tc.pbskids.org/sponsorship/resources/js/"; var _sponsor_img_root = "https://cms-tc.pbskids.org/sponsorship/resources/img/"; </script> <script type="text/javascript"> window._hashedResourceFiles = [ {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.playnice.js","hash":"0511cbf"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/bellhop-1.1.4.js","hash":"e4cd6b6"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.uuid.js","hash":"a76e3a4"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.hbars.js","hash":"44c04c6"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.EventEmitter.js","hash":"bd93c65"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.simple-storage.js","hash":"d7148cb"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.lodash.compat.min.js","hash":"613398a"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.socket.io.js","hash":"1858b81"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.handlebars.js","hash":"3c5dc17"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/jstorage.js","hash":"39000c2"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/login\/login.js","hash":"d4791a7"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/login\/login-compatibility.js","hash":"eae2a29"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/handlebars-v1.3.0.js","hash":"d7a58c2"}, {"url":"https:\/\/cms-tc.pbskids.org\/globalresources\/resources\/js\/lib\/PBS.KIDS.text.js","hash":"18f406d"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/jquery-noconflict.js","hash":"3a5c3f9"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/localization.js","hash":"c33ef2e"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/producer-headband.js","hash":"96d8b30"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/ga-current.js","hash":"5f8a27a"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/lib\/jquery-1.12.3.min.js","hash":"c07f226"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/PBS.KIDS.pubsub.js","hash":"0b8f0d9"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/headband.js","hash":"879b3fd"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/modernizr.js","hash":"176d175"}, {"url":"https:\/\/cms-tc.pbskids.org\/headband\/resources\/js\/messages.js","hash":"a0aca9a"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/producers-progresstracker.require.config.js","hash":"de4425b"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/video.require.config.js","hash":"4c9f8bb"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/apps.require.config.js","hash":"8640dbe"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/shell.require.config.js","hash":"f7dac68"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/producer-legacy.require.config.js","hash":"3929819"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/producers.require.config.js","hash":"b5ea82a"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/games.require.config.js","hash":"a67c449"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/loaders\/home.require.config.js","hash":"beb2105"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/sound.js","hash":"65eb451"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/PBS.KIDS.require.js","hash":"fcb547a"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/imagesloaded.js","hash":"2594a01"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/jquery-1.9.1.min.js","hash":"397754b"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/jquery.mobile-1.3.1-touch-swipe-only.min.js","hash":"c60aad6"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/plugins\/jquery-easing-1.3.js","hash":"e8950e3"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/plugins\/jquery-swipe.js","hash":"0f33842"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/plugins\/jquery.bxSlider.min.js","hash":"c8a53f5"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/jquery.mobile.custom.js","hash":"3561b4a"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/jquery\/jquery-1.10.2.js","hash":"45b682b"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/progresstracker\/utils.js","hash":"d17c05f"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/progresstracker\/queueingLibrary2.js","hash":"9d8e10c"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/progresstracker\/identity-0.2.js","hash":"d24c300"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/lib\/progresstracker\/game-tracker.js","hash":"b644029"}, {"url":"https:\/\/cms-tc.pbskids.org\/loader\/resources\/js\/shell.js","hash":"890e1b2"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/the-wheel\/the-wheel.js","hash":"0ad2b36"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/views\/tv-times.js","hash":"ca4171f"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/views\/home.js","hash":"e7115ea"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/views\/all-page.js","hash":"cc41f75"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/views\/games.js","hash":"f7e2e8a"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/TweenMax.min.js","hash":"ce21ff4"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/sound.js","hash":"65eb451"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/less-1.3.3.min.js","hash":"d46b3d1"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Math2.js","hash":"8316a4b"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Spring.js","hash":"8e05460"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Emitter.js","hash":"ee06e2a"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/BigBubble.js","hash":"5f42273"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/BubbleManager.js","hash":"3511bc3"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/DropIn.js","hash":"d38f826"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Bubble.js","hash":"551d0c8"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Math.Util.js","hash":"2bf04e0"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vote-api.js","hash":"131a31e"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/BubbleThemeApp.js","hash":"65e6ed6"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/lottie.min.js","hash":"4aae1c0"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/EasePack.min.js","hash":"64d6ca3"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/spp.min.js","hash":"a77b141"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/SignalBinding.js","hash":"051f9b7"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/soundjs-0.5.2.min.js","hash":"3a8f3ec"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/TweenLite\/1.11.8\/TweenLite.min.js","hash":"b102e11"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/vendor\/Signal.js","hash":"541f0a7"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/themes\/Preloader.js","hash":"1ac8943"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/raphael-min.js","hash":"ffd330b"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/pixi\/v2.1.0\/pixi.js","hash":"1fb4e9c"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/pixi\/v1.6.0\/pixi.js","hash":"dcb3240"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/pixi\/v3.0.10\/pixi.js","hash":"e5e901f"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/pixi\/v1.5.3\/pixi.js","hash":"e4eead8"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/lib\/stickerbook.dist.js","hash":"0b2b16e"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/core\/PBS.KIDS.playnice.js","hash":"0aeb086"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/core\/PBS.KIDS.frame_party.js","hash":"3a9847a"}, {"url":"https:\/\/cms-tc.pbskids.org\/pbskidswebsite\/resources\/js\/tracking\/unity-sniffer.js","hash":"d45e931"}, {"url":"https:\/\/cms-tc.pbskids.org\/sponsorship\/resources\/js\/sponsors.js","hash":"5e9e23b"}, {"url":"https:\/\/cms-tc.pbskids.org\/sponsorship\/resources\/js\/bridge.urls.js","hash":"b0ab6e5"}, {"url":"https:\/\/cms-tc.pbskids.org\/sponsorship\/resources\/js\/bridge.js","hash":"fb85e3a"}, ]; window._requireJsUrlArgs = function(id, url) { var files = window._hashedResourceFiles; for (var i =0; i < files.length; i++) { var file = files[i]; if (file.hash) { var alreadyHasHash = url.match(/[\?\&][a-z]hash=/); var matches = url.match(RegExp(file.url)); if (!alreadyHasHash && matches) { var args = []; if (file.hash) { args.push('rqfhash=' + file.hash); } return (url.indexOf('?') === -1 ? '?' : '&') + args.join('&'); } } } return ''; }; </script> <script type="text/javascript" src="https://cms-tc.pbskids.org/loader/resources/js/lib/PBS.KIDS.require.js?fhash=fcb547a" data-main="https://cms-tc.pbskids.org/loader/resources/js/loaders/producers.require.config.js?fhash=b5ea82a"></script> <!-- END GLOBAL INCLUDE --> <div id="site" class="game"> <header> <div class="logos"> <a href="https://pbskids.org/" target="_blank" rel="noopener" title="Click to visit PBS Kids website." style="width: 60px"><img src="https://cms-tc.pbskids.org/globalresources/resources/img/pbs-kids-logo.svg?fhash=52b8c6e" alt="" /></a> <a href="/elinor" class="logo" title="Click to visit Elinor Wonders Why homepage."><img src="https://cms-tc.pbskids.org/elinorwebsite/resources/assets/game_container/logo_game.png?fhash=69e6a44" alt="" /></a> </div> <div id="funded-by" class="sponsors funded-by--header funded-by--hidden" style="display: none;"> <span>Funded by:&nbsp;</span> </div> </header> <div id="game"> <div id="content" class="content"> <div class="frame game-background" data-aspect-ratio="1920/1064"> <iframe width="100%" height="100%" id="game-container" class="js-springroll-canvas" width="1920" height="1064" data-game="elinor-aris-wonderful-ideas" data-guid="4696cb70-04c8-11eb-849c-e9e914e8f4db" scrolling="no" frameborder="0" allowfullscreen="1" style="display: none;" > </iframe> <ul class="controls"> <li><a href="/elinor/games" title="Go back to the games page."><button type="button" class="game-button game-button--close" aria-label="Close Game">Close</button></a></li> <li><button id="cc" type="button" class="game-button game-button--cc unmuted" aria-label="Closed Captions">CC</button></li> <li><button id="button-fullscreen" type="button" class="game-button game-button--fullscreen" aria-label="Fullscreen" style="display: none;">Fullscreen</button></li> <li><button id="soundButton" type="button" class="game-button game-button--sound unmuted" aria-label="Toggle Sound">Sound</button></li> </ul> </div> </div> </div> </div> <footer id="footer" class="footer"> <section class="footer__container"> <div class="footer__nav"> <nav class="nav"> <ul> <li><a class="nav nav-item--games" href="/elinor/games" title="Visit the games page." data-url="/elinor/games">Games</a></li> <li><a class="nav nav-item--videos" href="/elinor/videos" title="Visit the vidoes page." data-url="/elinor/videos">Videos</a></li> <li><a class="nav nav-item--activities" href="/elinor/activities" title="Visit the activities page." data-url="/elinor/activities">Activities</a></li> </ul> </nav> </div> <div class="footer__upper"> <div class="footer__upper__produced-by"> <span>Produced by:</span> <a href="https://www.shoe-ink.com/" target="_blank" rel="noopener"><img src="https://cms-tc.pbskids.org/elinorwebsite/resources/assets/ui/shoe-ink-logo.png?fhash=ea33d4f" alt="Shoe Ink Logo." tabindex="0" /></a> </div> <div class="footer__upper__funded-by"> <span>Funded by:</span> <img src="https://cms-tc.pbskids.org/elinorwebsite/resources/assets/ui/fund-by-logos.png?fhash=f86f868" alt="Funded By Logos." /> </div> <div class="footer__upper__copy"> <p> Funding for <span class="force-uppercase">Elinor Wonders Why</span> is provided by a Ready To Learn Grant from the Department of Education; the Corporation for Public Broadcasting, a private corporation funded by the American People; and by public television viewers. </p> <p> The contents of this website was developed under a grant from the Department of Education. However, those contents do not necessarily represent the policy of the Department of Education, and you should not assume endorsement by the Federal Government. The project is funded by a Ready To Learn grant (PR/AWARD No. U295A150003, CFDA No. 84.295A) provided by the Department of Education to the Corporation for Public Broadcasting. </p> </div> </div> <div class="footer__lower"> <div class="footer__lower__copyright"><span>漏2020 Shoe Ink.</span> All rights reserved <span class="force-uppercase">PBS Kids</span></div> <div class="footer__lower__links"> <a href="https://pbskids.org/privacy/" title="Read PBS Kids Privacy Policy." target="_blank" rel="noopener" tabindex="0" class="privacy-link"><span class="force-uppercase">PBS Kids</span> Privacy Policy</a> <a href="https://www.sgptv.org/programs/PBS-KIDS-elinor-wonders-why/" title="Program Sponsorship PBS Kids Elinor Wonders Why." target="_blank" rel="noopener" tabindex="0" >Program Sponsorship</a> </div> </div> </section> </footer> <script> function isFullscreenSupported(element) { if (!element) element = document; return ( !!( element.requestFullscreen || element.mozRequestFullScreen || element.webkitRequestFullscreen || element.msRequestFullscreen ) && !!( document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled ) ); } function requestFullscreen(element) { if (!element) element = document; if (element.requestFullscreen) { element.requestFullscreen(); } else if (element.webkitRequestFullscreen) { element.webkitRequestFullscreen(); } else if (element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if (element.msRequestFullscreen) { element.msRequestFullscreen(); } else { console.error('Fullscreen is not supported'); } } $(document).ready(() => { var iframe = document.getElementById('game-container'); if (isFullscreenSupported(iframe) && !isiOS()) { $('#button-fullscreen') .show() .on('click', () => { requestFullscreen(iframe); }); } setTimeout(function() { document.getElementById('game-container').style.display = 'block'; }, 1000); }); function isiOS() { if(!!navigator.platform.match(/iPhone|iPod|iPad/)) { return true; } else if ( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 && !window.MSStream ) { return true; } return false; }; </script> <script> document.addEventListener("DOMContentLoaded", function() { if (window.springroll === undefined || springroll.Container === undefined) { throw new Error('Unable to open game, springroll.Container is not defined'); } var containerOptions = {"soundButton":"#soundButton","captionsButton":"#cc"}; if (!containerOptions) { var container = new springroll.Container('#game-container'); } else if (containerOptions.containerVersion && containerOptions.containerVersion === '2') { var plugins = []; if (containerOptions.plugins && containerOptions.plugins.length) { for (var i = 0; i < containerOptions.plugins.length; i++) { var pluginName = containerOptions.plugins[i].shift(); var pluginConstructor; pluginConstructor = window.springroll[pluginName] || window[pluginName]; if (!pluginConstructor) { console.warn(`Cannot instantiate the \`${pluginName}\` plugin. It is undefined in both \`window.springroll.${pluginName}\` and \`window.${pluginName}\``); continue; } plugins.push( new pluginConstructor(...containerOptions.plugins[i]) ); } } var initialContext = { build_info: { springroll_app_build: { commit: '' }, }, game_name: 'Elinor\u0020Ari\u0027s\u0020Wonderful\u0020Ideas', show_name: 'Elinor\u0020Wonders\u0020Why', game_guid: '4696cb70-04c8-11eb-849c-e9e914e8f4db', show_guid: '1dae93ca-7e0a-4fdd-ab4d-0c953f4c1b23', language : 'en'// Reduce to just the first 2 letters of the locale, e.g. 'en_US' -> 'en'. }; var container = new springroll.Container('#game-container', { plugins, context: initialContext }); } else { var container = new springroll.Container('#game-container', containerOptions); } var playOptions = { 'playOptions': {"language":"en","game_guid":"4696cb70-04c8-11eb-849c-e9e914e8f4db"} }; var url = 'https://springroll.pbskids.org/api/release/4696cb70-04c8-11eb-849c-e9e914e8f4db?'; var queryParams = {}; queryParams.status = 'prod'; for (var key in queryParams) { url += key + '=' + queryParams[key] + '&'; } fetch(url) .then((resp) => { if (!resp.ok) { throw new Error('HTTP error: ' + resp.status); } return resp.json(); }) .then((resp) => { if (!resp.data || !resp.data.url) { throw new Error('URL not found.'); } if (containerOptions && containerOptions.containerVersion && containerOptions.containerVersion === '2' && resp.data.commitId) { container.context.build_info.springroll_app_build.commit = resp.data.commitId; } container.openPath(resp.data.url, playOptions); }) .catch((err) => console.error('Unable to load game. ', err)); }); </script> <div style="display: none;"> <div id="sponsor-overlay-content" role="dialog"> <div class="sponsor-overlay-copy"> </div> </div> </div> <script src="https://cms-tc.pbskids.org/sponsorship/resources/js/sponsors.js?fhash=5e9e23b"></script></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10