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

@@ -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;