c
This commit is contained in:
@@ -147,9 +147,9 @@ body: JSON.stringify('Test submission')
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
console.log('Data Saved', response);
|
||||
// console.log('Data Saved', response);
|
||||
} else {
|
||||
console.log('Something Wrong', response);
|
||||
// console.log('Something Wrong', response);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('An error occurred', error);
|
||||
@@ -162,7 +162,7 @@ backgroundColor: '#05b3a4',
|
||||
});
|
||||
submitButton.setVisible(true);
|
||||
submitButton.setInteractive().on('pointerdown', () => {
|
||||
console.log('Clicked');
|
||||
// console.log('Clicked');
|
||||
});
|
||||
// this.add.image(displayW / 2, displayH / 2, "bg").setScale(2.4);
|
||||
this.add.image(displayW / 6, 30, "topMatch").setScale();
|
||||
|
||||
@@ -339,9 +339,9 @@ import Layout from '../../layouts/Layout.astro';
|
||||
})
|
||||
.then(response => {
|
||||
if(response.ok){
|
||||
console.log('Data Saved', response)
|
||||
// console.log('Data Saved', response)
|
||||
} else{
|
||||
console.log('Something Wrong', response)
|
||||
// console.log('Something Wrong', response)
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -522,7 +522,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||
if(counter === 4){
|
||||
const overlap = document.getElementById("overlap");
|
||||
overlap.style.display = "block";
|
||||
console.log(counter)
|
||||
// console.log(counter)
|
||||
submitButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -399,9 +399,9 @@ import Layout from '../../layouts/Layout.astro';
|
||||
})
|
||||
.then(response => {
|
||||
if(response.ok){
|
||||
console.log('Data Saved', response)
|
||||
// console.log('Data Saved', response)
|
||||
} else{
|
||||
console.log('Something Wrong', response)
|
||||
// console.log('Something Wrong', response)
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -609,7 +609,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||
if(counter === 8){
|
||||
const overlap = document.getElementById("overlap");
|
||||
overlap.style.display = "block";
|
||||
console.log(counter)
|
||||
// console.log(counter)
|
||||
submitButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,16 +306,16 @@ import Layout from '../../layouts/Layout.astro';
|
||||
// this.add.text(displayW / 14 - 15, 50, data.LearningArea, {font: `20px`}).setTint(0x7c4c23);
|
||||
// this.add.text(displayW / 14 - 15, 70, data.LearningSubArea_copy, {font: `19px`}).setTint(0x7c4c23);
|
||||
// Left Image Name
|
||||
// this.add.text(displayW / 14 - 15, 240, data.left_image1_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW / 14 - 15, 409, data.left_image2_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW / 14 - 15, 579, data.left_image3_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW / 14 - 15, 750, data.left_image4_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW / 14 - 15, 240, data.left_image1_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW / 14 - 15, 409, data.left_image2_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW / 14 - 15, 579, data.left_image3_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW / 14 - 15, 750, data.left_image4_name).setTint(0x7c4c23);
|
||||
|
||||
// //Right Image Name
|
||||
// this.add.text(displayW * 0.9-80, 240, data.right_image1_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW * 0.9-80, 409, data.right_image2_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW * 0.9-80, 579, data.right_image3_name).setTint(0x7c4c23);
|
||||
// this.add.text(displayW * 0.9-80, 750, data.right_image4_name).setTint(0x7c4c23);
|
||||
//Right Image Name
|
||||
this.add.text(displayW * 0.9-80, 240, data.right_image1_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW * 0.9-80, 409, data.right_image2_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW * 0.9-80, 579, data.right_image3_name).setTint(0x7c4c23);
|
||||
this.add.text(displayW * 0.9-80, 750, data.right_image4_name).setTint(0x7c4c23);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching initial data:', error);
|
||||
@@ -339,9 +339,9 @@ import Layout from '../../layouts/Layout.astro';
|
||||
})
|
||||
.then(response => {
|
||||
if(response.ok){
|
||||
console.log('Data Saved', response)
|
||||
// console.log('Data Saved', response)
|
||||
} else{
|
||||
console.log('Something Wrong', response)
|
||||
// console.log('Something Wrong', response)
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -567,7 +567,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||
if(counter === 4){
|
||||
const overlap = document.getElementById("overlap");
|
||||
overlap.style.display = "block";
|
||||
console.log(counter)
|
||||
// console.log(counter)
|
||||
submitButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -390,9 +390,9 @@ import Layout from '../../layouts/Layout.astro';
|
||||
})
|
||||
.then(response => {
|
||||
if(response.ok){
|
||||
console.log('Data Saved', response)
|
||||
// console.log('Data Saved', response)
|
||||
} else{
|
||||
console.log('Something Wrong', response)
|
||||
// console.log('Something Wrong', response)
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -568,7 +568,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||
if(counter === 8){
|
||||
const overlap = document.getElementById("overlap");
|
||||
overlap.style.display = "block";
|
||||
console.log(counter)
|
||||
// console.log(counter)
|
||||
submitButton.setVisible(true);
|
||||
retryButton.setVisible(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user