Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
672 B
1
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Soundboard</title>
<style>
  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  img {
    width: 100px;
    margin: 10px;
    cursor: pointer;
  }
</style>
</head>
<body>

<div class="image-container">
  <!-- Image of confetti and hands -->
  <img src="confetti_and_hands.jpg" onclick="playSound('clapping_cheering.mp3')" alt="Confetti and Hands">
</div>

<script>
function playSound(soundFile) {
  var audio = new Audio(soundFile);
  audio.play();
}
</script>

</body>
</html>