As Rodas Do Onibus
About this app
A fun and interactive app that allows you to sing along to the popular children's song 'As Rodas Do Onibus'.
As Rodas Do Onibus As Rodas Do Ônibus Play Pause
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>As Rodas Do Onibus</title>
<meta name="description" content="A fun and interactive app that allows you to sing along to the popular children's song 'As Rodas Do Onibus'.">
<meta name="keywords" content="As Rodas Do Onibus, children's song, sing along, interactive app">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Play the song and display the lyrics
var song = new Audio('https://example.com/song.mp3');
var lyrics = [
{ time: 0, text: "As rodas do ônibus giram, giram, giram" },
{ time: 2, text: "Giram, giram, giram" },
{ time: 4, text: "As rodas do ônibus giram, giram, giram" },
{ time: 6, text: "Giram, giram, giram" },
{ time: 8, text: "As rodas do ônibus giram, giram, giram" },
{ time: 10, text: "Giram, giram, giram" },
{ time: 12, text: "As rodas do ônibus giram, giram, giram" },
{ time: 14, text: "Giram, giram, giram" }
];
var lyricsContainer = document.getElementById("lyrics-container");
function displayLyrics() {
var currentTime = Math.floor(song.currentTime);
var currentLyric = lyrics.find(function(lyric) {
return lyric.time === currentTime;
});
if (currentLyric) {
lyricsContainer.textContent = currentLyric.text;
} else {
lyricsContainer.textContent = "";
}
}
song.addEventListener("timeupdate", displayLyrics);
$("#play-button").click(function() {
song.play();
});
$("#pause-button").click(function() {
song.pause();
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f8e71c;
color: #333333;
font-family: 'Open Sans', sans-serif;
}
h1 {
text-align: center;
padding: 20px 0;
}
.btn-container {
text-align: center;
margin-bottom: 20px;
}
.btn-container button {
margin: 5px;
}
#lyrics-container {
text-align: center;
font-size: 24px;
font-weight: bold;
margin-top: 50px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>As Rodas Do Ônibus</h1>
<div class="btn-container">
<button id="play-button" class="btn btn-primary"><i class="fa fa-play"></i> Play</button>
<button id="pause-button" class="btn btn-primary"><i class="fa fa-pause"></i> Pause</button>
</div>
<div id="lyrics-container"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!