master
poni 4 years ago
parent c050937488
commit 393be62cde

@ -7,7 +7,7 @@ return Math.floor(Math.random() * (max - min) + min);
};
function openWindow(c) {
window.open(`http://www.google.com/maps/place/${c}`, "_self");
window.open(`http://www.google.com/maps/place/${c}`,'_top');
}
var x = randomNumber(null,5);
@ -20,7 +20,7 @@ console.log(x)
function preload() {
footsteps = document.getElementById("footsteps");//walking
footsteps = document.getElementById("footsteps");//walking
PNF1 = document.getElementById("PNF1");
PNF2 = document.getElementById("PNF2");
LOBS1 = document.getElementById("LOBS1");
@ -253,6 +253,8 @@ function mouseReleased(){
capture = false;
}
function mouseClicked(){
// console.log('mouseClicked');
}
@ -471,13 +473,15 @@ function pong() {
textSize(width/17);
text(coord , width/2, height/2);
fill(0);
if(mouseReleased){
setTimeout(function() {
setTimeout(function() {
openWindow(coord);
}, 5000 );
}, 3000 );
}
}

Loading…
Cancel
Save