diff --git a/src/pages/cross/index.astro b/src/pages/cross/v1.astro
similarity index 100%
rename from src/pages/cross/index.astro
rename to src/pages/cross/v1.astro
diff --git a/src/pages/drag/index.astro b/src/pages/drag/index.astro
index 4f9e038..b0713a3 100644
--- a/src/pages/drag/index.astro
+++ b/src/pages/drag/index.astro
@@ -145,7 +145,7 @@ import Layout from '../../layouts/Layout.astro';
var assetsList = {}
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- const data = fetch(`https://management.beanstalkedu.com/items/game_drag/${encodeURIComponent(paramsID)}`)
+ const data = fetch(`https://game-du.teachertrainingkolkata.in/items/game_drag/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({data}) => {
const {left_image1, left_image2, left_image3, left_image4, right_image1, right_image2, right_image3, right_image4} = data;
@@ -154,7 +154,7 @@ import Layout from '../../layouts/Layout.astro';
} else{
imageCustomWidth = "?width=100";
}
- const assetsURL = "https://management.beanstalkedu.com/assets/"
+ const assetsURL = "https://game-du.teachertrainingkolkata.in/assets/"
assetsList.left_image1 = assetsURL + left_image1 + imageCustomWidth;
assetsList.left_image2 = assetsURL + left_image2 + imageCustomWidth;
assetsList.left_image3 = assetsURL + left_image3 + imageCustomWidth;
@@ -290,7 +290,7 @@ import Layout from '../../layouts/Layout.astro';
create() {
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- fetch(`https://management.beanstalkedu.com/items/game_drag/${encodeURIComponent(paramsID)}`)
+ fetch(`https://game-du.teachertrainingkolkata.in/items/game_drag/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({ data }) => {
// console.log(data)
diff --git a/src/pages/drawing/index.astro b/src/pages/drawing/index.astro
index 0e75e62..67db276 100644
--- a/src/pages/drawing/index.astro
+++ b/src/pages/drawing/index.astro
@@ -61,7 +61,7 @@ import Layout from '../../layouts/Layout.astro';
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- const data = fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing/${encodeURIComponent(paramsID)}`)
+ const data = fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({data}) => {
console.log(data)
@@ -112,7 +112,7 @@ import Layout from '../../layouts/Layout.astro';
function create() {
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing/${encodeURIComponent(paramsID)}`)
+ fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({ data }) => {
// console.log(data.colors)
diff --git a/src/pages/drawing/v2.astro b/src/pages/drawing/v2.astro
index b162770..182aa28 100644
--- a/src/pages/drawing/v2.astro
+++ b/src/pages/drawing/v2.astro
@@ -74,7 +74,7 @@ import Layout from '../../layouts/Layout.astro';
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- const data = fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing_v2/${encodeURIComponent(paramsID)}`)
+ const data = fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing_v2/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({data}) => {
colorList = data.colors;
@@ -129,7 +129,7 @@ import Layout from '../../layouts/Layout.astro';
function create() {
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing_v2/${encodeURIComponent(paramsID)}`)
+ fetch(`https://game-du.teachertrainingkolkata.in/items/game_drawing_v2/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(response => response.json())
.then(({ data }) => {
// console.log(data.colors)
@@ -319,7 +319,7 @@ import Layout from '../../layouts/Layout.astro';
// Create the Eraser button
const eraserButton = document.createElement('button');
// eraserButton.textContent = 'Eraser';
- eraserButton.innerHTML = ' ';
+ eraserButton.innerHTML = '';
eraserButton.style.color = 'blue';
eraserButton.style.width = 'fit-content';
eraserButton.style.marginRight = '15px';
diff --git a/src/pages/tick/v1.astro b/src/pages/tick/v1.astro
index d8f94d0..5fb6d0c 100644
--- a/src/pages/tick/v1.astro
+++ b/src/pages/tick/v1.astro
@@ -72,7 +72,7 @@ import Layout from "../../layouts/Layout.astro";
const paramsID = params.get('id');
let gameData = null;
- fetch(`https://management.beanstalkedu.com/items/game_tick_variant1/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
+ fetch(`https://game-du.teachertrainingkolkata.in/items/game_tick_variant1/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(res => res.json())
.then(data => {
gameData = data.data;
@@ -99,7 +99,7 @@ import Layout from "../../layouts/Layout.astro";
document.getElementById('LearningArea').innerHTML = gameData.LearningArea;
document.getElementById('LearningSubArea_copy').innerHTML = gameData.LearningSubArea_copy;
- const assetsURL = 'https://management.beanstalkedu.com/assets/';
+ const assetsURL = 'https://game-du.teachertrainingkolkata.in/assets/';
for (let i = 1; i <= 6; i++) {
const imageId = `image${i}`;
document.getElementById(imageId).src = assetsURL + gameData[imageId];
diff --git a/src/pages/tick/v2.astro b/src/pages/tick/v2.astro
index 105b739..b8edd14 100644
--- a/src/pages/tick/v2.astro
+++ b/src/pages/tick/v2.astro
@@ -89,7 +89,7 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const paramsID = params.get('id');
- fetch(`https://management.beanstalkedu.com/items/game_tick_variant2/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
+ fetch(`https://game-du.teachertrainingkolkata.in/items/game_tick_variant2/${encodeURIComponent(paramsID)}?filter[status][_eq]=published`)
.then(res => res.json())
.then(data => {
gameData = data.data;
@@ -124,7 +124,7 @@ import Layout from "../../layouts/Layout.astro";
}
document.getElementById('LearningArea').innerHTML = gameData.LearningArea;
document.getElementById('LearningSubArea_copy').innerHTML = gameData.LearningSubArea_copy;
- const assetsURL = 'https://management.beanstalkedu.com/assets/';
+ const assetsURL = 'https://game-du.teachertrainingkolkata.in/assets/';
for (let i = 1; i <= 9; i++) {
const imageId = `image${i}`;
document.getElementById(imageId).src = assetsURL + gameData[imageId];