add User Data save function

This commit is contained in:
dev sp
2023-12-06 13:23:07 +00:00
parent dfa0499ab0
commit 58b0779a9b
62 changed files with 3938 additions and 335 deletions

View File

@@ -63,12 +63,9 @@ import Layout from "../../layouts/Layout.astro";
startButtonWidth = customWidth / 2 - 100;
submitWidth = customWidth / 2 - 100;
submitHeight = customHeight / 1.1;
noticeWidth = 100;
noticeHeight = 0;
submitWidth = customWidth / 2 - 100;
submitHeight = customHeight / 1.1;
noticeWidth = 100;
noticeHeight = 0;
noticeWidth = window.innerWidth * 0.5 - 100;
noticeHeight = window.innerHeight * 0.85 - 0;
} else{
cloudeSize = 500;
cloudHeight = 250;
@@ -86,16 +83,12 @@ import Layout from "../../layouts/Layout.astro";
helpButtonHeight = customHeight / 2 + 40;
helpButtonWidth = customWidth / 1.32;
startButtonHeight = customHeight / 2 - 20;
startButtonHeight = customHeight / 2 - 20;
startButtonWidth = customWidth / 1.32;
submitWidth = customWidth / 1.32;
submitHeight = customHeight / 2 - 20;
noticeWidth = 0;
noticeHeight = 0;
submitWidth = customWidth / 1.32;
submitHeight = customHeight / 2 - 20;
noticeWidth = 0;
noticeHeight = 0;
noticeWidth = window.innerWidth * 0.5 - 120;
noticeHeight = window.innerHeight * 0.32;
}
window.onload = function() {
currentDate = new Date();
@@ -156,11 +149,11 @@ import Layout from "../../layouts/Layout.astro";
console.error('An error occured', error)
});
};
const submitNotic = this.add.text(window.innerWidth * 0.5 - noticeWidth, window.innerHeight * 0.85 - noticeHeight, 'Submitted Successfully', {
const submitNotic = this.add.text(noticeWidth, noticeHeight, 'Submitted Successfully', {
font: '600 20px Quicksand',
fill: 'blue'
}).setDepth(1);
submitNotic.setVisible(false);
submitNotic.setVisible(true);
submitButton = this.add.text(submitWidth, submitHeight, "Submit", {
font: '900 24px Quicksand',
fill: '#05b3a4',