kopia lustrzana https://github.com/backface/turtlestitch
Cloud #signup URL switch
adding #signup to the URL directly opens the cloud signup dialog. http://snap.berkeley.edu/snapsource/snap.html#signuppull/3/merge
rodzic
78ab4de381
commit
f593f67d50
7
gui.js
7
gui.js
|
@ -233,6 +233,8 @@ IDE_Morph.prototype.openIn = function (world) {
|
||||||
} else if (location.hash.substr(0, 6) === '#lang:') {
|
} else if (location.hash.substr(0, 6) === '#lang:') {
|
||||||
this.setLanguage(location.hash.substr(6));
|
this.setLanguage(location.hash.substr(6));
|
||||||
this.newProject();
|
this.newProject();
|
||||||
|
} else if (location.hash.substr(0, 7) === '#signup') {
|
||||||
|
this.createCloudAccount();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2860,6 +2862,11 @@ IDE_Morph.prototype.initializeCloud = function () {
|
||||||
IDE_Morph.prototype.createCloudAccount = function () {
|
IDE_Morph.prototype.createCloudAccount = function () {
|
||||||
var myself = this,
|
var myself = this,
|
||||||
world = this.world();
|
world = this.world();
|
||||||
|
/*
|
||||||
|
// force-logout, commented out for now:
|
||||||
|
delete localStorage['-snap-user'];
|
||||||
|
SnapCloud.clear();
|
||||||
|
*/
|
||||||
new DialogBoxMorph(
|
new DialogBoxMorph(
|
||||||
null,
|
null,
|
||||||
function (user) {
|
function (user) {
|
||||||
|
|
|
@ -1528,3 +1528,4 @@ ______
|
||||||
------
|
------
|
||||||
* GUI, Blocks, BYOB, Widgets: Scaling Blocks and Scripts (shift-click on settings menu)
|
* GUI, Blocks, BYOB, Widgets: Scaling Blocks and Scripts (shift-click on settings menu)
|
||||||
* Widets: numerical prompts
|
* Widets: numerical prompts
|
||||||
|
* GUI: #signup URL switch
|
|
@ -7,7 +7,7 @@ saving, loading, exporting, importing
|
||||||
|
|
||||||
artefacts: projects, blocks, sprites
|
artefacts: projects, blocks, sprites
|
||||||
|
|
||||||
URL options: #run: #open:
|
URL options: #run: #open: #lang: #signup
|
||||||
|
|
||||||
supported browsers, problems with the Android virtual keyboard
|
supported browsers, problems with the Android virtual keyboard
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue