diff --git a/apps/home/static/home/js/modals.js b/apps/home/static/home/js/modals.js new file mode 100644 index 0000000..2d6d476 --- /dev/null +++ b/apps/home/static/home/js/modals.js @@ -0,0 +1,85 @@ + +const validateBootstrapStyle = style => { + if (!["danger", "success", "warning", "info", "primary", "secondary"].includes(style)) { + throw new Error(`${style} is not a valid style`); + } + return true; +} + + +const arrayToHtmlList = (array, bold=false) => { + $ul = $("