Skip to content

Commit

Permalink
Ticklish teddy app
Browse files Browse the repository at this point in the history
  • Loading branch information
ToonTalk committed Sep 19, 2024
1 parent 9817c60 commit 77e7df8
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
Binary file not shown.
35 changes: 35 additions & 0 deletions apps/ticklish teddy/Encoded_Cartoon_Foot_Image.html
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>
36 changes: 36 additions & 0 deletions apps/ticklish teddy/index.html
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('Resized_Cartoon_Feather_Transparent_Background.png') 64 64, 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>

0 comments on commit 77e7df8

Please sign in to comment.