{"size": 1923, "ext": "js", "max_stars_repo_path": "2/main/build/static/js/main.89bed134.chunk.js", "max_stars_repo_name": "Michal3456/4bti", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "2/main/build/static/js/main.89bed134.chunk.js", "max_issues_repo_name": "Michal3456/4bti", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "2/main/build/static/js/main.89bed134.chunk.js", "max_forks_repo_name": "Michal3456/4bti", "max_forks_repo_forks_event_min_datetime": "2021-11-19T08:12:18.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-30T08:09:03.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 961.5, "max_line_length": 1875, "alphanum_fraction": 0.6822672907}
(this.webpackJsonpprojekt_bazy=this.webpackJsonpprojekt_bazy||[]).push([[0],{10:function(e,c,t){"use strict";t.r(c);var n=t(1),s=t.n(n),r=t(3),i=t.n(r),a=t(0);var j=function(){return Object(a.jsxs)(a.Fragment,{children:[Object(a.jsxs)("nav",{children:[Object(a.jsx)("h1",{children:"GPS Device Location"}),Object(a.jsxs)("div",{className:"link-cnt",children:[Object(a.jsx)("a",{href:"#",children:"Database"}),Object(a.jsx)("a",{href:"#",children:"Locate Device"}),Object(a.jsx)("a",{href:"#",children:"About Me"}),Object(a.jsx)("a",{href:"#",children:"Help"})]})]}),Object(a.jsxs)("form",{id:"dataForm",onSubmit:function(e){e.preventDefault();var c=new URLSearchParams(document.querySelector("#device").value);console.log(c),fetch("http://localhost:80/react/api/main.php",{method:"POST",body:c}).then((function(e){return e.text()})).then((function(e){console.log(e),document.querySelector(".result-cnt").innerHTML=e}))},children:[Object(a.jsx)("input",{type:"text",placeholder:"Input your device name here.",id:"device"}),Object(a.jsx)("button",{type:"submit",children:"Submit"})]}),Object(a.jsxs)("main",{children:[Object(a.jsx)("h2",{children:"Device Information:"}),Object(a.jsx)("div",{className:"result-cnt"}),Object(a.jsxs)("div",{className:"steps-cnt",children:[Object(a.jsxs)("div",{className:"circle active",children:[Object(a.jsx)("span",{children:"1"}),Object(a.jsx)("p",{children:"Read data form."})]}),Object(a.jsxs)("div",{className:"circle",children:[Object(a.jsx)("span",{children:"2"}),Object(a.jsx)("p",{children:"Search for device information in database"})]}),Object(a.jsxs)("div",{className:"circle",children:[Object(a.jsx)("span",{children:"3"}),Object(a.jsx)("p",{children:"Output the result"})]})]})]})]})};t(9);i.a.render(Object(a.jsx)(s.a.StrictMode,{children:Object(a.jsx)(j,{})}),document.getElementById("root"))},9:function(e,c,t){}},[[10,1,2]]]);
//# sourceMappingURL=main.89bed134.chunk.js.map