mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-25 06:30:13 -05:00
Fixed clicked() scope
This commit is contained in:
@@ -140,14 +140,14 @@
|
|||||||
$(element).attr("title", title.join("\n"));
|
$(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>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user