{"id":42781,"date":"2017-12-18T18:01:48","date_gmt":"2017-12-18T10:01:48","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=42781"},"modified":"2017-12-18T15:42:41","modified_gmt":"2017-12-18T07:42:41","slug":"jscalc-embeddable-calculator","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/","title":{"rendered":"Make a Free Embedded Web Calculator Using JSCalc"},"content":{"rendered":"<p>If there\u2019s one thing developers hate it\u2019s <strong>reinventing the wheel<\/strong>. This is one of the biggest reasons to <strong>support the <a href=\"https:\/\/www.hongkiat.com\/blog\/open-source-community-give-back\/\">open-source movement<\/a><\/strong> and to share your favorite web apps with other developers.<\/p>\n<p>I recently stumbled onto a neat web app called <strong><a href=\"https:\/\/jscalc.io\/\" target=\"_blank\">JSCalc<\/a><\/strong> that lets anyone <strong>create their own embeddable calculator widget from scratch<\/strong>. It runs through JavaScript so you <strong>do need to be comfortable <a href=\"https:\/\/www.hongkiat.com\/blog\/web-dev-youtube-channels\/\">with JS code<\/a><\/strong>. This web app can save you loads of time building fairly complex calculators from scratch.<\/p>\n<figure><a href=\"https:\/\/jscalc.io\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg\" alt=\"JSCalc homepage\" width=\"1000\" height=\"438\"><\/a><\/figure>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/useful-calendar-date-picker-scripts-for-web-developers\/\">Useful Calendar & Date Picker Scripts For Web Developers<\/a><\/p>\n<p>The difficult part of any calculator is <strong>rarely the math<\/strong>. You can find mathematical solutions for anything from mortgage rates to tax estimations, all from a few Google searches.<\/p>\n<p>The tougher part of building a JS calculator is <strong>hooking up all the inputs<\/strong> and <strong>handling user data properly<\/strong>. That\u2019s why JSCalc is so useful.<\/p>\n<p>You can <strong>build a fully-functioning web form with a few clicks<\/strong> and connect it all to JavaScript functions. The app has <strong>three different tabs<\/strong>:<\/p>\n<ol>\n<li><strong>IO<\/strong> \u2013 creating the input fields & output data<\/li>\n<li><strong>Script<\/strong> \u2013 writing the actual calculations in JavaScript<\/li>\n<li><strong>Share<\/strong> \u2013 embed code for your site or a URL for direct linking<\/li>\n<\/ol>\n<p>When embedding the calculator, you can choose <strong>how large to make the form<\/strong> and <strong>how it should appear on the site<\/strong>.<\/p>\n<p>Every form created by JSCalc is <strong><a href=\"https:\/\/www.hongkiat.com\/blog\/responsive-for-mobile-screens\/\">fully responsive<\/a><\/strong>, so you don\u2019t need to worry about mobile users.<\/p>\n<p>And, did I mention this app is <strong>totally open-source<\/strong>? You can find the source code <a href=\"https:\/\/github.com\/ivan7237d\/jscalc\" target=\"_blank\" rel=\"nofollow\">on GitHub<\/a> if you wanna tinker with it or even host your own version.<\/p>\n<p>Definitely a unique web app for developers who want a quick & easy way to <strong>create calc forms without coding everything from scratch<\/strong>.<\/p>\n<p>To learn more, <strong>check out the <a href=\"https:\/\/jscalc.io\/\" target=\"_blank\">main JSCalc site<\/a><\/strong> or <strong>watch the <a href=\"https:\/\/www.youtube.com\/watch?v=bLIiqTTu8eo\" target=\"_blank\" rel=\"nofollow\">demo video<\/a><\/strong> to see how this thing works in action.<\/p>\n<p class=\"video-19by6\"><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/bLIiqTTu8eo\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>","protected":false},"excerpt":{"rendered":"<p>If there\u2019s one thing developers hate it\u2019s reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your favorite web apps with other developers. I recently stumbled onto a neat web app called JSCalc that lets anyone create their own embeddable calculator widget from scratch. It runs&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[4117],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Make a Free Embedded Web Calculator Using JSCalc - Hongkiat<\/title>\n<meta name=\"description\" content=\"If there&#039;s one thing developers hate it&#039;s reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Make a Free Embedded Web Calculator Using JSCalc\" \/>\n<meta property=\"og:description\" content=\"If there&#039;s one thing developers hate it&#039;s reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-18T10:01:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Make a Free Embedded Web Calculator Using JSCalc\",\"datePublished\":\"2017-12-18T10:01:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/\"},\"wordCount\":325,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jscalc-embeddable-calculator\\\/01-jscalc-calculator.jpg\",\"keywords\":[\"Javascripts\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/\",\"name\":\"Make a Free Embedded Web Calculator Using JSCalc - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jscalc-embeddable-calculator\\\/01-jscalc-calculator.jpg\",\"datePublished\":\"2017-12-18T10:01:48+00:00\",\"description\":\"If there's one thing developers hate it's reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jscalc-embeddable-calculator\\\/01-jscalc-calculator.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jscalc-embeddable-calculator\\\/01-jscalc-calculator.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jscalc-embeddable-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make a Free Embedded Web Calculator Using JSCalc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Make a Free Embedded Web Calculator Using JSCalc - Hongkiat","description":"If there's one thing developers hate it's reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Make a Free Embedded Web Calculator Using JSCalc","og_description":"If there's one thing developers hate it's reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your","og_url":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-12-18T10:01:48+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Make a Free Embedded Web Calculator Using JSCalc","datePublished":"2017-12-18T10:01:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/"},"wordCount":325,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg","keywords":["Javascripts"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/","url":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/","name":"Make a Free Embedded Web Calculator Using JSCalc - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg","datePublished":"2017-12-18T10:01:48+00:00","description":"If there's one thing developers hate it's reinventing the wheel. This is one of the biggest reasons to support the open-source movement and to share your","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/jscalc-embeddable-calculator\/01-jscalc-calculator.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/jscalc-embeddable-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Make a Free Embedded Web Calculator Using JSCalc"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-b81","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/42781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=42781"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/42781\/revisions"}],"predecessor-version":[{"id":46609,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/42781\/revisions\/46609"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=42781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=42781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=42781"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=42781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}