Add link for gear icon to settings page

This commit is contained in:
Tim Mickel 2016-03-24 15:57:36 -04:00
parent b9a232d90b
commit c49870dd6b

View file

@ -25,6 +25,8 @@ export function indexMain () {
gn('topbar-moreapps').ontouchstart = indexMoreApps; gn('topbar-moreapps').ontouchstart = indexMoreApps;
gn('topbar-info').ontouchstart = indexInfo; gn('topbar-info').ontouchstart = indexInfo;
} else {
gn('gear').ontouchstart = indexGoSettings;
} }
setTimeout(function () { 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 () { function indexGettingstarted () {
ScratchAudio.sndFX('tap.wav'); ScratchAudio.sndFX('tap.wav');
window.location.href = 'gettingstarted.html?place=home'; window.location.href = 'gettingstarted.html?place=home';