📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 29.053696186920167, "text": "Here’s a little song I wrote", "meaning": "İşte yazdığım ufak şarkı" }, { "time": 31.626863977111817, "text": "You might want to sing it note for note", "meaning": "Nota nota söylemek istersin belki" }, { "time": 34.699804956130976, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 42.65162409727478, "text": "In every life we have some trouble", "meaning": "Hepimizin hayatta bazı sorunları vardır" }, { "time": 46.15584406866455, "text": "But when you worry, you make it double", "meaning": "Ama sıkarsan canını, bunları ikiye katlarsın" }, { "time": 48.781520998092645, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 61.012807824523925, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 64.4, "text": "Be happy", "meaning": "Mutlu ol" }, { "time": 67.98957800762939, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 74.88491290463257, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 78.4, "text": "Be happy", "meaning": "Mutlu ol" }, { "time": 81.7, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 84.34767403242492, "text": "Ain’t got no place to lay your head", "meaning": "Başını koyacak bir yerin mi yok" }, { "time": 87.65222588555908, "text": "Somebody came and took your bed", "meaning": "Birisi gelip yatağını mı aldı" }, { "time": 90.26794510871886, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 97.8831040705719, "text": "The landlord say your rent is late", "meaning": "Ev sahibi kiranızın geciktiğini mi söylüyor" }, { "time": 101.60329388365173, "text": "He may have to litigate", "meaning": "Dava açmak zorunda olabilir" }, { "time": 104.43514302098083, "text": "Don’t worry, be happy (look at me, I’m happy)", "meaning": "Sıkma canını, mutlu ol (bak bana, ben mutluyum)" }, { "time": 116.5, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 119.93887110871887, "text": "Be happy", "meaning": "Mutlu ol" }, { "time": 122.97058698283386, "text": "Hey I give you my phone number", "meaning": "Al bak bu telefon numaram" }, { "time": 123.89737883787537, "text": "When you worry, call me, I make you happy", "meaning": "Endişelendiğinde ara beni, seni mutlu edeyim" }, { "time": 130.46578491226197, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 133.89807186839295, "text": "Be happy (Ooh-ooh-ooh)", "meaning": "Mutlu ol (Ooh-ooh-ooh)" }, { "time": 139.81842002861023, "text": "Ain’t got no cash, ain’t got no style", "meaning": "Paran olmayabilir, tarzın olmayabilir" }, { "time": 142.85090090272524, "text": "Ain’t got no gal to make you smile", "meaning": "Seni güldürecek bir manitan olmayabilir" }, { "time": 145.80242009155273, "text": "But don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 153.22671290272524, "text": "‘Cause when you worry your face will frown", "meaning": "Çünkü kafana takarsan yüzün asılır" }, { "time": 156.71515115068055, "text": "And that will bring everybody down", "meaning": "Ve bu da herkesin neşesini kaçırır" }, { "time": 159.73076816975404, "text": "So don’t worry, be happy", "meaning": "O yüzden sıkma canını, mutlu ol" }, { "time": 165.2668390305176, "text": "Don’t worry, be happy now", "meaning": "Sıkma canını, mutlu ol" }, { "time": 172.11473299427797, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 175.53130896948244, "text": "Be happy", "meaning": "Mutlu ol" }, { "time": 178.83490506103516, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 185.74659196376038, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 189.29080910299683, "text": "Be happy", "meaning": "Mutlu ol" }, { "time": 192.5868400591278, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 199.35091596757508, "text": "Don’t worry, don’t worry", "meaning": "Sıkma canını, sıkma canını" }, { "time": 201.67261397711184, "text": "Don’t do it, be happy", "meaning": "Yapma bunu, mutlu ol" }, { "time": 205.74330804386904, "text": "Put a smile in your face, don’t bring everybody down like this", "meaning": "Yüzün bi gülümsesin, kimsenin neşesini kaçırma öyle" }, { "time": 213.2241990114441, "text": "Don’t worry", "meaning": "Sıkma canını" }, { "time": 216.72806296376038, "text": "It will soon pass, whatever it is", "meaning": "Her neyse yakında geçecektir" }, { "time": 220.04812591035463, "text": "Don’t worry, be happy", "meaning": "Sıkma canını, mutlu ol" }, { "time": 227.24985998283387, "text": "I’m not worried", "meaning": "Sıkmam ben canımı" }, { "time": 230.40055701716614, "text": "I’m happy", "meaning": "Mutluyum" } ]; var mevcutSatir=-1; var lastMevcutSatir=-1; var sozlerGuncelleInterval; // Şarkı sözlerini oluşturma fonksiyonu sozlerOlustur(); // Tümünü göster ikonuna tıklama document.getElementById('show-all-icon').addEventListener('click', function(){ document.getElementById('sozler-kapsayici').style.height='auto'; document.getElementById('sozler-kapsayici').style.overflowY='visible'; this.style.display='none'; document.getElementById('scroll-icon').style.display='inline'; }); // Scroll moduna dön ikonuna tıklama document.getElementById('scroll-icon').addEventListener('click', function(){ document.getElementById('sozler-kapsayici').style.height='400px'; document.getElementById('sozler-kapsayici').style.overflowY='auto'; this.style.display='none'; document.getElementById('show-all-icon').style.display='inline'; }); function onYouTubeIframeAPIReady(){ oynatici=new YT.Player('oynatici', { height: '315', width: '560', videoId: 'd-diB65scQU', // Buraya YouTube video ID'sini girin playerVars: { autoplay: 0, controls: 1, mute: 0, disablekb: 0, rel: 0, showinfo: 0, modestbranding: 1 }, events: { 'onStateChange': oynaticiDurumDegisti } }); } function oynaticiDurumDegisti(event){ if(event.data==YT.PlayerState.PLAYING||event.data==YT.PlayerState.PAUSED||event.data==YT.PlayerState.BUFFERING){ if(!sozlerGuncelleInterval){ sozleriGuncelle(); sozlerGuncelleInterval=setInterval(sozleriGuncelle, 200); } }else{ clearInterval(sozlerGuncelleInterval); sozlerGuncelleInterval=null; } } function sozleriGuncelle(){ if(!oynatici||!oynatici.getCurrentTime) return; var currentTime=oynatici.getCurrentTime(); for (var i=0; i < sozler.length; i++){ if(currentTime >=sozler[i].time&&(!sozler[i + 1]||currentTime < sozler[i + 1].time)){ if(mevcutSatir!==i){ mevcutSatir=i; sozlerStilGuncelle(); } break; } } } function sozlerStilGuncelle(){ if(lastMevcutSatir >=0){ var lastLineEl=document.getElementById('soz-' + lastMevcutSatir); if(lastLineEl){ lastLineEl.classList.remove('current'); lastLineEl.classList.add('passed'); } } var currentLineEl=document.getElementById('soz-' + mevcutSatir); if(currentLineEl){ currentLineEl.classList.add('current'); currentLineEl.classList.remove('passed'); // Mevcut satırı ekranın ortasında göstermek için otomatik kaydırma var sozlerKapsayici=document.getElementById('sozler-kapsayici'); var containerHeight=sozlerKapsayici.clientHeight; var currentLineOffset=currentLineEl.offsetTop - sozlerKapsayici.offsetTop; var scrollPosition=currentLineOffset - (containerHeight / 2) + (currentLineEl.clientHeight / 2); // Yumuşak kaydırma için özel fonksiyon animateScroll(sozlerKapsayici, scrollPosition, 300); } lastMevcutSatir=mevcutSatir; } function animateScroll(element, to, duration){ var start=element.scrollTop; var change=to - start; var startTime=performance.now(); function animateScrollStep(currentTime){ var elapsedTime=currentTime - startTime; var progress=Math.min(elapsedTime / duration, 1); element.scrollTop=start + change * easeInOutQuad(progress); if(progress < 1){ requestAnimationFrame(animateScrollStep); } } requestAnimationFrame(animateScrollStep); } function easeInOutQuad(t){ return t < 0.5 ? 2*t*t:-1+(4-2*t)*t; } function sozlerOlustur(){ var sozlerKapsayici=document.getElementById('sozler-kapsayici'); sozlerKapsayici.innerHTML=''; for (var i=0; i < sozler.length; i++){ var lyricDiv=document.createElement('div'); lyricDiv.className='sozler-satir'; lyricDiv.id='soz-' + i; lyricDiv.setAttribute('data-time', sozler[i].time); var textDiv=document.createElement('div'); textDiv.textContent=sozler[i].text; var meaningDiv=document.createElement('div'); meaningDiv.className='sozler-anlam'; meaningDiv.textContent=sozler[i].meaning; lyricDiv.appendChild(textDiv); lyricDiv.appendChild(meaningDiv); lyricDiv.addEventListener('click', function(){ var time=parseFloat(this.getAttribute('data-time')); oynatici.seekTo(time, true); }); sozlerKapsayici.appendChild(lyricDiv); } }