From a43b7e1d37c235899e7fc073c06e29dff5d793f0 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 5 Sep 2020 17:37:11 -0600 Subject: [PATCH] Wire up the "change pack" button --- index.html | 4 +++- js/main.js | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1f59fb2..baea0bc 100644 --- a/index.html +++ b/index.html @@ -22,8 +22,10 @@

Chip's Challenge Level Pack 1

diff --git a/js/main.js b/js/main.js index 5d4c71e..f19b83d 100644 --- a/js/main.js +++ b/js/main.js @@ -1809,12 +1809,19 @@ class Conductor { } ev.target.blur(); }); + document.querySelector('#main-change-pack').addEventListener('click', ev => { + // TODO confirm + this.switch_to_splash(); + }); + /* + * FIXME restore, "return to editor" is bad text though document.querySelector('#player-edit').addEventListener('click', ev => { // TODO should be able to jump to editor if we started in the // player too! but should disable score tracking and have a revert // button this.switch_to_editor(); }); + */ this.update_nav_buttons(); this.switch_to_splash();