pull/23/head
parent
d2a1edd333
commit
575967a8db
|
@ -19,8 +19,13 @@ if(gameType[0] == "guided-tracing"){
|
||||||
gameVersion = gameType[0].split('?')[0];
|
gameVersion = gameType[0].split('?')[0];
|
||||||
gameId = gameName[4];
|
gameId = gameName[4];
|
||||||
console.log('Type - 1');
|
console.log('Type - 1');
|
||||||
} else if(gameName.length == 5){
|
|
||||||
gameVersion = gameName[3];
|
} else if(gameName.length == 4){
|
||||||
|
gameVersion = gameName[3].split('?')[0];
|
||||||
|
gameId = urlParams.get('id');
|
||||||
|
}
|
||||||
|
else if(gameName.length == 5){
|
||||||
|
gameVersion = gameName[3] + '-' + gameName[4].split('?')[0];
|
||||||
gameId = urlParams.get('id');
|
gameId = urlParams.get('id');
|
||||||
console.log('Type - 2');
|
console.log('Type - 2');
|
||||||
}else if(gameName.length == 6){
|
}else if(gameName.length == 6){
|
||||||
|
@ -29,7 +34,7 @@ if(gameType[0] == "guided-tracing"){
|
||||||
console.log('Type - 3');
|
console.log('Type - 3');
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(gameType[0])
|
console.log(gameVersion)
|
||||||
|
|
||||||
function submitUserData(drawingZone) {
|
function submitUserData(drawingZone) {
|
||||||
const endTime = Date.now();
|
const endTime = Date.now();
|
||||||
|
|
|
@ -31,7 +31,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
let formattedDateTime;
|
let formattedDateTime;
|
||||||
let shortUniqueID;
|
let shortUniqueID;
|
||||||
let scoreTotal = 0;
|
let scoreTotal = 0;
|
||||||
|
let maxScore;
|
||||||
if(isMobile){
|
if(isMobile){
|
||||||
topLogoWidth = 4.5;
|
topLogoWidth = 4.5;
|
||||||
muteIconWidth = 1.8;
|
muteIconWidth = 1.8;
|
||||||
|
|
|
@ -31,6 +31,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
let formattedDateTime;
|
let formattedDateTime;
|
||||||
let shortUniqueID;
|
let shortUniqueID;
|
||||||
let scoreTotal = 0;
|
let scoreTotal = 0;
|
||||||
|
let maxScore;
|
||||||
if(isMobile){
|
if(isMobile){
|
||||||
topLogoWidth = 4.5;
|
topLogoWidth = 4.5;
|
||||||
muteIconWidth = 1.8;
|
muteIconWidth = 1.8;
|
||||||
|
|
|
@ -35,6 +35,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
let noticeHeight;
|
let noticeHeight;
|
||||||
let muteIcon;
|
let muteIcon;
|
||||||
let retryButton;
|
let retryButton;
|
||||||
|
let maxScore;
|
||||||
if(isMobile){
|
if(isMobile){
|
||||||
topLogoWidth = 4.5;
|
topLogoWidth = 4.5;
|
||||||
muteIconWidth = 1.8;
|
muteIconWidth = 1.8;
|
||||||
|
|
|
@ -39,7 +39,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
let image2Bottom;
|
let image2Bottom;
|
||||||
let noticeWidth;
|
let noticeWidth;
|
||||||
let noticeHeight;
|
let noticeHeight;
|
||||||
|
let maxScore;
|
||||||
if(isMobile){
|
if(isMobile){
|
||||||
topLogoWidth = 4.5;
|
topLogoWidth = 4.5;
|
||||||
muteIconWidth = 1.8;
|
muteIconWidth = 1.8;
|
||||||
|
|
|
@ -31,6 +31,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
let resetIconWidth;
|
let resetIconWidth;
|
||||||
let tickIconWidth;
|
let tickIconWidth;
|
||||||
let cancelIconWidth;
|
let cancelIconWidth;
|
||||||
|
let maxScore;
|
||||||
|
|
||||||
if(isMobile){
|
if(isMobile){
|
||||||
topLogoWidth = 4.5;
|
topLogoWidth = 4.5;
|
||||||
|
|
Loading…
Reference in New Issue