From c05093748896549fb5b20d7e60d52c6e91587d42 Mon Sep 17 00:00:00 2001 From: poni Date: Thu, 8 Apr 2021 16:28:11 +0200 Subject: [PATCH] fdfdfsdf --- canvas.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/canvas.js b/canvas.js index 1cb7447..1afa0d0 100644 --- a/canvas.js +++ b/canvas.js @@ -7,11 +7,6 @@ return Math.floor(Math.random() * (max - min) + min); }; function openWindow(c) { - //if /* if we're on iOS, open in Apple Maps */ - // ((navigator.platform.indexOf("iPhone") != -1) || - // (navigator.platform.indexOf("iPad") != -1) || - // (navigator.platform.indexOf("iPod") != -1)) - // window.open(`maps://http://www.google.com/maps/place/${c}`, "_self"); else /* else use Google */ window.open(`http://www.google.com/maps/place/${c}`, "_self"); } @@ -64,7 +59,8 @@ let sou = SOU[x][y]; var HOTSPOT = { names: ["Hotspot name:\nPLACE NOT FOUND", "Hotspot name:\nLOBSTER LOUNGE", "Hotspot name:\nTHE SECRET GARDEN", "Hotspot name:\nSONIC THE SELLOUT", "Hotspot name:\nPIGEON PLAZA"], - coord: ["52.07242636201861,\n4.311324269227487","52.07494151159389,\n4.311367399049404","52.073236822099176,\n4.314598358985356","52.07642086169303,\n4.3083705464802105","52.07863969677628,\n4.304184010905719"], + coord: ["52.07242636201861,\n4.311324269227487","52.07494151159389,\n4.311367399049404","52.073236822099176,\n4.314598358985356","52.07642086169303,\n4.3083705464802105","52.07863969677628,\n4.304184010905719"], + url: ["coordinates/pnf.html",'cooordinates/lobster.html','coordinates/garden.html','coordinates/sonic.html','coordinates/pigeon.html'] }; @@ -477,7 +473,11 @@ function pong() { fill(0); if(mouseReleased){ - openWindow(coord); + setTimeout(function() { + + openWindow(coord); + + }, 5000 ); } }