Upload
This commit is contained in:
parent
8fe7dd3848
commit
54468aafa0
@ -153,7 +153,7 @@ events.prototype.gameOver = function (success, fromReplay) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var username = prompt("恭喜通关!请输入你的ID:");
|
var doUpload = function(username) {
|
||||||
if (username==null) username="";
|
if (username==null) username="";
|
||||||
|
|
||||||
// upload
|
// upload
|
||||||
@ -179,8 +179,15 @@ events.prototype.gameOver = function (success, fromReplay) {
|
|||||||
xhr.send(formData);
|
xhr.send(formData);
|
||||||
|
|
||||||
core.restart();
|
core.restart();
|
||||||
return;
|
}
|
||||||
|
|
||||||
|
core.drawConfirmBox("你想记录你的ID和成绩吗?", function () {
|
||||||
|
doUpload(prompt("请输入你的ID:"));
|
||||||
|
}, function () {
|
||||||
|
doUpload("");
|
||||||
|
})
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 下载录像
|
// 下载录像
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user