{"id":21397063,"url":"https://github.com/chiedev/volume-calculator","last_synced_at":"2025-07-17T12:35:06.622Z","repository":{"id":57226481,"uuid":"282278400","full_name":"chiedev/volume-calculator","owner":"chiedev","description":"Epoxy Resin volume calculator","archived":false,"fork":false,"pushed_at":"2020-08-03T20:26:56.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-19T10:17:36.065Z","etag":null,"topics":["calculator","volume"],"latest_commit_sha":null,"homepage":"https://chiedev.github.io/volume-calculator","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chiedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-24T17:24:24.000Z","updated_at":"2020-08-03T20:26:59.000Z","dependencies_parsed_at":"2022-08-24T11:01:03.869Z","dependency_job_id":null,"html_url":"https://github.com/chiedev/volume-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chiedev/volume-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiedev%2Fvolume-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiedev%2Fvolume-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiedev%2Fvolume-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiedev%2Fvolume-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chiedev","download_url":"https://codeload.github.com/chiedev/volume-calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiedev%2Fvolume-calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265606817,"owners_count":23797012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","volume"],"created_at":"2024-11-22T14:32:21.882Z","updated_at":"2025-07-17T12:35:06.608Z","avatar_url":"https://github.com/chiedev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Epoxy Resin Volume Calculator\nAdd the script to generate the volume calculator, preferably on footer section inside the \u003ccode\u003e\u0026lt;body\u0026gt;\u003c/code\u003e tag:\n(external js file)\n```\n\u003cscript type=\"text/javascript\" src=\"./index.js\"\u003e\u003c/script\u003e\n```\nor (inline js)\n```\n\u003cscript type=\"text/javascript\"\u003econst calculatorHTML='\\n\u003cstyle\u003e\\n.ERVcalculator {\\n background-color: #F6F6F6;\\n padding: 1em 2em 2em;\\n border-radius: .5em;\\n display: block;\\n opacity: .9;\\n max-width: 500px;\\n }\\n .ERVcalculator input {\\n max-width: 100px;\\n line-height: 2em;\\n }\\n .ERVcalculator input[disabled] {\\n background-color: transparent;\\n border: none;\\n font-size: 1.5em;\\n font-weight: 700;\\n display: inline-block;\\n }\\n .ERVcalculator label {\\n margin-bottom: .5em;\\n display: block;\\n }\\n .ERVcalculator label[for=output] {\\n margin-bottom: 0;\\n }\\n .ERVcalculator .inline-block {\\n max-width: 125px;\\n display: inline-block;\\n }\\n .ERVcalculator table {\\n width: 100%;\\n border-collapse: collapse;\\n margin: 1em auto 3em;\\n }\\n .ERVcalculator table tr td {\\n border-bottom: solid thin #333333;\\n height: 3em;\\n }\\n \u003c/style\u003e\\n\u003ch2\u003eEpoxy Resin Volume Calculator\u003c/h2\u003e\\n\u003ch4\u003eWhat are the dimensions of your project?\u003c/h4\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"length\"\u003eLength (in)\u003c/label\u003e\\n \u003cinput id=\"length\" type=\"number\" value=\"0\"\u003e\\n\u003c/div\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"width\"\u003eWidth (in)\u003c/label\u003e\\n \u003cinput id=\"width\" type=\"number\" value=\"0\"\u003e\\n\u003c/div\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"thickness\"\u003eThickness (in)\u003c/label\u003e\\n \u003cinput id=\"thickness\" type=\"number\" value=\"0\"\u003e\\n\u003c/div\u003e\\n\\n\u003ctable\u003e\\n \u003ctbody\u003e\\n \u003ctr\u003e\\n \u003ctd style=\"width: 100px;\"\u003e1/8\\'\\' = 0.125\u003c/td\u003e\\n \u003ctd style=\"width: 101px;\"\u003e1/4\\'\\' = 0.25\u003c/td\u003e\\n \u003ctd style=\"width: 103px;\"\u003e3/8\\'\\' = 0.375\u003c/td\u003e\\n \u003ctd style=\"width: 99px;\"\u003e1/2\\'\\' = 0.50\u003c/td\u003e\\n \u003c/tr\u003e\\n \u003ctr\u003e\\n \u003ctd style=\"width: 100px;\"\u003e5/8\\'\\' = 0.625\u003c/td\u003e\\n \u003ctd style=\"width: 101px;\"\u003e3/4\\'\\' = 0.75\u003c/td\u003e\\n \u003ctd style=\"width: 103px;\"\u003e7/8\\'\\' = 0.875\u003c/td\u003e\\n \u003ctd style=\"width: 99px;\"\u003e1\\'\\' = 1.00\u003c/td\u003e\\n \u003c/tr\u003e\\n \u003ctr\u003e\\n \u003ctd style=\"width: 100px;\" colspan=\"4\"\u003e\u003cem\u003e1/16\\'\\' or 0.0625 can be used for seal coats\u003c/em\u003e\u003c/td\u003e\\n \u003c/tr\u003e\\n \u003c/tbody\u003e\\n\u003c/table\u003e\\n\\n\u003ch4\u003eHere is the volume of your project\u003c/h4\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"output\"\u003eCubic Inches\u003c/label\u003e\\n \u003cinput id=\"cubicInches\" type=\"number\" disabled value=\"0\"\u003e\\n\u003c/div\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"output\"\u003eCubic Feet\u003c/label\u003e\\n \u003cinput id=\"cubicFeet\" type=\"number\" disabled value=\"0\"\u003e\\n\u003c/div\u003e\\n\\n\u003ch4\u003eHere is the amount of epoxy resin you will need\u003c/h4\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"output\"\u003eOunces\u003c/label\u003e\\n \u003cinput id=\"ounces\" type=\"number\" disabled value=\"0\"\u003e\\n\u003c/div\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"output\"\u003eLiters\u003c/label\u003e\\n \u003cinput id=\"liters\" type=\"number\" disabled value=\"0\"\u003e\\n\u003c/div\u003e\\n\u003cdiv class=\"inline-block\"\u003e\\n \u003clabel for=\"output\"\u003eGallons\u003c/label\u003e\\n \u003cinput id=\"gallons\" type=\"number\" disabled value=\"0\"\u003e\\n\u003c/div\u003e';document.getElementById(\"epoxyResinVolumeCalculator\").innerHTML=calculatorHTML;var cssId=\"ERVCalculator\";const vLength=document.getElementById(\"length\"),vWidth=document.getElementById(\"width\"),vThickness=document.getElementById(\"thickness\"),cubicInches=document.getElementById(\"cubicInches\"),cubicFeet=document.getElementById(\"cubicFeet\"),ounces=document.getElementById(\"ounces\"),liters=document.getElementById(\"liters\"),gallons=document.getElementById(\"gallons\"),volume_array=[vLength,vWidth,vThickness];for(let e=0;e\u003c=volume_array.length-1;e++)volume_array[e].addEventListener(\"keyup\",e=\u003e{cubicInches.value=!0===Number.isInteger(vLength.value*vWidth.value*vThickness.value)?vLength.value*vWidth.value*vThickness.value:(vLength.value*vWidth.value*vThickness.value).toFixed(2),cubicFeet.value=!0===Number.isInteger(cubicInches.value/1728)?cubicInches.value/1728:(cubicInches.value/1728).toFixed(2),ounces.value=!0===Number.isInteger(cubicInches.value/1.805)?cubicInches.value/1.805:(cubicInches.value/1.805).toFixed(2),liters.value=!0===Number.isInteger(cubicInches.value/61.024)?cubicInches.value/61.024:(cubicInches.value/61.024).toFixed(2),gallons.value=!0===Number.isInteger(cubicInches.value/231)?cubicInches.value/231:(cubicInches.value/231).toFixed(2)});\u003c/script\u003e\n```\nand then use this element as container:\n```\n\u003cdiv id=\"epoxyResinVolumeCalculator\" class=\"ERVcalculator\"\u003e\u003c/div\u003e\n```\n\nCheck the demo here: [Epoxy Resin Volume Calculator Demo](https://chiedev.github.io/volume-calculator/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiedev%2Fvolume-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiedev%2Fvolume-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiedev%2Fvolume-calculator/lists"}