Better structure for assets
This commit is contained in:
parent
6e8222dcd9
commit
7529684cd5
|
@ -1,4 +1,5 @@
|
||||||
import { Modal } from 'bootstrap';
|
import { Modal } from 'bootstrap';
|
||||||
|
import * as image from '../../images/ajax-loader.gif';
|
||||||
|
|
||||||
document.addEventListener("readystatechange", event => {
|
document.addEventListener("readystatechange", event => {
|
||||||
if(event.target.readyState === 'complete') {
|
if(event.target.readyState === 'complete') {
|
||||||
|
@ -28,6 +29,12 @@ function initRunNowButtons() {
|
||||||
let me = event.currentTarget;
|
let me = event.currentTarget;
|
||||||
let href = me.dataset.href;
|
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('.container-fluid').classList.add('blur');
|
||||||
document.querySelector('.runnow-overlay').classList.add('d-block');
|
document.querySelector('.runnow-overlay').classList.add('d-block');
|
||||||
document.querySelector('.runnow-overlay').classList.remove('d-none');
|
document.querySelector('.runnow-overlay').classList.remove('d-none');
|
|
@ -1,9 +1,9 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'icomoon';
|
font-family: 'icomoon';
|
||||||
src:
|
src:
|
||||||
url('fonts/icomoon.ttf?ov6ddj') format('truetype'),
|
url('../fonts/icomoon.ttf?ov6ddj') format('truetype'),
|
||||||
url('fonts/icomoon.woff?ov6ddj') format('woff'),
|
url('../fonts/icomoon.woff?ov6ddj') format('woff'),
|
||||||
url('fonts/icomoon.svg?ov6ddj#icomoon') format('svg');
|
url('../fonts/icomoon.svg?ov6ddj#icomoon') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: block;
|
font-display: block;
|
Loading…
Reference in New Issue