From d82f8abcf64a3c78a01484ba92812d1d158da5e8 Mon Sep 17 00:00:00 2001 From: Kaan Soral Date: Mon, 11 Dec 2023 21:25:22 +0300 Subject: [PATCH] Fixed clicked() scope --- utility/htmls/imagesets/selector.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utility/htmls/imagesets/selector.html b/utility/htmls/imagesets/selector.html index 6ecae67..dc6ea79 100644 --- a/utility/htmls/imagesets/selector.html +++ b/utility/htmls/imagesets/selector.html @@ -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); + } + }