Автор настоятельно сука рекомендует создать собственный файл например handlers.js и писать там всё что душе угодится.
These functions already have their own pre-built JS events. You can use onclick functions which start together with scripts in order to do extra actions. Usage of them is simple enough and it's here:
features.sound.onclick = function (tap) {
console.log("Sound has been turned " + tap);
}
features.lang.onclick = function (tap) {
console.log("Language has been switched to " + tap);
}
The timer is initiated by Initiate() function. It handles 3 possible arguments to be passed: seconds, minutes, hours.
features.timer.initiate({
seconds: 14,
hours: 2,
minutes: 6,
});
Before you can start using the wheel it's needed to be intiated via init() function like that:
features.wheel.init();
To "choose a winner" function win() definitely helps you. It will be spinning to certain id and for your additional convenience it will change the data at the proper moment.
features.wheel.win({
id: 14,
skin: {
image: "https://standoffcase.ru/img/hFRns34E7g-Screenshot_8.jpg",
title: "Skin бомжа",
},
});
Yeah you can reload wheel like for Sound or Language
features.wheel.reopen.onclick = function () {
console.log("The wheel has been reopenned");
}
You also can get promises to handle somehow else
console.log("Timer", features.timer.promise);
console.log("Wheel", features.wheel.promise);