game name #27

Merged
suvo merged 1 commits from b4 into master 2024-10-19 07:36:01 +00:00
11 changed files with 22 additions and 11 deletions

View File

@ -105,12 +105,13 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let totalPoints = 0;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let wrongCount = 0;
let starValue;
let maxStarValue = 5;

View File

@ -123,10 +123,11 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let totalPoints = 0;
let wrongCount = 0;
let starValue;

View File

@ -105,11 +105,12 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let totalPoints = 0;
let wrongCount = 0;
let starValue;

View File

@ -118,11 +118,12 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let wrongCount = 0;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let maxPoint = 9;
let starValue;
let totalPoints = 0;

View File

@ -93,13 +93,14 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let totalPoints = 0;
let starValue;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let maxStarValue = 5;
let progress = 0;
const progressBar = document.createElement('div');

View File

@ -117,6 +117,7 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let wrongCount = 0;
@ -124,7 +125,7 @@ import Layout from "../../layouts/Layout.astro";
let totalPoints = 0;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let maxStarValue = 5;
let progress = 0;
const progressBar = document.createElement('div');

View File

@ -141,10 +141,11 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let wrongCount = 0;
let starValue;
let totalPoints = 0;

View File

@ -99,12 +99,13 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let starValue;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let totalPoints = 0;
let maxStarValue = 5;
let progress = 0;

View File

@ -114,12 +114,13 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let totalPoints = 0;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let wrongCount = 0;
let starValue;
let maxStarValue = 5;

View File

@ -140,12 +140,13 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let wrongCount = 0;
let starValue;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let maxStarValue = 5;
let progress = 0;
const progressBar = document.createElement('div');

View File

@ -99,12 +99,13 @@ import Layout from "../../layouts/Layout.astro";
const params = new URLSearchParams(window.location.search);
const gameId = params.get('id');
const userId = params.get('userId');
const gameName = params.get('gameName');
let startTime = Date.now();
let gameData = null;
let starValue;
let url = window.location.href;
let urlSplit = url.split('/');
let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
// let gameName = urlSplit[3] + '-' + urlSplit[4].split('?')[0];
let totalPoints = 0;
let maxStarValue = 5;
let progress = 0;