You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.5 KiB
HTML

<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--css-->
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Wheel of Fortune</title>
<!--P5.MIN.JS-->
<script src="p5.min.js" ></script>
<script>
console.log("hey there");
function preload(){
2 years ago
img=loadImage('wheel.svg')
}
function setup() {
2 years ago
createCanvas(windowWidth/2, windowHeight/2);
button = createButton("spin the wheel!");
button.position(windowWidth/2-250, windowHeight/2);
button.mousePressed(spin);
}
var spinning = 1;
var currentSpinning = 0;
function spin(){
spinning = 1800 + random(0,500);
currentSpinning = 0;
}
function card(){
rect(0, 0, 55, 55);
console.log("hey pop up here");
}
function draw() {
2 years ago
// background(220);
imageMode(CENTER);
angleMode(DEGREES);
2 years ago
translate (windowWidth/4, windowHeight/4);
rotate(currentSpinning);
image (img,0,0,200,200);
currentSpinning = currentSpinning+10;
if (currentSpinning > spinning){
currentSpinning = spinning;
card();
}
}
</script>
</head>
<body>
<div class="bg-image"></div>
<div class="bg-text">
<h1>Spin the Wheel of Fortune!</h1>
<p>Welcome, my dear!
<br>This exercise you are about to start revolves around healing, in a sense of reconnecting to what is essential and authentic about yourself. As we understand the true nature of our suffering, we can evoke compassion for ourselves as we move through our uncomfortable feelings on the path to healing and peace.
<br>Here are a few things I prepared for you before you begin:
<br>Have a strong sense of intention to commit to this exercise for some time.
<br>Find a quiet room, free of distraction.
<br>Get a notebook and a pen. Handwriting will engage your mind more actively and profoundly, help you connect with yourself, and enable the tracing of your progress over time.
<br>I will be guiding you through a series of carefully collected questions written by different authors, some well-known and others unknown. You begin the exercise by spinning the Wheel of Fortune you will find at https://issue.xpub.nl/20/wheel.
After a few seconds, a question appears on the screen. Then, you take a photo slide from the deck and try to thankful of an answer to that question by looking at it and the tiny film simultaneously.</p>
</div>
2 years ago
<img class="top-left-corner" src="crystals.svg">
</body>