📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 0, "text": "Hello, it’s me", "meaning": "Merhaba, benim" }, { "time": 86.4, "text": "I was wondering if after all these years you’d like to meet, to go over everything?", "meaning": "Bunca yılın ardından buluşup her şeyi yeniden konuşmak ister misin, diye düşündüm" }, { "time": 98.22454004196166, "text": "They say that time’s supposed to heal ya", "meaning": "Derler ki zaman insanı iyileştirir" }, { "time": 101.90481913160706, "text": "But I ain’t done much healing", "meaning": "Ama ben pek iyileşemedim" }, { "time": 105.00062489700318, "text": "Hello, can you hear me?", "meaning": "Merhaba, beni duyabiliyor musun" }, { "time": 110.67993697711181, "text": "I’m in California dreaming about who we used to be", "meaning": "Başka türlü olsaydı nasıl olurduk diye düşlüyorum." }, { "time": 116.59205901335143, "text": "When we were younger and free", "meaning": "Genç ve özgürken" }, { "time": 122.80101995803832, "text": "I’ve forgotten how it felt before the world fell at our feet", "meaning": "Dünya ayaklarımız altından çekilmeden önce nasıl hissettiyordu unuttum" }, { "time": 128.75980685313417, "text": "There’s such a difference between us and a million miles", "meaning": "Aramızda öyle büyük bir uçurum var ki" }, { "time": 141.80870385504153, "text": "Hello from the other side", "meaning": "Diğer taraftan selamlar" }, { "time": 147.5788680038147, "text": "I must’ve called a thousand times", "meaning": "Seni herhalde binlerce kez aramışımdır " }, { "time": 153, "text": "To tell you I’m sorry, for everything that I’ve done", "meaning": "Yaptığım her şeyden dolayı üzgün olduğumu söylemek için" }, { "time": 158.87491712779237, "text": "But when I call you never seem to be home", "meaning": "Ama seni ne zaman arasam arayım açmadın" }, { "time": 166.13067894659426, "text": "Hello from the outside", "meaning": "Dışarıdan selamlar" }, { "time": 171.7467411678467, "text": "At least I can say that I’ve tried to tell you", "meaning": "En azından anlatmaya çalıştığımı söyleyebilirim" }, { "time": 178.51549596948243, "text": "I’m sorry, for breaking your heart", "meaning": "Kalbini kırdığım için üzgün olduğumu" }, { "time": 183, "text": "But it don’t matter, it clearly doesn’t tear you apart anymore", "meaning": "Ama önemi yok, belli ki bu artık seni üzmüyor" }, { "time": 196.2269190782013, "text": "Hello, how are you?", "meaning": "Merhaba, nasılsın?" }, { "time": 201.92317196185303, "text": "It’s so typical of me to talk about myself", "meaning": "Bilirsin hep kendim hakkında konuşurum" }, { "time": 206.7131309408722, "text": "I’m sorry, I hope that you’re well", "meaning": "Üzgünüm, umarım iyisindir" }, { "time": 213.97648700000002, "text": "Did you ever make it out of that town?", "meaning": "O kasabadan hiç çıkabildin mi?" }, { "time": 217.7286998779297, "text": "Where nothing ever happened?", "meaning": "Hiçbir şeyin olmadığı?" }, { "time": 220.1783300076294, "text": "It’s no secret", "meaning": "Bu bir sır değil" }, { "time": 223.14655999046326, "text": "That the both of us are running out of time", "meaning": "İkimizin de zamanı tükeniyor" }, { "time": 232.61849096948242, "text": "So hello from the other side", "meaning": "Diğer taraftan selamlar öyleyse" }, { "time": 238.85795913732912, "text": "I must’ve called a thousand times", "meaning": "Seni herhalde binlerce kez aramışımdır " }, { "time": 244.1948830743866, "text": "To tell you I’m sorry, for everything that I’ve done", "meaning": "Yaptığım her şeyden dolayı üzgün olduğumu söylemek için" }, { "time": 250, "text": "But when I call you never seem to be home", "meaning": "Ama seni ne zaman arasam arayım açmadın hiç" }, { "time": 257.31382995803835, "text": "Hello from the outside", "meaning": "Dışarıdan selamlar" }, { "time": 263.0666350858307, "text": "At least I can say that I’ve tried to tell you", "meaning": "En azından sana anlatmaya çalıştığımı söyleyebilirim" }, { "time": 269.962363125885, "text": "I’m sorry, for breaking your heart", "meaning": "Kalbini kırdığım için üzgün olduğumu" }, { "time": 274.4182580076294, "text": "But it don’t matter, it clearly doesn’t tear you apart anymore", "meaning": "Ama önemi yok, belli ki bu artık seni üzmüyor" }, { "time": 284.3, "text": "Ohh, anymore", "meaning": "Ahh, artık üzmüyor" }, { "time": 306.1088738950958, "text": "Hello from the outside", "meaning": "Dışarıdan selamlar" }, { "time": 311.71047089128115, "text": "I must’ve called a thousand times", "meaning": "Seni herhalde binlerce kez aramışımdır " }, { "time": 317.2369001125336, "text": "To tell you I’m sorry, for everything that I’ve done", "meaning": "Yaptığım her şeyden dolayı üzgün olduğumu söylemek için" }, { "time": 323.0288299256134, "text": "But when I call you never seem to be home", "meaning": "Ama seni ne zaman arasam arayım açmadın" }, { "time": 330.25914289128116, "text": "Hello from the outside", "meaning": "Dışarıdan selamlar" }, { "time": 335.98045215068055, "text": "At least I can say that I’ve tried to tell you", "meaning": "En azından sana anlatmaya çalıştığımı söyleyebilirim" }, { "time": 342.9731970247955, "text": "I’m sorry, for breaking your heart", "meaning": "Kalbini kırdığım için üzgün olduğumu" }, { "time": 347.3791130324249, "text": "But it don’t matter, it clearly doesn’t tear you apart anymore", "meaning": "Ama önemi yok, belli ki bu artık seni üzmüyor" } ]; 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: 'YQHsXMglC9A', // 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); } }