[ad_1]
Father’s Day is coming up! Creative STEM activities are a fun way for kids to make something with that perfect DIY flair to mark the day.
STEM Activities to Make or Do and Give!
Giving something to celebrate Father’s Day (or Mother’s Day) should be simple! It doesn’t have to cost a lot to make something one-of-a-kind and special to give to Dad, a father figure, or another special person. Many of the ideas highlighted below use materials you can probably find around the house. Try one of these 10 science and engineering activities for a unique “I made this” gift for Father’s Day:
Move over desktop Zen sand garden! Made from wooden popsicle sticks, this mini trebuchet is fun to build and will definitely make a novel conversation starter on a desk! For home fun, set up a target basket and take turns to see how accurate your launches are and who can score the most points.
Does Dad love a good puzzle or brain teaser? 3D print an impossible arrow or an ambiguous cylinder for mind-bending hands-on fun with visual illusions! After experimenting with this ready-made design, you could go on to design your own using the Design Your Own 3D Printed Optical Illusion science project.
This suggestion requires a bit more planning (and ordering), and for this one, we recommend making a “to do” kit for Dad (or your recipient). Buy the parts needed for the mini popsicle stick drone and then spend time together building and experimenting. The basic build will get you started. After that, there is a series of additional builds to explore other aspects of drone flight science. (Note: This is a fun series for tinkerers, but note that many of the activities use an Arudino and additional parts, so be sure to check the individual materials lists.)
Tip! Make it special! Choose colors for the craft sticks and propellers to customize the drone. You can also decorate the sticks with markers, paint, washi tape, or other craft supplies. Find added inspiration in the drones our engineer created for Star Wars Day and Mario Day!
If music is something you share, a paper speaker is a great idea for a really unusual, science-backed project and gift! Use paper, a neodymium magnet, and a wire coil to create a functional speaker you can connect to a cell phone.
Make a special card using paper circuits! With copper tape, a coin cell battery, and an LED, kids can create cool custom cards that light up. Have extra supplies on hand because the recipient might want to experiment with paper circuits and make one, too! (Be inspired! For examples of imaginative creative projects kids can make with paper circuits, see Paper Circuits Science Projects.)
If your family likes puzzles and brain teasers, using a Caesar cipher to encrypt your Father’s Day message can be fun. Be sure and give the recipient the “key” so they will know how to shift the alphabet to decode your note!
This simple launch device is perfect for indoor target practice since it launches soft cotton balls! This activity earns bonus points for using up empty toilet paper rolls. Will it work with ping pong balls or mini wiffle balls?
If Dad likes ice cream, making homemade ice cream is an awesome plan. The Make Ice Cream in a Bag activity has directions for “shaking up” ice cream in plastic baggies. To make custom flavors, kids can experiment with adding to the ingredients or adding toppings in the bowl! See how these kids made ice cream modeled after their favorite, fancy, “gourmet” scoops!
Flying paper airplanes is fun for all ages, and this homemade paper airplane launcher is sure to be a hit! Kids can decorate the launcher they build to customize it for Dad — make two for some side-by-side flying fun!
Design and make a useful back scratcher from recycled materials. Long? Short? Multiple scratchers? It’s up to you to design a custom scratcher you think will really help get the itch!
With shaving cream and food coloring, kids can make colorful marbled art cards or pictures to hang on the refrigerator door or in the office. These swirly art pieces will brighten Dad’s day!
Use simple materials to build a handy cell phone stand that can be used in the car or at home for hands-free convenience. Figuring out the exact design specifications to make it “just right” for a specific person or use is half the fun and half the design challenge!
Use the DIY Night-Light Kit to design and build a special night-light! Decide what the night-light will look like, and then use either the Engineer an LED Night-Light project or the Make a Night-Light activity for directions to assemble the circuit. (Or make your own DIY Lantern!)
With a few electronics parts, you can design your own custom junkbot robots with bodies made from recycled materials! (With the Bristlebot kit, you can also make other kinds of simple robots, including an ArtBot, Brushbot, or Bristlebot.)
Use this free-form engineering design activity to make a set of sports-minded toys to use outside. This activity invites kids to create a fun game for the family — and the tools you will need to play. You might make a set of putters for drive-way putting practice or for a homemade mini-golf course, for example. Or you might make mallets for DIY croquet in the yard!
More Ideas!
Most of the creative, hands-on STEM activities in our Mother’s Day collection easily do double duty for Father’s Day, so be sure and check there for even more hands-on science and engineering ideas to celebrate with creative flair.
There are all kinds of holidays celebrated throughout the year, including pop culture-inspired days like Star Wars Day and Mario Day. With a little bit of planning and creative thinking, special days on the calendar can often be connected to science inquiry for unexpected classroom or family fun.
Bookmark the STEM Calendar to make connections in science class all year long!
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
',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
[ad_2]
Source link