mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Add link for gear icon to settings page
This commit is contained in:
parent
b9a232d90b
commit
c49870dd6b
1 changed files with 9 additions and 0 deletions
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue