;\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}],"feature_flags":{"comments":false,"container_lsp":false},"template":"parcel","restricted":false,"room_id":null,"ai_consent":false,"settings":{"ai_consent":null},"is_frozen":false,"source_id":"8c00d545-73d9-4df0-b984-a8ba428e34c9","alias":"serene-hertz-l53fx","git":null,"pr_number":null,"title":null,"tags":[],"forked_template_sandbox":{"alias":"vanilla-typescript-vanilla-ts","id":"vanilla-ts","title":"Vanilla Typescript","template":"parcel","inserted_at":"2018-11-03T13:47:47","updated_at":"2024-02-01T08:08:51","git":null,"privacy":0,"custom_template":{"id":"0234566e-e325-4979-9dbb-67e74d044451","title":"Vanilla Typescript","color":"#dfb07a","v2":false,"url":null,"published":false,"icon_url":"TypeScriptIcon","official":false}},"forked_from_sandbox":{"alias":"magical-black-91rd6","id":"91rd6","title":null,"template":"parcel","inserted_at":"2021-01-06T18:37:12","updated_at":"2021-01-06T18:37:12","git":null,"privacy":0,"custom_template":null},"always_on":false,"privacy":0,"author":{"id":"324689eb-464d-4d0b-9fb8-e79d56c31ac1","name":"Ilona Codes","username":"ilonacodes","avatar_url":"https:\u002F\u002Favatars2.githubusercontent.com\u002Fu\u002F19243479?v=4","personal_workspace_id":"73e33d5e-f95d-4fb6-adf9-14debec09581","subscription_plan":null,"subscription_since":null},"id":"l53fx","v2":false,"preview_secret":null,"npm_registries":[],"external_resources":[],"owned":false,"picks":[],"collection":false,"view_count":14243,"team":{"id":"73e33d5e-f95d-4fb6-adf9-14debec09581","name":"ilonacodes","settings":{"ai_consent":{"public_sandboxes":false,"private_sandboxes":false}},"subscription_type":null,"avatar_url":null},"base_git":null,"permissions":{"prevent_sandbox_export":false,"prevent_sandbox_leaving":false},"custom_template":null,"original_git_commit_sha":null,"screenshot_url":"https:\u002F\u002Fscreenshots.codesandbox.io\u002Fl53fx\u002F247.png","is_sse":false,"original_git":null,"restrictions":{"free_plan_editing_restricted":false,"live_sessions_restricted":true},"authorization":"read"};