From c49870dd6bf9873a37450d878f40b5cb53d05b63 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Thu, 24 Mar 2016 15:57:36 -0400 Subject: [PATCH] Add link for gear icon to settings page --- src/entry/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/entry/index.js b/src/entry/index.js index e680aa1..135b2da 100644 --- a/src/entry/index.js +++ b/src/entry/index.js @@ -25,6 +25,8 @@ export function indexMain () { gn('topbar-moreapps').ontouchstart = indexMoreApps; gn('topbar-info').ontouchstart = indexInfo; + } else { + gn('gear').ontouchstart = indexGoSettings; } setTimeout(function () { @@ -100,6 +102,13 @@ function indexGohome () { } } +function indexGoSettings () { + // Switch to the settings selection page + // Triggered by tapping the gear icon in the top right + ScratchAudio.sndFX('tap.wav'); + window.location.href = 'home.html?place=gear'; +} + function indexGettingstarted () { ScratchAudio.sndFX('tap.wav'); window.location.href = 'gettingstarted.html?place=home';