Fixed clicked() scope

This commit is contained in:
Kaan Soral
2023-12-11 21:25:22 +03:00
parent 0211b44c63
commit d82f8abcf6
+7 -7
View File
@@ -140,14 +140,14 @@
$(element).attr("title", title.join("\n"));
}
var mode = "alert";
function clicked(x, y) {
if (mode == "alert") alert(x + "," + y);
else {
$(".element" + x + y).attr("class", "clickable element" + x + y + " rotate" + mode);
}
}
});
var mode = "alert";
function clicked(x, y) {
if (mode == "alert") alert(x + "," + y);
else {
$(".element" + x + y).attr("class", "clickable element" + x + y + " rotate" + mode);
}
}
</script>
</head>
<body>