diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..dff1d1e
--- /dev/null
+++ b/src/index.html
@@ -0,0 +1,24 @@
+
+
+
+
+
The Mystery Spinner!
+
Try to spin a "1" - but beware, ye evil pirate matey is out to get ya!
+
I've painted ye spinner here with white paint. Ye won't know what ye will get!
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/script.js b/src/script.js
new file mode 100644
index 0000000..9ca3ff6
--- /dev/null
+++ b/src/script.js
@@ -0,0 +1,57 @@
+const spinner = document.getElementById("spinner");
+const resultdiv = document.getElementById("result");
+const spinButton = document.getElementById("spinButton");
+
+const emojis = ["🤑", "🥶", "🤢", "😈"];
+const evilMessages = ["Oop, try again matey!", "Ho ho ho!"];
+
+function generateSegments() {
+ spinner.innerHTML = "";
+ const numSegments = Math.floor(Math.random() * 5) + 6;
+ for (let i = 0; i < numSegments; i++) {
+ const segment = document.createElement("div");
+ segment.className = "spinner-segment";
+ const randomValue = Math.random();
+ segment.textContent =
+ randomValue < 0.2
+ ? emojis[Math.floor(Math.random() * emojis.length)]
+ : randomValue < 0.25
+ ? "1"
+ : Math.floor(Math.random() * 10) + 2;
+
+ segment.style.transform = `rotate(${(360 / numSegments) * i}deg)`;
+ segment.style.transform += ` translateY(-50%)`
+ //segment.innerHTML = `