;\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","directory_shortid":"GXOoy","id":"3e80ae7b-653d-4797-909f-7db6cad9c078","inserted_at":"2021-01-06T18:43:12","is_binary":false,"sha":null,"shortid":"wRo98","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","title":"index.ts","updated_at":"2021-01-06T21:54:08","upload_id":null},{"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","directory_shortid":null,"id":"0d7b1034-8cab-4238-8a1a-9d1500737488","inserted_at":"2021-01-06T18:43:12","is_binary":false,"sha":null,"shortid":"MWN4P","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","title":"index.html","updated_at":"2021-01-06T23:04:56","upload_id":null}],"user_liked":false,"owned":false,"directories":[{"directory_shortid":null,"id":"4ab7bf37-7691-4583-935e-4822e81e3189","inserted_at":"2021-01-06T18:43:12","shortid":"GXOoy","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","title":"src","updated_at":"2018-11-03T13:47:47"},{"directory_shortid":null,"id":"8a0ac5a4-37c2-40a3-b6bb-3e4a6d64cabe","inserted_at":"2021-01-06T18:43:12","shortid":"SJzR2dFtv","source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","title":".codesandbox","updated_at":"2020-11-11T15:01:31"}],"original_git":null,"picks":[],"like_count":0,"npm_registries":[],"external_resources":[],"custom_template":null,"is_frozen":false,"npm_dependencies":{"react":"16.0.0","react-dom":"16.0.0"},"git":null,"tags":[],"template":"parcel","authorization":"read","original_git_commit_sha":null,"pr_number":null,"preview_secret":null,"author":{"avatar_url":"https:\u002F\u002Favatars2.githubusercontent.com\u002Fu\u002F19243479?v=4","id":"324689eb-464d-4d0b-9fb8-e79d56c31ac1","name":"Ilona Codes","personal_workspace_id":"73e33d5e-f95d-4fb6-adf9-14debec09581","subscription_plan":null,"subscription_since":null,"username":"ilonacodes"},"title":null,"forked_template_sandbox":{"alias":"vanilla-typescript-vanilla-ts","custom_template":{"color":"#dfb07a","icon_url":"TypeScriptIcon","id":"0234566e-e325-4979-9dbb-67e74d044451","official":false,"published":true,"title":"Vanilla Typescript","url":null},"git":null,"id":"vanilla-ts","inserted_at":"2018-11-03T13:47:47","privacy":0,"template":"parcel","title":"Vanilla Typescript","updated_at":"2021-03-18T16:20:15"},"privacy":0,"feature_flags":{"comments":false,"container_lsp":false},"fork_count":0,"entry":"src\u002Findex.js","permissions":{"prevent_sandbox_export":false,"prevent_sandbox_leaving":false},"source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","alias":"serene-hertz-l53fx","team":{"avatar_url":null,"id":"73e33d5e-f95d-4fb6-adf9-14debec09581","name":"ilonacodes"},"forked_from_sandbox":{"alias":"magical-black-91rd6","custom_template":null,"git":null,"id":"91rd6","inserted_at":"2021-01-06T18:37:12","privacy":0,"template":"parcel","title":null,"updated_at":"2021-01-06T18:37:12"},"version":247,"updated_at":"2021-01-06T23:04:56","always_on":false,"inserted_at":"2021-01-06T18:43:12","base_git":null};