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