{"version":3,"sources":["webpack:///./src/components/chemistry/bce/rusting/Lesson.vue","webpack:///./src/components/chemistry/bce/rusting/Boxes.js","webpack:///src/components/chemistry/bce/rusting/Lesson.vue","webpack:///./src/components/chemistry/bce/rusting/Lesson.vue?c384","webpack:///./src/components/chemistry/bce/rusting/Lesson.vue?4ad2"],"names":["staticClass","class","_vm","$vuetify","_c","staticStyle","ref","attrs","_v","staticRenderFns","render","Boxes","box1","brd1","JXG","JSXGraph","initBoard","boundingbox","keepaspectratio","axis","ticks","grid","showCopyright","showNavigation","pan","enabled","zoom","options","image","highlight","placeLogo","makeResponsive","shuffle","placeShuffle","erase","placeErase","list1","list2","Cl","list","i","Cmethane","placeTitle","valueOf","create","cssStyle","fontSize","canvasHeight","fixed","parse","anchorX","Coxy","rotate","Ccotwo","Cwater","strokeColor","strokeWidth","anchorY","Value","opacity","visible","on","Math","floor","random","_step","magicGraph","containerObj","inputFields","querySelectorAll","_iterator","_createForOfIteratorHelper","s","n","done","inputField","value","err","e","f","_step2","_iterator2","name","components","data","style","layout","created","_this","$store","commit","title","newTopics","img","action","goto","mounted","MathJax","Hub","Queue","metaInfo","titleTemplate","meta","content","component"],"mappings":"mJAA4D,EAAU,W,IAAiBA,OAAgCC,EAAK,EAAC,S,OAAC,WAAiBC,MAAIC,C,YAA4B,oB,MAAmD,CAAgD,8CAAIC,kBAAS,6BAACJ,cAAY,sBAAoB,Y,CAAQ,S,YAAuD,qB,MAAkC,CAA+C,0CAAII,SAAU,6BAACC,WAAY,kCAAuB,WAAE,YAAS,CAA0CC,cAAQ,W,CAAc,qCAAa,SAAM,SAAG,YAAQ,CAA69BD,aAAY,UAAoB,q9BAAG,YAAU,CAACL,aAAY,UAA4B,S,YAAuD,qB,MAAkC,CAA+C,0CAAII,SAAU,6BAACE,WAAQ,kC,CAAc,UAAsB,IAAC,KAACC,YAAM,CAAC,cAAK,UAAO,MAAMC,CAA8EF,GAAI,Q,CAAkB,sEAAa,SAAM,SAAG,YAAUJ,CAA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AH,OAAAC,OAAA,gCACA,KAAAD,OAAAC,OAAA,6BACA,KAAAD,OAAAC,OAAA,kCACA,KAAAD,OAAAC,OAAA,+BACA,KAAAD,OAAAC,OAAA,gCAEAM,QAAA,WACAC,QAAAC,IAAAC,MAAA,WAAAF,QAAAC,MACAvF,EAAAC,QAEAwF,SAAA,WACA,OAAAT,MAAA,yBACAU,cAAA,2BACAC,KAAA,EAAApB,KAAA,WAAAqB,QAAA,uCACA,CAAArB,KAAA,cAAAqB,QAAA,sCC1F6X,I,YCOzXC,EAAY,eACd,EACA,EACA/F,GACA,EACA,KACA,KACA,MAIa,aAAA+F,E","file":"js/chunk-2d221847.a9d8568d.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"font-weight-light\",class:{'pa-5 headline': _vm.$vuetify.breakpoint.lgAndUp,'pa-2 subtitle-1': _vm.$vuetify.breakpoint.mdOnly, 'pa-1 body-2': _vm.$vuetify.breakpoint.smAndDown}},[_c('div',{staticClass:\"font-weight-medium\",class:{'display-1': _vm.$vuetify.breakpoint.lgAndUp,'headline': _vm.$vuetify.breakpoint.mdOnly, 'subheading': _vm.$vuetify.breakpoint.smAndDown}},[_c('span',{staticStyle:{\"font-family\":\"Oswald\"}},[_vm._v(\" Chlorination Reactions \")])]),_c('div',{ref:\"ia\",staticStyle:{\"margin-top\":\"10px\"}}),_vm._v(\"\\n Chlorination reactions are chemical reactions in which a metal reacts with hydrochloric acid (\\\\(HCl\\\\)) to produce a metal chloride. The reaction also produces hydrogen gas (\\\\(H_2\\\\)) as a byproduct.\\n \"),_c('br'),_c('br'),_vm._v(\"\\n Let's consider the chlorination of a metal called Megnesium — the chemical symbol for which is \\\\(Mg\\\\).\\n During chlorination of \\\\(Mg\\\\) (Megnesium), it reacts with \\\\(HCl\\\\) (Hydrochloric acid) and produces \\\\(MgCl_2\\\\) (Magnesium Chloride) and \\\\(H_2\\\\) (Hydrogen gas). \"),_c('br'),_c('br'),_vm._v(\" So, the chemical equation describing the chlorination of Magnesium looks something like this —\\n $$ Mg + 2\\\\ HCl \\\\rightarrow MgCl_2 + H_2$$\\n Is this chemical equation balanced or unbalanced? \"),_c('br'),_c('br'),_vm._v(\"\\n This answer is balanced because masses of all the chemical elements involved in the reaction (i.e. \\\\(Mg\\\\), \\\\(Cl\\\\) and \\\\(H\\\\)) remain constant before and after the reaction.\\n \"),_c('div',{staticStyle:{\"margin-top\":\"10px\"}}),_c('div',{staticClass:\"font-weight-medium\",class:{'display-1': _vm.$vuetify.breakpoint.lgAndUp,'headline': _vm.$vuetify.breakpoint.mdOnly, 'subheading': _vm.$vuetify.breakpoint.smAndDown}},[_c('span',{ref:\"pg\",staticStyle:{\"font-family\":\"Oswald\"},attrs:{\"id\":\"mgk\"}},[_vm._v(\" Learn interactively : Balancing a Chlorination Reaction \")])]),_c('div',{ref:\"ib\",staticStyle:{\"margin-top\":\"10px\"}}),_c('h5',[_vm._v(\"Session Objectives\")]),_c('div',{staticStyle:{\"margin-top\":\"5px\"}}),_vm._v(\"\\n This visually interactive illustration is designed to help you learn how to balance a chemical equation describing chlorination of metals in a step-by-step fashion. \"),_c('br'),_c('br'),_vm._v(\"\\n Shown below is a chemical equation that describes the chlorination of a metal.\\n You will notice that the coefficients of the reactants and products in the equation are missing. The goal is determine the correct set of coefficients that will balance the chemical equation.\\n \"),_c('div',{staticStyle:{\"margin-top\":\"10px\"}}),_c('h5',[_vm._v(\"Getting Started\")]),_c('div',{staticStyle:{\"margin-top\":\"5px\"}}),_vm._v(\"\\n To get started — \"),_c('br'),_c('br'),_vm._v(\"\\n 1. Start with entering the coefficients for the reactants and the products in the chemical equation.\"),_c('br'),_c('br'),_vm._v(\"\\n 2. Once you have provided the coefficients, the MagicGraph automatically calculates the number of moles of each chemical element on the reactant side as well as on the product side. \"),_c('br'),_c('br'),_vm._v(\"\\n 3. The chemical equation is balanced if the mass of each chemical element before the reaction is same as the mass after the reaction.\"),_c('br'),_c('br'),_vm._v(\"\\n 4. You can adjust the coefficients to balance the mass of each chemical element before and after the reaction.\\n \"),_c('div',{ref:\"ic\",staticStyle:{\"margin-top\":\"10px\"}})]),_c('v-responsive',[_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"edliy-box-about\",attrs:{\"id\":\"jxgbox1\"}})])],1),_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('h5',{staticClass:\"edliy-text-about\"},[_vm._v(\"\\n Navigation Tip: Tap on \"),_c('i',{staticClass:\"shuffler ma-1\"}),_vm._v(\" icon to shuffle. Tap on \"),_c('i',{staticClass:\"eraser ma-1\"}),_vm._v(\" icon to clear your response and start over.\\n \")])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\r\n makeResponsive,\r\n placeTitle,\r\n placeImage,\r\n placeInput,\r\n placeSlider,\r\n hoverMe,\r\n placeRec,\r\n hiddenPt,\r\n fixedPt,\r\n clearInputFields,\r\n dragMe,\r\n placeArrow,\r\n placeGravity,\r\n placeText,\r\n placeLine,\r\n placePoint,\r\n placeGlider,\r\n placeRuler,\r\n placeLeftText,\r\n placeRightText,\r\n placeSliderSwitch,\r\n placeDash,\r\n placeCircle,\r\n placeLogo,\r\n placeShuffle,\r\n placeErase,\r\n placePlay,\r\n placePause,\r\n placeTest,\r\n cycle,\r\n writeMiddleText,\r\n writeLeftText,\r\n writeRightText,\r\n writeMiddleHTML,\r\n writeLeftHTML,\r\n writeRightHTML,\r\n placeGo,\r\n placeStartOver\r\n} from '../../Utils.js';\r\nconst Boxes = {\r\n box1: function(){\r\n var brd1 = JXG.JSXGraph.initBoard('jxgbox1',{boundingbox: [0, 6, 12, -6],\r\n keepaspectratio:true, axis:false, ticks:true, grid:true, showCopyright:false, showNavigation:false,pan:{enabled:false}, zoom:{enabled:false}});\r\n brd1.options.image.highlight=false;\r\n placeLogo(brd1);\r\n makeResponsive(brd1);\r\n var shuffle =placeShuffle(brd1,'left');\r\n var erase = placeErase(brd1);\r\n var list1=['Na', 'Ca', 'Al','Ti'];\r\n var list2=['NaCl', 'CaCl_2', 'AlCl_3','TiCl_4'];\r\n let Cl =[1, 2, 3, 4];\r\n var list=['Sodium', 'Calcium', 'Aluminum','Titanium'];\r\n var i=0;\r\n// shuffle.setLabel('    Shuffle')\r\n// shuffle.label.setAttribute({anchorX:'left', offset:[0, -15], CssStyle:'fontFamily:Oswald', fontSize:function(){return 12*brd1.canvasHeight/800}});\r\n // shuffle.on('over', function () {this.label.setAttribute({visible:true});});\r\n // shuffle.on('out', function () {this.label.setAttribute({visible:false});});\r\n //erase.on('down', function(){clearInputFields(brd1)});\r\n// erase.setLabel('    Start Over')\r\n// erase.label.setAttribute({anchorX:'left', offset:[0, -15], CssStyle:'fontFamily:Oswald', fontSize:function(){return 12*brd1.canvasHeight/800}});\r\n //\r\n let title =placeTitle(brd1, function(){return 'Chlorination of '+ list[i.valueOf()]}, \"(Enter the missing coefficients to balance the equation)\");\r\n//\r\n var Cmethane = brd1.create('input', [1.00, 3.5, '?', ' '], {cssStyle:'width:8.3333%;', fontSize:function(){return 24*brd1.canvasHeight/800}, fixed:true,parse:true});\r\n//\r\n brd1.create('text', [2.0, 3.5, function(){return ' ' + list1[i.valueOf()]+' +'}], {highlight:false, anchorX:'left', fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n //////////////////////////////////////////\r\n var Coxy = brd1.create('input', [3, 3.5, '?', ' '], {cssStyle: 'width:8.33333%;', fontSize:function(){return 24*brd1.canvasHeight/800}, fixed:true,parse:true});\r\n//\r\n brd1.create('text', [4, 3.5, '  HCl'], {highlight:false, fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('image',['/assets/random.svg', [5.75, 2.7], [1., 1]],{rotate:45, highlight:false, fixed:true});\r\n//\r\n var Ccotwo = brd1.create('input', [7, 3.5, '?', ' '], {cssStyle: 'width:8.333333%', fontSize:function(){return 24*brd1.canvasHeight/800}, fixed:true,parse:true});\r\n//\r\n brd1.create('text', [8, 3.5, ()=>' '+list2[i.valueOf()]+'+'], {highlight:false,fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n var Cwater = brd1.create('input', [9, 3.5, '?', ' '], {cssStyle: 'width:8.3333333333%;', fontSize:function(){return 24*brd1.canvasHeight/800}, fixed:true,parse:true});\r\n//\r\n brd1.create('text', [10, 3.5, '  H_2'], {highlight:false,fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('line', [[1, 2.],[5, 2.]], {highlight:false,strokeColor:'grey', strokeWidth:1,fixed:true});\r\n//\r\n brd1.create('line', [[1, 2.05],[5, 2.05]], {highlight:false,strokeColor:'grey', strokeWidth:1,fixed:true});\r\n//\r\n brd1.create('text', [2.5, 1.5, ' REACTANT SIDE'], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('text', [8.5, 1.5, ' PRODUCT SIDE '], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('line', [[1, 1.],[5, 1.]], {highlight:false,strokeColor:'grey', strokeWidth:1,fixed:true});\r\n//\r\n brd1.create('line', [[1, 1.05],[5, 1.05]], {highlight:false,strokeColor:'grey', strokeWidth:1, fixed:true});\r\n// REACTION SIDE\r\n brd1.create('text', [2.5, 0.5, function(){if(Cmethane.Value()=='?'){return '? Moles of '+list1[i.valueOf()]} else {return 1*Cmethane.Value() + ' Moles of '+list1[i.valueOf()]}}], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:\t'fontFamily:Oswald;'});\r\n//\r\n brd1.create('image', ['/assets/check.svg', [9.6, 0.1], [0.8,0.8]],{highlight:false, opacity:1, fixed:true, visible:function(){return 1*Ccotwo.Value()==(i.valueOf()+1)*Cmethane.Value() && 1*Cmethane.Value()>0} });\r\n//\r\n brd1.create('text', [2.5, -0.5, function(){if(Coxy.Value()=='?'){return '? Moles of Cl'} else {return 1*Coxy.Value() + ' Moles of Cl'}}], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('image', ['/assets/check.svg', [9.6, -0.9], [0.8,0.8]],{highlight:false, opacity:1, fixed:true, visible:function(){return 1*Coxy.Value() == 1*Ccotwo.Value()&& 1*Coxy.Value()>0} });\r\n//\r\n brd1.create('text', [2.5, -1.5, function(){if(Coxy.Value()=='?'){return '? Moles of '+list1[i.valueOf()]} else {return (1)*Coxy.Value() + ' Moles of H'}}], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('image', ['/assets/check.svg', [9.6, -1.9], [0.8,0.8]],{highlight:false, opacity:1, fixed:true, visible:function(){return 2*Cwater.Value() == 1*Coxy.Value()} });\r\n// PRODUCT SIDE\r\n brd1.create('text', [8.5, 0.5, function(){if(Ccotwo.Value()=='?'){return '? Moles of '+list1[i.valueOf()]} else{return 1*Ccotwo.Value() + ' Moles of '+list1[i.valueOf()]}}], {anchorX:'middle',highlight:false, anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('text', [8.5, -0.5, function(){if(Ccotwo.Value()=='?'){return '? Moles of Cl'} else{return Cl[i.valueOf()]*Ccotwo.Value()+ ' Moles of Cl'}}], {anchorX:'middle',highlight:false,anchorY:'middle',fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('text', [8.5, -1.5, function(){if(Cwater.Value()=='?'){return '? Moles of H'} else{ return 2*Cwater.Value() + ' Moles of H'}}], {anchorX:'middle',highlight:false,anchorY:'middle', fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n brd1.create('line', [[1, -2],[5, -2]], {highlight:false, strokeColor:'grey', strokeWidth:1, fixed:true});\r\n//\r\n brd1.create('line', [[1, -1.95],[5, -1.95]], {highlight:false, strokeColor:'grey', strokeWidth:1, fixed:true});\r\n //\r\n brd1.create('text', [6, -2.5,'Balanced or Not Balanced?'],{anchorX:'middle', anchorY:'middle', highlight:false,fixed:true, fontSize:function(){return 24*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n //\r\n var res = brd1.create('text', [6, -3.5, function(){if(1*Ccotwo.Value()== 1*Cmethane.Value() && 1*Coxy.Value() == Cl[i.valueOf()]*Ccotwo.Value() && 2*Cwater.Value() == 1*Coxy.Value()) {return 'The Equation is Now Balanced'} else {return 'The Equation is Not Yet Balanced'}}], {anchorX:'middle', anchorY:'middle', highlight:false,fontSize:function(){if(Cmethane.Value()==0){return 0} else{return 24*brd1.canvasHeight/800}}, cssStyle:'fontFamily:Oswald;', fixed:true});\r\n //\r\n shuffle.on('down', function(){return i=Math.floor(Math.random()*4)});\r\n shuffle.on('down', function(){\r\n let magicGraph = brd1.containerObj;\r\n let inputFields = magicGraph.querySelectorAll(\"input\");\r\n for (let inputField of inputFields) {\r\n inputField.value = \"?\";}\r\n });\r\n erase.on('down', function(){\r\n let magicGraph = brd1.containerObj;\r\n let inputFields = magicGraph.querySelectorAll(\"input\");\r\n for (let inputField of inputFields) {\r\n inputField.value = \"?\";}\r\n });\r\n // brd1.unsuspendUpdate();\r\n },\r\n}\r\nexport default Boxes;\r\n","\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Lesson.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Lesson.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Lesson.vue?vue&type=template&id=2bf93e7f&\"\nimport script from \"./Lesson.vue?vue&type=script&lang=js&\"\nexport * from \"./Lesson.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}