Fixed clicked() scope

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