|
|
@ -14,6 +14,24 @@
|
|
|
|
(async function() {
|
|
|
|
(async function() {
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Globally disable drag and drop
|
|
|
|
|
|
|
|
document.body.addEventListener(
|
|
|
|
|
|
|
|
'dragover',
|
|
|
|
|
|
|
|
e => {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
false
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
document.body.addEventListener(
|
|
|
|
|
|
|
|
'drop',
|
|
|
|
|
|
|
|
e => {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
false
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// Load these images now to ensure that they don't flicker on first use
|
|
|
|
// Load these images now to ensure that they don't flicker on first use
|
|
|
|
const images = [];
|
|
|
|
const images = [];
|
|
|
|
function preload(list) {
|
|
|
|
function preload(list) {
|
|
|
|