diff --git a/js/tabler.js b/js/tabler.js index 0c657a92f..eec276a38 100644 --- a/js/tabler.js +++ b/js/tabler.js @@ -2,7 +2,7 @@ import {Dropdown, Tooltip, Popover} from 'bootstrap'; import 'popper.js'; -// import {CountUp} from "countup.js"; +import {CountUp} from "countup.js"; (function () { /** @@ -34,9 +34,10 @@ import 'popper.js'; /* CountUp */ - // let countupTriggerList = [].slice.call(document.querySelectorAll("[data-countup]")); - // countupTriggerList.map(function (countupTriggerEl) { - // let dataCountUp = JSON.parse(countupTriggerEl.getAttribute("data-countup")); - // return (new CountUp(countupTriggerEl, parseFloat(countupTriggerEl.innerText), dataCountUp)).start(); - // }); + let countupTriggerList = [].slice.call(document.querySelectorAll("[data-countup]")); + countupTriggerList.map(function (countupTriggerEl) { + let dataCountUp; + if(countupTriggerEl.getAttribute("data-countup") != "") dataCountUp = JSON.parse(countupTriggerEl.getAttribute("data-countup")); + return (new CountUp(countupTriggerEl, parseFloat(countupTriggerEl.innerText), dataCountUp)).start(); + }); })(); \ No newline at end of file diff --git a/pages/_includes/layout/homepage.html b/pages/_includes/layout/homepage.html index c5cf18841..b0c791c80 100644 --- a/pages/_includes/layout/homepage.html +++ b/pages/_includes/layout/homepage.html @@ -35,13 +35,13 @@ {% include cards/project-summary.html title="UI Redesign" date="11 Nov 2019" stage="Final review" avatar-limit=3 avatar-offset=9 project-color="green" value=80 percentage-color="green" %} -
+
{% include cards/small-stats-3.html number=43 title="New Tickets" percentage=6 %}
-
+
{% include cards/small-stats-3.html number=95 number-prefix="$" title="Daily Earnings" percentage=-2 %}
-
+
{% include cards/small-stats-3.html number=7 title="New Replies" percentage=9 %}