|
|
|
@ -60,14 +60,15 @@ function draw() {
|
|
|
|
|
if (spinonoff==true){
|
|
|
|
|
rotate(currentSpinning);
|
|
|
|
|
|
|
|
|
|
currentSpinning = currentSpinning+10;
|
|
|
|
|
var speed=map(currentSpinning,0,2300,10,1);
|
|
|
|
|
currentSpinning = currentSpinning+speed;
|
|
|
|
|
console.log(spinning,currentSpinning);
|
|
|
|
|
if (currentSpinning > spinning){
|
|
|
|
|
currentSpinning = spinning;
|
|
|
|
|
card();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
image (img,0,0,windowWidth/2, windowWidth/2);
|
|
|
|
|
image (img,0,0,250,250);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
@ -93,6 +94,7 @@ function draw() {
|
|
|
|
|
<div id="popup">
|
|
|
|
|
<h3 id="popuptext"></h3>
|
|
|
|
|
<img class="slide" src="photohere.svg">
|
|
|
|
|
<br>
|
|
|
|
|
<button class="close" onclick="closepopup()" > Close</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|