-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+214 KB
...round face with large, friendly eyes, a small black nose, and a smiling expression. .webp
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
apps/ticklish teddy - free tier/Encoded_Cartoon_Foot_Image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Cute Teddy Bear</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
/* Replace 'FEATHER_IMAGE_DATA_URL' with your feather image data URL */ | ||
cursor: url('Resized_Cartoon_Feather_Transparent_Background.png') 16 16, auto; | ||
} | ||
#teddy { | ||
display: block; | ||
margin: 100px auto; | ||
max-width: 300px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<!-- Replace 'TEDDY_BEAR_IMAGE_DATA_URL' with your teddy bear image data URL --> | ||
<img id="teddy" src="xxx" alt="Cute Teddy Bear"> | ||
|
||
<!-- Replace 'GIGGLING_SOUND_DATA_URL' with your giggling sound data URL --> | ||
<audio id="giggling-sound" src="tickling_sound.wav"></audio> | ||
|
||
<script> | ||
var teddy = document.getElementById('teddy'); | ||
var giggleSound = document.getElementById('giggling-sound'); | ||
|
||
teddy.addEventListener('mouseover', function() { | ||
giggleSound.play(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Binary file added
BIN
+14.2 KB
apps/ticklish teddy - free tier/Resized_Cartoon_Feather_Transparent_Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Teddy Image</title> | ||
<style> | ||
#feather { | ||
position: absolute; | ||
pointer-events: none; /* Prevents the feather from interfering with clicks */ | ||
} | ||
</style> | ||
<script> | ||
function playAudio() { | ||
var audio = document.getElementById('audio'); | ||
audio.play(); | ||
} | ||
|
||
function moveFeather(event) { | ||
var feather = document.getElementById('feather'); | ||
feather.style.left = event.pageX + 'px'; | ||
feather.style.top = event.pageY + 'px'; | ||
} | ||
|
||
window.onload = function() { | ||
document.addEventListener('mousemove', moveFeather); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<h1>Teddy Image</h1> | ||
<img src="teddy.webp" alt="Teddy Bear" style="max-width: 100%; height: auto;" onclick="playAudio();"> | ||
<audio id="audio" src="giggling.mp3"></audio> | ||
<img id="feather" src="feather.png" alt="Feather" style="width: 50px; height: auto;"> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Cute Teddy Bear</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
/* Replace 'FEATHER_IMAGE_DATA_URL' with your feather image data URL */ | ||
cursor: url('feather.png') 128 128, auto; | ||
} | ||
#teddy { | ||
display: block; | ||
margin: 100px auto; | ||
width: 50%; /* Adjust percentage as needed */ | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<!-- Replace 'TEDDY_BEAR_IMAGE_DATA_URL' with your teddy bear image data URL --> | ||
<img id="teddy" src="teddy.webp" alt="Cute Teddy Bear"> | ||
|
||
<!-- Replace 'GIGGLING_SOUND_DATA_URL' with your giggling sound data URL --> | ||
<audio id="giggling-sound" src="242930__obxjohn__child-laughing.mp3"></audio> | ||
|
||
<script> | ||
var teddy = document.getElementById('teddy'); | ||
var giggleSound = document.getElementById('giggling-sound'); | ||
|
||
teddy.addEventListener('click', function() { | ||
giggleSound.play(); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
apps/ticklish teddy - free tier/teddy_bear_display (1).html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Image Display</title> | ||
</head> | ||
<body> | ||
<h1>Cartoon-Style Teddy Bear</h1> | ||
<img src="DALL·E 2024-10-10 14.25.22 - A cartoon-style teddy bear standing upright. The teddy bear has a round face with large, friendly eyes, a small black nose, and a smiling expression..webp" alt="Teddy Bear" style="max-width: 100%; height: auto;"> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Interactive Teddy Bear with Feather</title> | ||
<style> | ||
#feather { | ||
position: absolute; | ||
pointer-events: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Click the Teddy Bear to Hear a Giggle!</h1> | ||
<img src="https://th.bing.com/th/id/OIG3.ssy5cD7ZaajYVxe7KI0_?pid=ImgGn" alt="Cartoon Teddy Bear" id="teddy" style="cursor: pointer;"> | ||
<img src="feather.png" alt="Feather" id="feather"> | ||
<audio id="giggle-sound" src="giggling.mp3" preload="auto"></audio> | ||
|
||
<script> | ||
document.getElementById('teddy').addEventListener('click', function() { | ||
document.getElementById('giggle-sound').play(); | ||
}); | ||
|
||
document.addEventListener('mousemove', function(e) { | ||
var feather = document.getElementById('feather'); | ||
feather.style.left = e.pageX + 'px'; | ||
feather.style.top = e.pageY + 'px'; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Water Balloon Game</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
overflow: hidden; | ||
background-color: #87CEEB; /* Sky blue background */ | ||
} | ||
|
||
#game-container { | ||
position: relative; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
|
||
.flower { | ||
position: absolute; | ||
bottom: 20px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 50px; | ||
height: 50px; | ||
background-color: green; | ||
border-radius: 50%; | ||
transition: all 0.5s; | ||
} | ||
|
||
.balloon { | ||
position: absolute; | ||
bottom: 100%; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 30px; | ||
height: 50px; | ||
background-color: red; | ||
border-radius: 15px 15px 0 0; | ||
transition: bottom 0.1s; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="game-container"> | ||
<div id="flower" class="flower"></div> | ||
<div id="balloon" class="balloon"></div> | ||
</div> | ||
<script> | ||
const balloon = document.getElementById('balloon'); | ||
const flower = document.getElementById('flower'); | ||
let balloonFallInterval; | ||
|
||
function startGame() { | ||
balloon.style.left = `${Math.random() * 100}vw`; | ||
balloon.style.bottom = '100%'; | ||
balloonFallInterval = setInterval(dropBalloon, 20); | ||
} | ||
|
||
function dropBalloon() { | ||
const balloonBottom = parseFloat(getComputedStyle(balloon).bottom); | ||
const flowerBottom = parseFloat(getComputedStyle(flower).bottom); | ||
|
||
if (balloonBottom <= flowerBottom + 50) { // Check for hit | ||
clearInterval(balloonFallInterval); | ||
hitFlower(); | ||
setTimeout(startGame, 1000); // Start new balloon after delay | ||
} else if (balloonBottom >= window.innerHeight) { | ||
clearInterval(balloonFallInterval); | ||
missFlower(); | ||
setTimeout(startGame, 1000); // Start new balloon after delay | ||
} else { | ||
balloon.style.bottom = `${balloonBottom - 2}px`; // Balloon falls | ||
} | ||
} | ||
|
||
function hitFlower() { | ||
flower.style.transform = 'scale(1.2)'; | ||
flower.style.backgroundColor = randomColor(); | ||
} | ||
|
||
function missFlower() { | ||
flower.style.transform = 'scale(0.8)'; | ||
flower.style.backgroundColor = 'gray'; | ||
} | ||
|
||
function randomColor() { | ||
const letters = '0123456789ABCDEF'; | ||
let color = '#'; | ||
for (let i = 0; i < 6; i++) { | ||
color += letters[Math.floor(Math.random() * 16)]; | ||
} | ||
return color; | ||
} | ||
|
||
// Start the game | ||
startGame(); | ||
</script> | ||
</body> | ||
</html> |