mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-17 19:31:27 -05:00
Fixed clicked() scope
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user