diff --git a/web/src/_templates/app/css.php b/web/src/_templates/app/css.php new file mode 100644 index 0000000..43def72 --- /dev/null +++ b/web/src/_templates/app/css.php @@ -0,0 +1,7 @@ + diff --git a/web/src/_templates/app/header.php b/web/src/_templates/app/header.php index 9edfa54..be0c13d 100644 --- a/web/src/_templates/app/header.php +++ b/web/src/_templates/app/header.php @@ -11,6 +11,7 @@ + diff --git a/web/src/_templates/app/js.php b/web/src/_templates/app/js.php index 8d7d92c..e73655c 100644 --- a/web/src/_templates/app/js.php +++ b/web/src/_templates/app/js.php @@ -23,9 +23,4 @@ var app = { collapse_text_size: 80, }, }; -var cssprops = { - clr_quiz: '#0064ff', - content_max_width: '40em', - meet_actions_height: '6em', -}; diff --git a/web/src/app/js/base.js b/web/src/app/js/base.js index 14ea4a1..93a4b2a 100644 --- a/web/src/app/js/base.js +++ b/web/src/app/js/base.js @@ -397,15 +397,6 @@ window.addEventListener('load', function(e) { calcCustomCss(); }); -window.addEventListener('resize', function(e) { calcHeightMobile() }); -(function() { - if (window.cssprops !== undefined) { - const keys = Object.keys(window.cssprops); - for (var i in keys) { - const k = keys[i]; - document.querySelector(':root').style - .setProperty('--'+k, window.cssprops[k]); - } - window.cssprops = undefined; - } -})(); +window.addEventListener('resize', function(e) { + calcHeightMobile(); +}); diff --git a/web/src/app/js/pages/meet.js b/web/src/app/js/pages/meet.js index 66fb2f7..91ba2a2 100644 --- a/web/src/app/js/pages/meet.js +++ b/web/src/app/js/pages/meet.js @@ -25,6 +25,7 @@ app.pages.meet = { dom.innerHTML = app.template.fill({}, tpl); }); } + app.preload.home(); }); }, loadMore: function() {