|
|
|
@ -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);
|
|
|
|
@ -253,6 +253,8 @@ function mouseReleased(){
|
|
|
|
|
capture = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseClicked(){
|
|
|
|
|
// console.log('mouseClicked');
|
|
|
|
|
}
|
|
|
|
@ -472,12 +474,14 @@ function pong() {
|
|
|
|
|
text(coord , width/2, height/2);
|
|
|
|
|
fill(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mouseReleased){
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
|
|
|
|
|
openWindow(coord);
|
|
|
|
|
|
|
|
|
|
}, 5000 );
|
|
|
|
|
}, 3000 );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|