Files
perm/kodorvan/perm/system/public/js/pages/main.js

23 lines
546 B
JavaScript

"use strict";
import("../modules/hotline.mjs").then((module) => {
// Imported the hotline.mjs module
// Initializing an instance of the hotline.mjs
const instance = new module.hotline(document.getElementById("wrap"));
// Initializing settings of the hotline instance
instance.alive = true;
instance.wheel = false;
instance.delta = 3;
instance.step = -0.5;
// Starting the hotline instance
instance.start();
});
document.addEventListener('dragstart', function(event) {
event.preventDefault();
return false;
});