summaryrefslogtreecommitdiff
path: root/frontend/_wasm/intro/intro.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/_wasm/intro/intro.js')
-rw-r--r--frontend/_wasm/intro/intro.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/_wasm/intro/intro.js b/frontend/_wasm/intro/intro.js
new file mode 100644
index 0000000..37d5faf
--- /dev/null
+++ b/frontend/_wasm/intro/intro.js
@@ -0,0 +1,19 @@
+/// <reference path="../scripts/jquery-3.5.1.min.js"/>
+
+(function() {
+
+ function main() {
+ $('#wasm_canvas_play_button').on('click', function() {
+ $(this).hide();
+ $("#wasm_canvas_stop_button").show();
+ });
+
+ $('#wasm_canvas_stop_button').on('click', function() {
+ $(this).hide();
+ $("#wasm_canvas_play_button").show();
+ });
+ }
+
+ $(document).ready(main);
+
+})()