Skip to content

Commit

Permalink
Add helper library
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffrySteegmans committed Dec 13, 2020
1 parent cd23e40 commit 66aea9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
<script src="js/script.js"></script>
<script src="/js/helpers.js"></script>
</head>

<body>
Expand Down
3 changes: 3 additions & 0 deletions js/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function formatEuro(value) {
return Math.round(value * 100) / 100;
}

0 comments on commit 66aea9c

Please sign in to comment.