|
|
@ -32,16 +32,15 @@ function percentagePosition(e, target) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener("click", (e) => {
|
|
|
|
window.addEventListener("click", (e) => {
|
|
|
|
placeSticker(e);
|
|
|
|
getInput(e);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener("touchstart", (e) => {
|
|
|
|
window.addEventListener("touchstart", (e) => {
|
|
|
|
placeSticker(e);
|
|
|
|
getInput(e);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function getInput(e) {
|
|
|
|
function getInput(e) {
|
|
|
|
placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);
|
|
|
|
placeSticker(percentagePosition(e, stickerContainer), infoList[loopIndex]);
|
|
|
|
|
|
|
|
|
|
|
|
// Cringe sorry
|
|
|
|
// Cringe sorry
|
|
|
|
if (loopIndex < infoList.length - 1) {
|
|
|
|
if (loopIndex < infoList.length - 1) {
|
|
|
|
loopIndex++;
|
|
|
|
loopIndex++;
|
|
|
|