;\n};\n\nconst setROI = (value: number) =\u003E {\n const asText = (value * 100).toFixed(2);\n document.querySelector(\"#roi\")!.textContent = `${asText} %`;\n};\n\nconst showResults = () =\u003E {\n document.querySelector(\"#results\")!.classList.remove(\"d-none\");\n};\n\nconst validateForm = () =\u003E {\n document.querySelector(\"#month-notice\")!.classList.add(\"d-none\");\n\n const form = document.querySelector\u003CHTMLFormElement\u003E(\"#form\")!;\n form.reportValidity();\n return form.checkValidity();\n};\n\nconst invalidMonthRange = () =\u003E {\n document.querySelector(\"#month-notice\")!.classList.remove(\"d-none\");\n};\n\nconst submit = async (e: Event) =\u003E {\n e.preventDefault();\n await calculate();\n};\n\nconst submitOnEnter = async (e: Event) =\u003E {\n const kbdEvent = e as KeyboardEvent;\n if (kbdEvent.key === \"Enter\") {\n await submit(e);\n }\n};\n\ndocument.querySelector(\"#cta\")!.addEventListener(\"click\", submit);\ndocument.querySelector(\"#amount\")!.addEventListener(\"keyup\", submitOnEnter);\ndocument.querySelector(\"#month\")!.addEventListener(\"keyup\", submitOnEnter);\n","id":"3e80ae7b-653d-4797-909f-7db6cad9c078","is_binary":false,"title":"index.ts","sha":null,"inserted_at":"2021-01-06T18:43:12","updated_at":"2021-01-06T21:54:08","upload_id":null,"shortid":"wRo98","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","directory_shortid":"GXOoy"},{"code":"\u003Chtml\u003E\n \u003Chead\u003E\n \u003Ctitle\u003EParcel Sandbox\u003C\u002Ftitle\u003E\n \u003Cmeta charset=\"UTF-8\" \u002F\u003E\n \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003E\n\n \u003Clink rel=\"stylesheet\" href=\".\u002Fsrc\u002Fstyles.scss\" \u002F\u003E\n \u003Clink\n rel=\"stylesheet\"\n href=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fbootstrap@4.5.3\u002Fdist\u002Fcss\u002Fbootstrap.min.css\"\n integrity=\"sha384-TX8t27EcRE3e\u002FihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2\"\n crossorigin=\"anonymous\"\n \u002F\u003E\n \u003Cscript\n src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fbootstrap@4.5.3\u002Fdist\u002Fjs\u002Fbootstrap.bundle.min.js\"\n integrity=\"sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ\u002FJpcUGGOn+Y7RsweNrtN\u002FtE3MoK7ZeZDyx\"\n crossorigin=\"anonymous\"\n \u003E\u003C\u002Fscript\u003E\n \u003C\u002Fhead\u003E\n\n \u003Cbody\u003E\n \u003Cdiv id=\"app\" class=\"container\"\u003E\n \u003Cform id=\"form\" class=\"text-form\"\u003E\n What your returns would be if you have invested\n\n \u003Cdiv class=\"d-inline-block\"\u003E\n \u003Cdiv class=\"input-group\"\u003E\n \u003Cinput\n id=\"amount\"\n class=\"form-control\"\n type=\"number\"\n\t\t\t\t\t\t\tplaceholder=\"100\"\n\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\tmin=0\n \u002F\u003E\n \u003Cdiv class=\"input-group-append\"\u003E\n \u003Cspan class=\"input-group-text\"\u003E$\u003C\u002Fspan\u003E\n \u003C\u002Fdiv\u003E\n \u003C\u002Fdiv\u003E\n \u003C\u002Fdiv\u003E\n\n in Bitcoin on\n \u003Cinput\n id=\"month\"\n class=\"form-control d-inline-block\"\n type=\"text\"\n\t\t\t\t\tplaceholder=\"MM\u002FYY\"\n\t\t\t\t\trequired\n pattern=\"(0\\d|10|11|12)\\\u002F\\d{2}\"\n \u002F\u003E\n\t\t\t\u003C\u002Fdiv\u003E\n\t\t\t\n\t\t\t\u003Cdiv id=\"month-notice\" class=\"text-center mt-3 d-none\"\u003E\n\t\t\t\t\u003Csmall\u003EWe have data only from 08\u002F14 to 01\u002F21.\u003C\u002Fsmall\u003E\n\t\t\t\u003C\u002Fdiv\u003E\n\n \u003Cdiv class=\"text-center mt-3\"\u003E\n \u003Cbutton id=\"cta\" class=\"btn btn-lg btn-primary text-uppercase\"\u003E\n Calculate\n \u003C\u002Fbutton\u003E\n\t\t\t\u003C\u002Fdiv\u003E\n\n \u003Cdiv id=\"results\" class=\"results text-center mt-4 d-none\"\u003E\n \u003Cp class=\"result\"\u003E\n \u003Cspan\u003EGross Profit (before taxes and fees):\u003C\u002Fspan\u003E\n \u003Cspan id=\"gross-profit\"\u003E--- $\u003C\u002Fspan\u003E\n \u003C\u002Fp\u003E\n\n \u003Cp class=\"result\"\u003E\n \u003Cspan\u003EROI (return on investment):\u003C\u002Fspan\u003E\n \u003Cspan id=\"roi\"\u003E--- %\u003C\u002Fspan\u003E\n\t\t\t\t\u003C\u002Fp\u003E\n\t\t\t\t\n\t\t\t\t\u003Cdiv class=\"disclaimer text-muted mt-5 mx-auto\"\u003E\n\t\t\t\t\t\u003Csmall\u003E\n\t\t\t\t\t\tDisclaimer: Author’s opinions are their own and do not constitute financial advice in any way whatsoever. Nothing published by IlonaCodes constitutes an investment recommendation, nor should any data or content published by IlonaCodes be relied upon for any investment activities.\n\t\t\t\t\t\u003C\u002Fsmall\u003E\n\t\t\t\t\u003C\u002Fdiv\u003E\n \u003C\u002Fdiv\u003E\n \u003C\u002Fdiv\u003E\n\n \u003Cscript src=\"src\u002Findex.ts\"\u003E\u003C\u002Fscript\u003E\n \u003C\u002Fbody\u003E\n\u003C\u002Fhtml\u003E\n","id":"0d7b1034-8cab-4238-8a1a-9d1500737488","is_binary":false,"title":"index.html","sha":null,"inserted_at":"2021-01-06T18:43:12","updated_at":"2021-01-06T23:04:56","upload_id":null,"shortid":"MWN4P","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","directory_shortid":null}],"ai_consent":false,"alias":"serene-hertz-l53fx","npm_dependencies":{"react":"16.0.0","react-dom":"16.0.0"},"feature_flags":{"comments":false,"container_lsp":false},"source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","custom_template":null,"npm_registries":[],"room_id":null,"screenshot_url":"https:\u002F\u002Fscreenshots.codesandbox.io\u002Fl53fx\u002F247.png","inserted_at":"2021-01-06T18:43:12","authorization":"read","view_count":14221,"directories":[{"id":"4ab7bf37-7691-4583-935e-4822e81e3189","title":"src","inserted_at":"2021-01-06T18:43:12","updated_at":"2018-11-03T13:47:47","shortid":"GXOoy","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","directory_shortid":null},{"id":"8a0ac5a4-37c2-40a3-b6bb-3e4a6d64cabe","title":".codesandbox","inserted_at":"2021-01-06T18:43:12","updated_at":"2020-11-11T15:01:31","shortid":"SJzR2dFtv","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","directory_shortid":null}],"id":"l53fx","entry":"src\u002Findex.js","draft":true,"external_resources":[],"always_on":false,"updated_at":"2021-01-06T23:04:56","team":{"id":"73e33d5e-f95d-4fb6-adf9-14debec09581","name":"ilonacodes","settings":{"ai_consent":{"public_sandboxes":false,"private_sandboxes":false}},"subscription_type":null,"avatar_url":null},"template":"parcel","tags":[],"is_frozen":false,"settings":{"ai_consent":null},"base_git":null,"picks":[]};