📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 25.327411133514406, "text": "Someone said they left together", "meaning": "Biri beraber ayrıldıklarını söyledi" }, { "time": 29.432421173568727, "text": "I ran out the door to get her", "meaning": "Onu bulmak için dışarıya koştum" }, { "time": 33.48771180545044, "text": "She was holding hands with Trevor", "meaning": "O ise Trevor’la el eleydi" }, { "time": 37.671001893188475, "text": "Not the greatest feeling ever", "meaning": "Hiç de harika bir his değil" }, { "time": 42.30253687220764, "text": "Said, 'Pull yourself together'", "meaning": "Dedim ki, 'Kendine gel'" }, { "time": 45.87987009918213, "text": "You should try your luck with Heather", "meaning": "Şansını Heather’la denemelisin" }, { "time": 49.98294207820129, "text": "Then I heard they slept together", "meaning": "Sonra yattıklarını öğrendim" }, { "time": 54.04677984550476, "text": "Oh, the less I know the better", "meaning": "Ah, ne kadar az bilirsem o kadar iyi" }, { "time": 63, "text": "The less I know the better", "meaning": "Ne kadar az bilirsem o kadar iyi" }, { "time": 66.80234684741211, "text": "Oh my love, can’t you see yourself by my side", "meaning": "Ah aşkım, kendini benim yanımda göremiyor musun" }, { "time": 74.93805003623962, "text": "No surprise when you’re on his shoulder like every night", "meaning": "Gerçi her gece onun omuzunda olduğun için pek şaşırtıcı gelmiyor" }, { "time": 83.23419815449523, "text": "Oh my love, can’t you see that you’re on my mind", "meaning": "Ah aşkım, aklımda olduğunu göremiyor musun" }, { "time": 91.28147495422363, "text": "Don’t suppose we could convince your lover to change his mind", "meaning": "Sevgilinin fikrini değiştirmesi için ikna edemeyiz herhalde" }, { "time": 99.48212884741211, "text": "So goodbye", "meaning": "Öyleyse hoşça kal" }, { "time": 107.36989988174439, "text": "She said, 'It’s not now or never'", "meaning": "Dedi ki, 'Ya şimdi ya hiç değil'" }, { "time": 111.56221903242492, "text": "Wait ten years, we’ll be together", "meaning": "On yıl bekle, birlikte olacağız" }, { "time": 115.61811912207031, "text": "I said, 'Better late than never'", "meaning": "Dedim ki, 'Geç olsun güç olmasın'" }, { "time": 119.67423208583068, "text": "Just don’t make me wait forever", "meaning": "Sadece beni sonsuza kadar bekletme" }, { "time": 128.6, "text": "Don’t make me wait forever", "meaning": "Beni sonsuza kadar bekletme" }, { "time": 140.6978110782013, "text": "Oh my love, can’t you see yourself by my side", "meaning": "Ah aşkım, kendini benim yanımda göremiyor musun" }, { "time": 148.7386269599457, "text": "I don’t suppose you could convince your lover to change his mind", "meaning": "Sevgilini fikrini değiştirmesi için ikna edemeyeceksin herhalde" }, { "time": 157.7141130896454, "text": "I was doing fine without you", "meaning": "Sensiz gayet iyiydim" }, { "time": 161.65086804386902, "text": "‘Til I saw your face, now I can’t erase", "meaning": "Ta ki yüzünü görene dek, şimdiyse aklımdan atamıyorum" }, { "time": 165.97834094659424, "text": "Giving in to all his bullshit", "meaning": "Bütün saçmalıklarına razı olmana" }, { "time": 169.93040687220764, "text": "Is this what you want, is this who you are?", "meaning": "İstediğin bu mu, sen bu musun?" }, { "time": 174.2013749961853, "text": "I was doing fine without you", "meaning": "Sensiz gayet iyiydim" }, { "time": 178.07379899809266, "text": "‘Til I saw your eyes turn away from mine", "meaning": "Ta ki gözlerini benden kaçırdığını görene kadar" }, { "time": 182.2655759103546, "text": "Oh, sweet darlin’, where he wants you", "meaning": "Ah, tatlı sevgilim, seni istediğinde" }, { "time": 186.25766802479555, "text": "Said, 'Come on Superman, say your stupid line'", "meaning": "Dedim ki, 'Hadi Süpermen, aptal repliğini söyle'" } ]; 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: '2SUwOgmvzK4', // 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); } }