📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 0, "text": "I heard that you're settled down", "meaning": "Yuva kurduğunu" }, { "time": 21.123930990463258, "text": "That you found a girl and you're married now", "meaning": "Bir kız bulup onunla evlendiğini" }, { "time": 29.71599887411499, "text": "I heard that your dreams came true", "meaning": "Hayallerinin gerçekleştiğini duydum" }, { "time": 35.65130299427795, "text": "Guess she gave you things, I didn't give to you", "meaning": "Sanırım sana benim veremediğim şeyleri vermiş" }, { "time": 43, "text": "Old friend, why are you so shy?", "meaning": "Eski dostum, niye bu kadar utangaçsın?" }, { "time": 49.52406594850159, "text": "Ain't like you to hold back or hide from the light", "meaning": "Işıktan kaçmak ya da saklanmak sana göre değil" }, { "time": 57.404052919891356, "text": "I hate to turn up out of the blue, uninvited", "meaning": "Davetsiz misafir olmaktan nefret ediyorum" }, { "time": 60.692995112533566, "text": "But I couldn't stay away, I couldn't fight it", "meaning": "Napayım uzak duramadım, karşı koyamadım buna" }, { "time": 64.34103404196166, "text": "I had hoped you'd see my face", "meaning": "Yüzümü görünce hatırlayacağını ummuştum" }, { "time": 66.18671102861023, "text": "And that you'd be reminded that for me, it isn't over", "meaning": "Benim için hala bitmediğini" }, { "time": 73.82693282452392, "text": "Never mind, I'll find someone like you", "meaning": "Boş ver, senin gibi birini bulurum" }, { "time": 79.8184440705719, "text": "I wish nothing but the best for you, too", "meaning": "Senin için her şeyin en iyisini diliyorum" }, { "time": 86.95588018119811, "text": "Don't forget me, I beg", "meaning": "Yalvarırım beni unutma" }, { "time": 90.45848008010864, "text": "I remember you said", "meaning": "Demiştin ya hani" }, { "time": 94.03465616021728, "text": "Sometimes it lasts in love, but sometimes it hurts instead", "meaning": "Aşk bazen cana can katar bazense sadece can yakar" }, { "time": 111.67540393324279, "text": "You know how the time flies", "meaning": "Zamanın nasıl akıp gittiğini bilirsin" }, { "time": 117.2, "text": "Only yesterday was the time of our lives", "meaning": "Daha dün hayatımızın en güzel zamanıydı" }, { "time": 124.17928501335143, "text": "We were born and raised in a summer haze", "meaning": "Yaz sıcağında doğup büyüdük" }, { "time": 131.31537498664858, "text": "Bound by the surprise of our glory days", "meaning": "O güzel günlerimizin büyüsüne kapılıp kaldık" }, { "time": 139.27575493133546, "text": "I hate to turn up out of the blue, uninvited", "meaning": "Davetsiz misafir olmaktan nefret ediyorum" }, { "time": 142.5966448779297, "text": "But I couldn't stay away, I couldn't fight it", "meaning": "Napayım uzak duramadım, karşı koyamadım buna" }, { "time": 146.19600102098084, "text": "I had hoped you'd see my face", "meaning": "Yüzümü görünce hatırlayacağını ummuştum" }, { "time": 148.09082200190736, "text": "And that you'd be reminded that for me, it isn't over", "meaning": "Benim için hala bitmediğini" }, { "time": 157.31686615068054, "text": "Never mind, I'll find someone like you", "meaning": "Boş ver, senin gibi birini bulurum" }, { "time": 163.4842970705719, "text": "I wish nothing but the best for you, too", "meaning": "Senin için her şeyin en iyisini diliyorum" }, { "time": 170.50072321743775, "text": "Don't forget me, I beg", "meaning": "Yalvarırım beni unutma" }, { "time": 174, "text": "I remember you said", "meaning": "Demiştin ya hani" }, { "time": 177.57923985504152, "text": "Sometimes it lasts in love, but sometimes it hurts instead", "meaning": "Aşk bazen cana can katar bazense sadece can yakar" }, { "time": 185.5230220267029, "text": "Nothing compares, no worries or cares", "meaning": "Hiçbir endişe ve kaygıyla kıyaslanamaz bu" }, { "time": 189.08230799427795, "text": "Regrets and mistakes, they're memories made", "meaning": "Pişmanlıklar ve hatalar, oluşturur hatıraları" }, { "time": 192.8021510858307, "text": "Who would have known how bittersweet this would taste?", "meaning": "Kim bilebilirdi ki, bu kadar acı-tatlı bir tat bırakacağını?" }, { "time": 204.3297919008179, "text": "Never mind, I'll find someone like you", "meaning": "Boş ver, senin gibi birini bulurum" }, { "time": 210.19431098283388, "text": "I wish nothing but the best for you, too", "meaning": "Senin için her şeyin en iyisini diliyorum" }, { "time": 217.26665696185304, "text": "Don't forget me, I beg", "meaning": "Yalvarırım beni unutma" }, { "time": 220.92248292370607, "text": "I remember you said", "meaning": "Demiştin ya hani" }, { "time": 224.55434801716615, "text": "Sometimes it lasts in love, but sometimes it hurts instead", "meaning": "Aşk bazen cana can katar bazense sadece can yakar" }, { "time": 232.6626899446869, "text": "Never mind, I'll find someone like you", "meaning": "Boş ver, senin gibi birini bulurum" }, { "time": 238.63105901335146, "text": "I wish nothing but the best for you, too", "meaning": "Senin için her şeyin en iyisini diliyorum" }, { "time": 245.69479100190736, "text": "Don't forget me, I beg", "meaning": "Yalvarırım beni unutma" }, { "time": 249.37496409155276, "text": "I remember you said", "meaning": "Demiştin ya hani" }, { "time": 252.91911900190735, "text": "Sometimes it lasts in love, but sometimes it hurts instead", "meaning": "Aşk bazen cana can katar bazense sadece can yakar" } ]; 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: 'hLQl3WQQoQ0', // 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); } }