text: (this["webpackJsonpmy-app"]=this["webpackJsonpmy-app"]||[]).push([[0],{13:function(e,t,n){},14:function(e,t,n){},15:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(3),i=n.n(r),l=(n(13),n(4)),c=n(5),s=n(1),u=n(7),p=n(6),m=(n(14),function(e){Object(u.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(l.a)(this,n),(a=t.call(this)).state={tempC:0,tempF:32},a.handleChange=a.handleChange.bind(Object(s.a)(a)),a}return Object(c.a)(n,[{key:"handleChange",value:function(e){"tempFset"===e.target.name&&(console.log("tempFSet"),this.setState({tempF:e.target.value,tempC:5*(e.target.value-32)/9})),"tempCset"===e.target.name&&(console.log("tempCSet"),this.setState({tempC:e.target.value,tempF:9*e.target.value/5+32}))}},{key:"render",value:function(){return o.a.createElement("div",{className:"App"},"Ex1: US\u5358\u4f4d\u3068\u30e1\u30c8\u30ea\u30c3\u30af\u306e\u5909\u63db",o.a.createElement("hr",null)," ",o.a.createElement("input",{type:"number",name:"tempFset",value:this.state.tempF,onInput:this.handleChange})," F",o.a.createElement("br",null),o.a.createElement("input",{type:"number",name:"tempCset",value:this.state.tempC,onInput:this.handleChange})," C",o.a.createElement("br",null),o.a.createElement("span",null,o.a.createElement("center",null,-200,"(C)\xa0",o.a.createElement("input",{type:"range",name:"tempCset",min:-200,max:300,value:this.state.tempC,onChange:this.handleChange})," ",300,"(C)")),o.a.createElement("hr",null))}}]),n}(o.a.Component)),h=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function d(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}i.a.render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(m,null),o.a.createElement(m,null)),document.getElementById("root")),function(e){if("serviceWorker"in navigator){if(new URL("/classExamples/tempConversion",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("/classExamples/tempConversion","/service-worker.js");h?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var a=n.headers.get("content-type");404===n.status||null!=a&&-1===a.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):d(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA")}))):d(t,e)}))}}()},8:function(e,t,n){e.exports=n(15)}},[[8,1,2]]]);
  //# sourceMappingURL=main.57e45796.chunk.js.map