Bring home hands-on science exploration with convenient STEM kits from Science Buddies! Set kids up to explore robotics, computer programming, chemistry, physics, and more!
As you plan for summer break, consider the value of hands-on science and engineering kits for keeping kids occupied, engaged, and learning! They’ll have fun doing exciting experiments and making, designing, and building things, and they’ll be learning and using important science and engineering concepts the whole time.
There are lots of STEM activities kids can do at home that use everyday, craft, or recycled materials. (See our suggestions for using up empty toilet paper tubes!) But sometimes, exploring science concepts in more in-depth ways requires specialty materials (like electronics components or chemicals). Having the right materials and parts can make a big difference in how well a science fair project, independent science project, or family science activity goes.
Science Buddies Kits help take the guesswork out of buying materials for hands-on STEM activities.
When you purchase a Science Buddies STEM Kit, it comes with all of the specialty items conveniently packaged in one kit. You then just need to gather the additional materials needed for the specific experiment or project you will be doing. These additional items are often things you may already have or that are more readily available. Tip: make sure you have googly eyes on hand. They add character and personality to all kinds of science and engineering creations!
All Science Buddies Kits are sold through our partner, Home Science Tools.
10 Kits for Hours of STEM Fun
The 10 kits highlighted below enable hours and hours of fun science and engineering exploration, perfect for kids to explore independently at home:
Design and build a custom night-light! The DIY Night-Light Kit kit contains the specialty materials you need to set up a sensor-based circuit for a nightlight. Use either the Engineer an LED Night-Light project or Make a Night-Light for directions to assemble the circuit. What the body or housing of the night-light looks like is up to you! Fun fact! You can also use this kit to make a DIY Lantern!
It can be mesmerizing to watch a fireworks display, but what gives fireworks their colors? With the Rainbow Fire Kit kit, kids can investigate! The Rainbow Fire kit contains four chemicals that can be safely burned to explore the “colors” of fireworks following directions in the Discover the Flaming Colors of Fireworks activity.
The Spherification Kit lets kids explore molecular gastronomy recipes to turn liquids and semi-solids (like juice and yogurt) into tasty spheres that pop in your mouth. With this kit, kids can make their own flavored juice balls for fun summer treats! Along the way to mastering the spherification of juice balls, you’ll probably make some wiggly, stringy, juicy worms, too! Can you create your perfect recipe for juice balls like the ones you might have had added to a bubble or popping boba tea? (For a closer look at the steps involved in making juice balls with the Spherification Kit, see Boba Spherification: The Science of Juice-filled Caviar.)
Build three different kinds of wiggling, wobbling robots for a fun introduction to robotics! With the Bristlebot Kit, kids can build ArtBot, Brushbot and Bristlebot robots. Or, they can go freeform and design and build their own unique Junkbot robots using recycled materials. (The kit contains electronics components to make four robots, two Bristlebots and two of the other robot styles.)
Mix up fizzy bath bombs and experiment to find the best and fizziest forumula! With the Bath Bomb Science Kit, kids explore the science behind making fizzy bath bombs and test different recipes to see how various ingredients and quantities change the fizz factor. Can they discover how to make the fizziest bath bombs?
Explore robotics and sensors by building a series of four different BlueBot robots: Motion-Activated Guard Robot, a Speedy Light-Tracking Robot, a Zippy Line-following Robot, and an Obstacle-Avoiding Robot. Each BlueBot robot has a different behavior based on its sensor and a different circuit kids build on the breadboard. (Do more! The BlueBot kit can be used for a range of more advanced robotics projects, too, including Build a Solar-Tracking Robot, Build an Autonomous Arduino Robot with Bump Sensors, and Build an Arduino Robot.
With the Gauss Rifle Kit, kids can experiment with magnets and magnetic fields as they use ball bearings and magnets to build a multi-stage Gauss rifle. (Note: The Gauss rifle is not a weapon; this is an experiment about magnetism and momentum.)
Great for kids who have already explored simple robots and circuits, or for older kids, the Advanced Bristlebots kit has specialty parts to create either a light-tracking bristlebot or a solar-powered bristlebot. After building one of these robots, kids can recycle the parts to build the other.
Make conductive and insulating dough and then experiment to light up your “squishy circuit” creations with colorful LEDs from the Electric Play Dough kit. Once kids master simple electric play dough circuits, they can move on to more challenging 3D structures! Multiple resources at Science Buddies help students learn more about circuits using electric play dough.
Build your own Raspberry Pi computer (in 30 minutes or less!) and then use Scratch to write programs that control interactive games and toys. The Raspberry Pi Projects kit works with a progressive series of 8 fun projects that guide kids in adding and using new skills. The kit works with Python, so after the 8 guided activities, kids can continue to use their Raspberry Pi kit for new coding adventures. (Note: if you already own a Raspberry Pi, see the Circuit Building Kit for Raspberry Pi.)
You Might Also Enjoy These Related Posts:
');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,r){var a={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href"},e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],n={anchor:"fragment"},o={strict:/^(?:([^:/?#]+):)?(?://((?:(([^:@]*):?([^:@]*))?@)?([^:/?#]*)(?::(d*))?))?((((?:[^?#/]*/)*)([^?#]*))(?:?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?://)?((?:(([^:@]*):?([^:@]*))?@)?([^:/?#]*)(?::(d*))?)(((/(?:[^?#](?![^?#/]*.[^?#/.]+(?:[?#]|$)))*/?)?([^?#/]*))(?:?([^#]*))?(?:#(.*))?)/},i=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g,s=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g;function f(t,r){for(var a=t,n=o[r?"strict":"loose"].exec(a),f={attr:{},param:{},seg:{}},u=14;u--;)f.attr[e[u]]=n[u]||"";f.attr.extension="";var c=f.attr.file.lastIndexOf(".");return c>=0&&(f.attr.extension=f.attr.file.substr(c+1)),f.param.query={},f.param.fragment={},f.attr.query.replace(i,function(t,r,a){r&&(f.param.query[r]=decodeURIComponent(a.replace(/+/g," ")))}),f.attr.fragment.replace(s,function(t,r,a){r&&(f.param.fragment[r]=decodeURIComponent(a.replace(/+/g," ")))}),f.seg.path=f.attr.path.replace(/^/+|/+$/g,"").split("https://www.sciencebuddies.org/"),f.seg.fragment=f.attr.fragment.replace(/^/+|/+$/g,"").split("https://www.sciencebuddies.org/"),f.attr.base=f.attr.host?(f.attr.protocol?f.attr.protocol+"://"+f.attr.host:f.attr.host)+(f.attr.port?":"+f.attr.port:""):"",f}t.fn.url=function(e){var n,o,i="";return this.length&&(i=t(this).attr((n=this[0],(o=n.tagName)!==r?a[o.toLowerCase()]:o))||""),t.url(i,e)},t.url=function(t,a){return 1===arguments.length&&!0===t&&(a=!0,t=r),a=a||!1,{data:f(t=t||window.location.toString(),a),attr:function(t){return(t=n[t]||t)!==r?this.data.attr[t]:this.data.attr},param:function(t){return t!==r?this.data.param.query[t]:this.data.param.query},fparam:function(t){return t!==r?this.data.param.fragment[t]:this.data.param.fragment},segment:function(t){return t===r?this.data.seg.path:(t=t<0?this.data.seg.path.length+t:t-1,this.data.seg.path[t])},fsegment:function(t){return t===r?this.data.seg.fragment:(t=t<0?this.data.seg.fragment.length+t:t-1,this.data.seg.fragment[t])}}},t.url_encodeQueryString=function(t){return encodeURIComponent(t).replace(/%20/g,"+")}});
!function(e){var r,t=[],i=!1,a=!1,n={interval:250,force_process:!1},o=e(window);function f(){a=!1;for(var i=0,n=t.length;i'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("https://www.sciencebuddies.org/blog/%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("https://www.sciencebuddies.org/blog/%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"https://www.sciencebuddies.org/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/.w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()});
var sb=sb||{};sb.user=sb.user||{};sb.ec=sb.ec||{};sb.classroom=sb.classroom||{};sb.google=sb.google||{};sb.facebook=sb.facebook||{};sb.ui=sb.ui||{};sb.youtube=sb.youtube||{};sb.vimeo=sb.vimeo||{};sb.ads=sb.ads||{};sb.activity=sb.activity||{};sb.isIE=(navigator.appName=="Microsoft Internet Explorer");MutationObserver=window.MutationObserver||window.WebKitMutationObserver;sb.trackException=function(a,b){try{var c=(new Date()).getTime();$.ajax({type:"GET",url:"/track",async:true,timeout:1000,data:{c:"Bug-Exception-"+b,a:a.message,l:a.fileName?a.fileName:a.filename,v:a.lineNumber,u:encodeURIComponent(window.location),t1:sb.time,t2:c}});}catch(a){}};sb.track=function(h,b,a,f,m,g,j){try{if(j===undefined){j=(new Date()).getTime();}if(a==null||a==""||a==undefined){a=f;}var l=window.location.href;if(b=="Iframe"){l=document.referrer.href;a=$.url(document.referrer).attr("host");f=window.location.toString();}if(g===undefined||g==""){g=document.referrer;}var k={};k.category=b;k.action=a;k.label=f;k.value=m;k.referrer=g;k.url=l;k.time1=sb.time;k.time2=j;if(b=="PageView"&&a=="End"){k.activeTime=sb.activity.activeTime;k.idleTime=sb.activity.idleTime;k.activePeriodTime=sb.activity.lastActivePeriodTime;k.idlePeriodTime=sb.activity.lastIdlePeriodTime;k.activePeriods=sb.activity.activePeriods;k.idlePeriods=sb.activity.idlePeriods;}if(b=="PageView"&&a=="End"){try{if(typeof navigator.sendBeacon==="function"){var c=new FormData();c.append("j",JSON.stringify(k));if(navigator.sendBeacon("/track",c)){return;}}}catch(d){}}$.ajax({type:"POST",url:"/track",async:true,timeout:1000,data:{j:JSON.stringify(k)}});if(h&&typeof(ga)!="undefined"){if(b=="Iframe"){ga("send","event",b,$.url(document.referrer).attr("host"),document.referrer,j-sb.time,{nonInteraction:true});}else{ga("send","event",b,a,f,j-sb.time,{nonInteraction:true});}}}catch(d){sb.trackException(d,"Track");}};sb.trackEventValue=function(a){return a.clientX==0?0:1;};sb.trackElement=function(a,d){var c=a.data("track-category");var b=a.data("track-action");var f=a.data("track-label");var g=a.data("track-value");if(g==undefined&&d!=undefined){g=d;}if(c!=undefined){sb.track(false,unescape(c),unescape(b),f,g);}};sb.click=function(a){a=a[0];if(document.createEvent){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);a.dispatchEvent(b);}else{if(document.createEventObject){var b=document.createEventObject();a.fireEvent("onclick",b);}}};sb.redirect=function(d){$("#updateProgress").addClass("ajax-show");var b=false;var a=d.lastIndexOf("#");if(a>=0){var c=d.substr(0,a);if(parent){if(parent.window.location.pathname==c){b=true;}}else{if(window.location.pathname==c){b=true;}}}if(parent){parent.window.location.href=d;if(b){parent.window.location.reload();}}else{window.location.href=d;if(b){window.location.reload();}}};try{window.addEventListener("message",receiveMessage,false);}catch(e){}function receiveMessage(a){var b=a.origin.split(".");if(b.length<2||b[b.length-1]!="org"||b[b.length-2]!="sciencebuddies"){return;}if(a.data=="magnificPopup.close"){$.magnificPopup.close();}else{if(a.data+0>0){$(".sb-mfp-login iframe").css("width","100%");$(".sb-mfp-login iframe").css("height",(a.data+0)+"px");$(".sb-mfp-login .mfp-iframe-scaler").css("height",(a.data+0)+"px");$(".sb-mfp-join-teacher iframe").css("width","100%");$(".sb-mfp-join-teacher iframe").css("height",(a.data+0)+"px");$(".sb-mfp-join-teacher .mfp-iframe-scaler").css("height",(a.data+0)+"px");$(".sb-mfp-checkout iframe").css("height",(a.data+20)+"px");$(".mfp-close").css("left","initial");}}}sb.pinterest=function(){PinUtils.pinAny();};sb.setActiveStyleSheet=function(c){var b=document.getElementsByTagName("link");for(i=0;i
',type:"inline"},callbacks:{open:function(d){},afterClose:function(){if(a){a();}}},modal:true,closeBtnInside:true});};sb.ui.askConfirmation=function(a,f,c,d,b){$.magnificPopup.instance.sbConfirm=-1;$.magnificPopup.open({items:{src:'
",type:"inline"},callbacks:{open:function(){$(document).on("keyup.sb",function(g){if(g.keyCode===27){$.magnificPopup.close().close();}});},afterClose:function(){if($.magnificPopup.instance.sbConfirm==0){if(typeof c==="function"){c();}}else{if($.magnificPopup.instance.sbConfirm==1){$(document).off("keyup,sb");if(typeof f==="function"){f();}}}}},modal:true,closeBtnInside:true});};sb.ui.askExternalNavigation=function(d,b,a,c,f){sb.ui.askConfirmation("You are leaving the Science Buddies website to access this resource.",function(){sb.track(true,b,a,c,f);sb.redirect(d);},function(){},"OK","Cancel");};sb.ui.showWorking=function(){$("#ui-working").show();};sb.ui.hideWorking=function(){$("#ui-working").hide();};sb.ui.hideTableRowsWithEmptyCells=function(a){$(a).find("tr:has(td:empty)").hide();$(a).each(function(){if($(this).find("tr").filter(function(){return $(this).css("display")=="none";}).length==$(this).find("tr").length){$(this).parent().parent().hide();}});};sb.ui.googleTranslateInit=function(){var a="";new google.translate.TranslateElement({pageLanguage:"en",layout:google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element");$("#translated-language").bind("DOMSubtreeModified",function(){setTimeout(function(){var b=$("#translated-language").text();if(a!=b){a=b;sb.track(false,"Language","Translate",b);}},500);});};sb.ui.googleTranslateInitCD=function(){var a="";new google.translate.TranslateElement({pageLanguage:"en"},"google_translate_element");$("#translated-language").bind("DOMSubtreeModified",function(){setTimeout(function(){var b=$("#translated-language").text();if(a!=b){a=b;sb.track(false,"Language","Translate",b);}},500);});};sb.browser=sb.browser||{};sb.browser.cacheResource=function(a){window.addEventListener("load",function(){var b=document.createElement("link");b.rel="prefetch";b.href=a;document.getElementsByTagName("head")[0].appendChild(b);});};sb.browser.getScript=function(a){window.addEventListener("load",function(){var b=jQuery.ajaxSetup().cache;jQuery.ajaxSetup({cache:true});jQuery.getScript(a);jQuery.ajaxSetup({cache:b});});};sb.splits=sb.splits||{};sb.splits.variations=sb.splits.variations||{};sb.splits.variation=function(a){if(typeof sb.splits.variations[a.toString()]!="undefined"){return sb.splits.variations[a.toString()];}return -1;};sb.splits.variationCheck=function(c,d,a){if(sb.splits.variation(c)>=0){if(sb.splits.variation(c)==d){a();}return;}try{$.ajax({type:"GET",url:"/Handlers/Splits/Variation.ashx",async:true,timeout:2000,data:{id:c},xhrFields:{withCredentials:true}}).done(function(f){sb.splits.variations[f.id]=f.variation;if(sb.splits.variation(c)==d){a();}});}catch(b){}};sb.splits.step=function(c,d,f,b){try{$.ajax({type:"GET",url:"/Handlers/Splits/Step.ashx",async:true,timeout:2000,data:{id:c,s:d,t:f,f:b},xhrFields:{withCredentials:true}}).done(function(g){sb.splits.variations[g.id]=g.variation;});}catch(a){}};sb.splits.stepFirst=function(b,c,a){if(sb.splits.variation(b)>0){return;}sb.splits.step(b,1,c,a);};sb.actionGraphs=sb.actionGraphs||{};sb.actionGraphs.vertex=function(b,g,c,f){if(JSON){try{var d=[];d[0]={};d[0].graph=b;d[0].vertex=g;if(c){d[0].properties=[];d[0].properties[0]={};d[0].properties[0].name=c;d[0].properties[0].value=f;}if(b>0){$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d)}});}}catch(a){}}};sb.actionGraphs.vertex2=function(b,f,c,g){if(JSON){try{var d=[];d[0]={};d[0].graph=b;d[0].vertex=f;d[1]={};d[1].graph=c;d[1].vertex=g;$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d)}});}catch(a){}}};sb.actionGraphs.vertexSession=function(b,c){if(JSON){try{var d=[];d[0]={};d[0].graph=b;if(b>0){$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d),property:c}});}}catch(a){}}};$(function(){sb.classroom.startTime=(new Date()).getTime();sb.classroom.blurTime=0;sb.classroom.focusTime=0;sb.classroom.inFocus=true;window.onfocus=function(){if(!sb.classroom.inFocus){sb.classroom.blurTime+=(new Date()).getTime()-sb.classroom.startTime;sb.classroom.startTime=(new Date()).getTime();sb.classroom.inFocus=true;}};window.onblur=function(){if(sb.classroom.inFocus){sb.classroom.focusTime+=(new Date()).getTime()-sb.classroom.startTime;sb.classroom.startTime=(new Date()).getTime();sb.classroom.inFocus=false;}};window.focus();});sb.youtube.scriptLoaded=false;sb.youtube.apiLoaded=false;sb.youtube.loadCallbacks=$.Callbacks();sb.youtube.videos=[];window.addEventListener("load",function(a){window.addEventListener("mousemove",sb.youtube.loadScript);window.addEventListener("keyup",sb.youtube.loadScript);window.addEventListener("keydown",sb.youtube.loadScript);window.addEventListener("scroll",sb.youtube.loadScript);window.addEventListener("touchstart",sb.youtube.loadScript,{passive:true});});sb.youtube.loadScript=function(){if(!sb.youtube.scriptLoaded){sb.youtube.scriptLoaded=true;window.removeEventListener("mousemove",sb.youtube.loadScript);window.removeEventListener("keyup",sb.youtube.loadScript);window.removeEventListener("keydown",sb.youtube.loadScript);window.removeEventListener("scroll",sb.youtube.loadScript);window.removeEventListener("touchstart",sb.youtube.loadScript);var b=document.createElement("script");b.src="https://www.youtube.com/iframe_api";var a=document.getElementsByTagName("script")[0];sb.youtube.startLoadTime=(new Date()).getTime();a.parentNode.insertBefore(b,a);setTimeout(function(){if(!sb.youtube.apiLoaded){sb.track(false,"YouTube","API","no",(new Date()).getTime()-sb.youtube.startLoadTime);}},5000);}};sb.youtube.load=function(c,a,g,h,b,d,f){if(!sb.youtube.apiLoaded){sb.youtube.loadCallbacks.add(function(){sb.youtube.createPlayer(c,a,g,h,b,d,f);});}else{sb.youtube.createPlayer(c,a,g,h,b,d,f);}};sb.youtube.onPlayerReady=function(a){sb.youtube.videos.push(a.target);sb.track(false,a.target.sbTrackCategory,"Ready",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));};sb.youtube.onPlayerStateChange=function(a){if(a.data==YT.PlayerState.PLAYING){a.target.sbStartTime=(new Date()).getTime();a.target.sbPlaying=true;sb.track(false,a.target.sbTrackCategory,"Play",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}else{if(a.data==YT.PlayerState.PAUSED){if(a.target.sbPlaying){a.target.sbTotalTime+=(new Date()).getTime()-a.target.sbStartTime;a.target.sbPlaying=false;}sb.track(false,a.target.sbTrackCategory,"Pause",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}else{if(a.data==YT.PlayerState.ENDED){if(a.target.sbPlaying){a.target.sbTotalTime+=(new Date()).getTime()-a.target.sbStartTime;a.target.sbPlaying=false;sb.activity.idle();}sb.track(false,a.target.sbTrackCategory,"End",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}}}};sb.youtube.createPlayer=function(c,a,h,j,b,f,g){if(h=="6jnnZjXs1wc"){var d=new YT.Player(a,{height:b,width:j,videoId:h,playerVars:{rel:0,playlistlistType:"playList",list:"PLApdl7sXvtv6S7eDsr5O8Yl66HR1BiUYj",index:1},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}else{if(f){var d=new YT.Player(a,{height:b,width:j,playerVars:{rel:0,listType:"playlist",list:h},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}else{var d=new YT.Player(a,{height:b,width:j,videoId:h,playerVars:{rel:0},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}}d.sbServiceVideoId=h;d.sbElementId=a;d.sbVideoId=c;d.sbTotalTime=0;d.sbStartTime=0;d.sbPlaying=false;if(g){d.sbTrackCategory=g;}else{d.sbTrakcCategory="Video";}};sb.youtube.stopAllVideos=function(){for(var a=0;a
";b.append(m);f++;}$("*[data-toc]").each(function(){c($(this));});if(f>1){j();$(".toc").show();$(".toc-tab").css("visibility","visible");}function j(){var l=$(".menu");if(l.length>0){var m=l.offset().top;var k=m+$(".toc").height()+parseInt($(".toc").css("padding-bottom"));var n=$(window).innerHeight();if(k>n){m=m-(k-n);if(m<0){m=0;}k=m+$(".toc").height();}$(".toc").css("top",m+"px");}}var d=$("body").find("*[data-toc][id]");for(var h=0;h
Source link