📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 0, "text": "I hurt myself today", "meaning": "Kendimi incittim bugün" }, { "time": 18.395671982833864, "text": "To see if I still feel", "meaning": "Hala hissedebiliyor muyum diye" }, { "time": 23.68330904196167, "text": "I focus on the pain", "meaning": "Acıya odaklandım" }, { "time": 29.123350185012818, "text": "The only thing that’s real", "meaning": "Gerçek olan yegane şeye" }, { "time": 34.30286908010864, "text": "The needle tears a hole", "meaning": "İğne bir delik açar" }, { "time": 39.72678688174438, "text": "The old familiar sting", "meaning": "O eski tanıdık acıyı" }, { "time": 44.495121158309935, "text": "Try to kill it all away", "meaning": "Öldürmeye çalıştım her şeyiyle" }, { "time": 49.7032010667572, "text": "But I remember everything", "meaning": "Ama her şeyi hatırlıyorum" }, { "time": 55.74243994659424, "text": "What have I become?", "meaning": "Neye dönüştüm ben?" }, { "time": 61.646944990463254, "text": "My sweetest friend", "meaning": "Benim en tatlı arkadaşım" }, { "time": 66.39879592752075, "text": "Everyone I know goes away", "meaning": "Tanıdığım herkes gidiyor" }, { "time": 73.00738493324279, "text": "In the end", "meaning": "Eninde sonunda" }, { "time": 76.6940999923706, "text": "And you could have it all", "meaning": "Ve hepsine sahip olabilirdin" }, { "time": 82.08647886457824, "text": "My empire of dirt", "meaning": "Topraktan imparatorluğumla" }, { "time": 87.35130896185302, "text": "I will let you down", "meaning": "Seni hayal kırıklığına uğratacağım" }, { "time": 92.60662002861022, "text": "I will make you hurt", "meaning": "Seni inciteceğim" }, { "time": 107.6, "text": "I wear this crown of thorns", "meaning": "Bu dikenli tacı taktım" }, { "time": 113.4706920629425, "text": "Upon my liar’s chair", "meaning": "Yalancı koltuğumda" }, { "time": 118.65763088746642, "text": "Full of broken thoughts", "meaning": "Kırık dökük düşüncelerle doluyum" }, { "time": 124.39356099046326, "text": "I cannot repair", "meaning": "Tamir edemiyorum" }, { "time": 129.1, "text": "Beneath the stains of time", "meaning": "Zamanın izleri altında" }, { "time": 134.56023903623964, "text": "The feelings disappear", "meaning": "Duygular kaybolur" }, { "time": 140.07319390463257, "text": "You are someone else", "meaning": "Başka biri olursun" }, { "time": 145.55345401907348, "text": "I’m still right here", "meaning": "Hala buradayım" }, { "time": 150.8091919523163, "text": "What have I become?", "meaning": "Neye dönüştüm ben?" }, { "time": 156.69623095422364, "text": "My sweetest friend", "meaning": "Benim en tatlı arkadaşım" }, { "time": 161.33723401716614, "text": "Everyone I know goes away", "meaning": "Tanıdığım herkes gidiyor" }, { "time": 167.92043912207032, "text": "In the end", "meaning": "Eninde sonunda" }, { "time": 171.5, "text": "And you could have it all", "meaning": "Ve hepsine sahip olabilirdin" }, { "time": 177.0806600267029, "text": "My empire of dirt", "meaning": "Topraktan imparatorluğumla" }, { "time": 182.3602991792908, "text": "I will let you down", "meaning": "Seni hayal kırıklığına uğratacağım" }, { "time": 187.5932278378754, "text": "I will make you hurt", "meaning": "Seni inciteceğim" }, { "time": 192.3, "text": "If I could start again", "meaning": "Yeniden başlayabilseydim" }, { "time": 197.5, "text": "A million miles away", "meaning": "Bir milyon mil uzakta" }, { "time": 202.99241309536745, "text": "I would keep myself", "meaning": "Kendimi tutardım" }, { "time": 208.23335508010865, "text": "I would find a way", "meaning": "Bir yolunu bulurdum" } ]; 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: '8AHCfZTRGiI', // 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); } }