game name

This commit is contained in:
Suvodip
2024-10-19 13:05:21 +05:30
parent ff80faaf7d
commit fb3ef37bad
11 changed files with 22 additions and 11 deletions

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;