📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 34.63672421934509, "text": "You leapt from crumbling bridges", "meaning": "Yıkılan köprülerden atladın" }, { "time": 37.061785169754025, "text": "Watching cityscapes turn to dust", "meaning": "Şehir manzaralarının toza dönüşünü izledin" }, { "time": 44.66957320027161, "text": "Filming helicopters crashing", "meaning": "Helikopterlerin çakılışını kayda aldın" }, { "time": 47.46130587030029, "text": "In the ocean from way above", "meaning": "Okyanusa doğru" }, { "time": 55.29408597138977, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 57.90137800953674, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 60.55812509155273, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 63.1, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 65.73433994850159, "text": "You’ve been locked in here forever", "meaning": "Sonsuza dek burada kilitli kalmışsın" }, { "time": 68.38244102098083, "text": "And you just can’t say goodbye", "meaning": "Bir türlü veda edemiyorsun" }, { "time": 76.48898397329711, "text": "Kisses on the foreheads of the lovers", "meaning": "Aşıkların alınlarına öpücükler konduruyorsun" }, { "time": 80.07273803623963, "text": "Wrapped in your arms", "meaning": "Kollarının arasında sarılı" }, { "time": 86.06531489128112, "text": "You’ve been hiding them in hollowed out pianos", "meaning": "Piyanondaki notalarda saklıyorsun onları" }, { "time": 90.1, "text": "Left in the dark", "meaning": "Karanlıkta demlenmiş" }, { "time": 96.46782284931946, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 99.01040801525879, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 101.58731302098083, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 104.0359078474121, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 106.65105781498718, "text": "You’ve been locked in here forever", "meaning": "Sonsuza dek burada kilitli kalmışsın" }, { "time": 109.09906116021729, "text": "And you just can’t say goodbye", "meaning": "Bir türlü veda edemiyorsun" }, { "time": 118.45099604768372, "text": "Your lips, my lips", "meaning": "Dudakların, dudaklarım" }, { "time": 121.03563182452392, "text": "Apocalypse", "meaning": "Kıyamet" }, { "time": 128.68321298664858, "text": "Your lips, my lips", "meaning": "Dudakların, dudaklarım" }, { "time": 131.0830170896454, "text": "Apocalypse", "meaning": "Kıyamet" }, { "time": 137.15503413923645, "text": "Go and sneak us through the rivers", "meaning": "Bizi nehirlerden gizlice geçir" }, { "time": 139.59639216975404, "text": "Flood is rising up on your knees", "meaning": "Dizlerine kadar yükselen selde" }, { "time": 144.14460897329712, "text": "Oh, please", "meaning": "Ah, lütfen" }, { "time": 148.28867019264223, "text": "Come out and haunt me", "meaning": "Çık dışarı ve peşime düş" }, { "time": 150.7523841373291, "text": "I know you want me", "meaning": "Beni istediğini biliyorum" }, { "time": 153.44876584931947, "text": "Come out and haunt me", "meaning": "Çık dışarı ve peşime düş" }, { "time": 157.7, "text": "Sharing all your secrets with each other", "meaning": "Birbirinizle tüm sırlarınızı paylaşıyordunuz" }, { "time": 161.21997800190735, "text": "Since you were kids", "meaning": "Çocukluğunuzdan beri" }, { "time": 167.14030797711183, "text": "Sleeping soundly with the locket that she gave you", "meaning": "Sana verdiği madalyonla mışıl mışıl uyuyorsun" }, { "time": 171.51122812397767, "text": "Clutched in your fist", "meaning": "Avucunun içinde sıkıca tutarak" }, { "time": 177.4707871964569, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 180.23957898664858, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 182.6709179485016, "text": "Got the music in you, baby", "meaning": "Müzik senin içinde, bebeğim" }, { "time": 184.99084702479556, "text": "Tell me why", "meaning": "Bana nedenini söyle" }, { "time": 187.5508000190735, "text": "You’ve been locked in here forever", "meaning": "Sonsuza dek burada kilitli kalmışsın" }, { "time": 190.00645104386902, "text": "And you just can’t say goodbye", "meaning": "Bir türlü veda edemiyorsun" }, { "time": 207.4, "text": "You’ve been locked in here forever", "meaning": "Sonsuza dek burada kilitli kalmışsın" }, { "time": 209.9, "text": "And you just can’t say goodbye", "meaning": "Bir türlü veda edemiyorsun" }, { "time": 240.55344505149841, "text": "When you’re all alone", "meaning": "Yapayalnız kaldığında" }, { "time": 245.6179451564026, "text": "I’ll reach for you", "meaning": "Seni bulacağım" }, { "time": 250.36165214305115, "text": "When you’re feelin’ low", "meaning": "Kendini kötü hissettiğinde" }, { "time": 255.63347487983705, "text": "I’ll be there too", "meaning": "Yanında olacağım" } ]; 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: 'sElE_BfQ67s', // 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); } }