📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 0, "text": "Captured effortlessly", "meaning": "Hiç zorlanmadan yakaladın beni" }, { "time": 10.622300097274781, "text": "That's the way it was", "meaning": "Her şey işte öylece başlayıverdi" }, { "time": 12.651331143051149, "text": "Happened so naturally", "meaning": "Öylesine doğal gelişti ki" }, { "time": 14.659237040054322, "text": "I did not know it was love", "meaning": "Bunun aşk olduğunu fark etmedim bile" }, { "time": 16.722371003814697, "text": "The next thing I felt was you", "meaning": "Sonra seni hissettim yanımda" }, { "time": 18.651081009536743, "text": "Holding me close", "meaning": "Beni kendine sımsıkı sararken" }, { "time": 20.718168921798707, "text": "What was I gonna do?", "meaning": "Ne yapabilirdim ki?" }, { "time": 22.83511609727478, "text": "I let myself go", "meaning": "Kendimi akışa bıraktım" }, { "time": 24.800796950408937, "text": "And now we're flyin' through the stars", "meaning": "Şimdi yıldızların arasında süzülüyoruz" }, { "time": 26.88961008201599, "text": "I hope this night will last forever", "meaning": "Bu gecenin sonsuza dek sürmesini diliyorum" }, { "time": 30.389925961853027, "text": "Oh-whoa-oh-oh", "meaning": "Oh-whoa-oh-oh" }, { "time": 32.91336015449524, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 35.02156995613098, "text": "Loves me better", "meaning": "Beni sen gibi sevmedi" }, { "time": 37.050523, "text": "Makes me happy", "meaning": "Beni böyle mutlu etmedi" }, { "time": 39.047190917984004, "text": "Makes me feel this way", "meaning": "Bana böyle hissettirmedi" }, { "time": 41.13117798664856, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 43.110382141143795, "text": "Loves me better than you", "meaning": "Sen gibi güzel sevemedi beni" }, { "time": 65.42545713160705, "text": "I've been waitin' for you", "meaning": "Seni bekliyordum" }, { "time": 67.5512140591278, "text": "It's been so long", "meaning": "Çok uzun zamandır" }, { "time": 69.45910015640258, "text": "I knew just what I would do", "meaning": "Ne yapacağımı biliyordum" }, { "time": 71.55177709155274, "text": "When I heard your song", "meaning": "Seni bulduğumda" }, { "time": 73.57493609346008, "text": "You filled my heart with a kiss", "meaning": "Bir öpücükle kalbimi doldurdun" }, { "time": 75.65805710681153, "text": "You gave me freedom", "meaning": "Bana özgürlüğü verdin" }, { "time": 77.62836213542175, "text": "You knew I could not resist", "meaning": "Sana karşı koyamayacağımı biliyordun" }, { "time": 79.73564309155273, "text": "I needed someone", "meaning": "Birine ihtiyacım vardı" }, { "time": 81.70346192752075, "text": "And now we're flyin' through the stars", "meaning": "Çıkagelmenle birlikte süzüldük gökyüzünde" }, { "time": 83.73259997138977, "text": "I hope this night will last forever", "meaning": "Bu gece hiç bitmesin istiyorum" }, { "time": 87.35042218692017, "text": "Oh-whoa-oh-oh", "meaning": "Oh-whoa-oh-oh" }, { "time": 89.85626192752075, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 91.87628183596802, "text": "Loves me better", "meaning": "Beni sen gibi sevmedi" }, { "time": 93.93439092370605, "text": "Makes me happy", "meaning": "Beni böyle mutlu etmedi" }, { "time": 95.96421603051758, "text": "Makes me feel this way", "meaning": "Bana böyle hissettirmedi" }, { "time": 98.04322602670288, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 100.0176320038147, "text": "Loves me better than you", "meaning": "Senden daha güzel sevemedi beni" }, { "time": 123.90592015830994, "text": "At first you put your arms around me", "meaning": "İlk önce kollarını sardın etrafıma" }, { "time": 127.97231410299683, "text": "Then you put your charms around me", "meaning": "Sonra büyüleyici yanını sardı etrafımı" }, { "time": 131.94700307057192, "text": "We stare into each other's eyes", "meaning": "Göz göze geldik uzun uzun" }, { "time": 135.9606370114441, "text": "And what we see is no surprise", "meaning": "Ve gördüklerimiz hiç şaşırtmadı bizi" }, { "time": 140.17695709155274, "text": "Got a feeling most would treasure", "meaning": "Çoğu insanın kıymetini bileceği bir his bu" }, { "time": 144.22181696185305, "text": "And a love so deep we cannot measure", "meaning": "Ve ölçülemeyecek kadar derin bir aşk" }, { "time": 148.77236804768373, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 150.947514, "text": "Loves me better", "meaning": "Beni sen gibi sevmedi" }, { "time": 152.947497, "text": "Makes me happy", "meaning": "Beni böyle güldürmedi" }, { "time": 154.91183209155275, "text": "Makes me feel this way", "meaning": "Bana böyle hissetirmedi" }, { "time": 157.0092259752045, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 159.05158819645692, "text": "Loves me better than you", "meaning": "Senden güzel sevemedi kimse beni" }, { "time": 165.2354921296997, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 167.24256109918215, "text": "Loves me better", "meaning": "Beni sen gibi sevmedi" }, { "time": 169.16222191798403, "text": "Makes me happy", "meaning": "Beni böyle güldürmedi" }, { "time": 171.17587085694888, "text": "Makes me feel this way", "meaning": "Bana böyle hissettirmedi" }, { "time": 173.30979091989136, "text": "Ain't nobody", "meaning": "Hiç kimse" }, { "time": 175.30550614877322, "text": "Loves me better than you", "meaning": "Senden güzel sevemedi kimse beni" } ]; 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: '5j1RCys4R0g', // 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); } }