From 1e1e2ca1832b69e66795263a1f7a3c8ac45ac33b Mon Sep 17 00:00:00 2001 From: kicaj Date: Fri, 31 Jan 2020 08:37:48 +0100 Subject: [PATCH 1/2] Fixed for smaller viewport --- pages/_includes/layout/homepage.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 %}
From ac225344e5cc660a5a82e7a12a9e382c7473107b Mon Sep 17 00:00:00 2001 From: Dawid Harat Date: Fri, 31 Jan 2020 19:07:12 +0100 Subject: [PATCH 2/2] countup fix --- js/tabler.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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