diff --git a/js/app/layout-manager.js b/js/app/layout-manager.js new file mode 100644 index 0000000000000000000000000000000000000000..82fadee5f5b1a88edea3648077373a01a06cbf15 --- /dev/null +++ b/js/app/layout-manager.js @@ -0,0 +1,19 @@ +'use strict'; + +class TablerLayoutManager { + static init() { + this.elem = document.getElementById('layout-manager'); + + if(this.elem) { + this.renderHtml(); + } + } + + static renderHtml() { + this.elem.innerHTML = 'test'; + } +} + +document.addEventListener("DOMContentLoaded", function() { + TablerLayoutManager.init(); +}); diff --git a/pages/_includes/layout/homepage.html b/pages/_includes/layout/homepage.html index 8648bfbea78822d4d11e1566446b5e57aa6ebcd0..82cb423df4336c79107dcd472b576fbb51cd33b8 100644 --- a/pages/_includes/layout/homepage.html +++ b/pages/_includes/layout/homepage.html @@ -102,13 +102,13 @@ {% include cards/small-stats-3.html number=621 title="Products" percentage=-1 %} -
+
{% include cards/charts/card.html name="temperature" title="A" height=12 %}
-
+
{% include cards/charts/card.html name="donut" title="B" height=12 %}
-
+
{% include cards/charts/card.html name="pie" title="C" height=12 %}
diff --git a/pages/_includes/layout/js.html b/pages/_includes/layout/js.html index fe79495c46dc4c882c409fad3c21409607f36ec6..9ff61a6bed3f56ebd41becb7e1006c45e8b22b9f 100644 --- a/pages/_includes/layout/js.html +++ b/pages/_includes/layout/js.html @@ -10,6 +10,7 @@ +