Better structure for assets

This commit is contained in:
Jeroen De Meerleer 2021-08-02 13:57:36 +02:00
parent 6e8222dcd9
commit 7529684cd5
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
10 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import { Modal } from 'bootstrap';
import * as image from '../../images/ajax-loader.gif';
document.addEventListener("readystatechange", event => {
if(event.target.readyState === 'complete') {
@ -28,6 +29,12 @@ function initRunNowButtons() {
let me = event.currentTarget;
let href = me.dataset.href;
let runnowCnt = document.querySelector('.runnow-content');
if(runnowCnt.querySelector('img') === null) {
let loaderImg = document.createElement('img');
loaderImg.src = image.default;
runnowCnt.appendChild(loaderImg);
}
document.querySelector('.container-fluid').classList.add('blur');
document.querySelector('.runnow-overlay').classList.add('d-block');
document.querySelector('.runnow-overlay').classList.remove('d-none');

View File

@ -1,9 +1,9 @@
@font-face {
font-family: 'icomoon';
src:
url('fonts/icomoon.ttf?ov6ddj') format('truetype'),
url('fonts/icomoon.woff?ov6ddj') format('woff'),
url('fonts/icomoon.svg?ov6ddj#icomoon') format('svg');
url('../fonts/icomoon.ttf?ov6ddj') format('truetype'),
url('../fonts/icomoon.woff?ov6ddj') format('woff'),
url('../fonts/icomoon.svg?ov6ddj#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;