change post api endpoint
parent
38eccfedda
commit
8d077a6099
|
@ -138,7 +138,7 @@ console.error('Error fetching initial data:', error);
|
|||
const displayW = window.innerWidth;
|
||||
async; submitUserData(); {
|
||||
try {
|
||||
const response = await fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
const response = await fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
|
|
@ -324,13 +324,13 @@ import Layout from '../../layouts/Layout.astro';
|
|||
const URL = window.location.href;
|
||||
const gameName = URL.split('/');
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'drag@beanstalkedu.com',
|
||||
'game_name': gameName[3],
|
||||
'game_open': formattedDateTime,
|
||||
'user': 'drawing@beanstalkedu.com',
|
||||
'game_name': gameName[3],
|
||||
'starts': formattedDateTime,
|
||||
// 'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,13 +123,13 @@ import Layout from '../../layouts/Layout.astro';
|
|||
const URL = window.location.href;
|
||||
const gameName = URL.split('/');
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'drawing@beanstalkedu.com',
|
||||
'user': 'drawing@beanstalkedu.com',
|
||||
'game_name': gameName[3],
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
// 'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -128,15 +128,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -129,15 +129,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -126,15 +126,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -119,15 +119,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -119,15 +119,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -125,15 +125,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -119,15 +119,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -127,15 +127,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -119,15 +119,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -119,15 +119,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -125,15 +125,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -126,15 +126,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -121,15 +121,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -122,15 +122,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -120,15 +120,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -124,15 +124,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -123,15 +123,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -128,15 +128,14 @@ import Layout from "../../layouts/Layout.astro";
|
|||
const urlSplit = URL.split('/');
|
||||
const gameName = urlSplit[3] + '-' + urlSplit[4]
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'guided-tracing@beanstalkedu.com',
|
||||
'user': 'guided-tracing@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formattedDateTime,
|
||||
'starts': formattedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
console.log(userData)
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type' : 'application/json'
|
||||
|
|
|
@ -143,14 +143,13 @@ import Layout from "../../layouts/Layout.astro";
|
|||
console.log(checkboxValues)
|
||||
// Move the userData object creation inside the saveUserData function if needed
|
||||
let userData = {
|
||||
'status': 'published',
|
||||
'user_id': 'tick-v1@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formatedDateTime,
|
||||
'tick_result': checkboxValues,
|
||||
'user': 'tick-v1@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'starts': formatedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
@ -301,7 +300,7 @@ import Layout from "../../layouts/Layout.astro";
|
|||
'game_open': formatedDateTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
|
|
@ -169,14 +169,13 @@ import Layout from "../../layouts/Layout.astro";
|
|||
a9: document.getElementById('a9').checked,
|
||||
};
|
||||
let userData = {
|
||||
'status': 'published',
|
||||
'user_id': 'tick-v2@beanstalkedu.com',
|
||||
'user': 'tick-v2@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formatedDateTime,
|
||||
'tick_result': checkboxValues,
|
||||
'starts': formatedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
@ -343,7 +342,7 @@ import Layout from "../../layouts/Layout.astro";
|
|||
'game_open': formatedDateTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
|
Loading…
Reference in New Issue