📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 8.166464118255616, "text": "Sweet dreams are made of this", "meaning": "Bundan oluşmuş tatlı rüyalar" }, { "time": 11.590771990463258, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 15.211589767303467, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 19.212161965667725, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 23.06035501525879, "text": "Some of them want to use you", "meaning": "Bazıları sizi kullanmak istiyor" }, { "time": 26.853246855041505, "text": "Some of them want to get used by you", "meaning": "Bazıları da sizin tarafınızdan kullanılmak istiyor" }, { "time": 30.74851983596802, "text": "Some of them want to abuse you", "meaning": "Bazıları sizi istismar etmek istiyor" }, { "time": 34.493053055313105, "text": "Some of them want to be abused", "meaning": "Bazıları da istismar edilmek istiyor" }, { "time": 50.315866034332274, "text": "Sweet dreams are made of this", "meaning": "Bundan oluşmuş tatlı rüyalar" }, { "time": 53.69225298474121, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 57.34819407438659, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 61.41193796566772, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 76.67665519073486, "text": "Hold your head up, keep your head up, movin’ on", "meaning": "Kafanı kaldır, başını dik tut, devam et" }, { "time": 80.52373690844726, "text": "Hold your head up, movin’ on, keep your head up, movin’ on", "meaning": "Kafanı kaldır, devam et, başını dik tut, devam et" }, { "time": 84.43535697711181, "text": "Hold your head up, movin’ on, keep your head up, movin’ on", "meaning": "Kafanı kaldır, devam et, başını dik tut, devam et" }, { "time": 88.20377509536743, "text": "Hold your head up, movin’ on, keep your head up", "meaning": "Kafanı kaldır, devam et, başını dik tut" }, { "time": 107.34792417166138, "text": "Some of them want to use you", "meaning": "Bazıları sizi kullanmak istiyor" }, { "time": 111.19626398283386, "text": "Some of them want to get used by you", "meaning": "Bazıları da sizin tarafınızdan kullanılmak istiyor" }, { "time": 115.04338003433227, "text": "Some of them want to abuse you", "meaning": "Bazıları sizi istismar etmek istiyor" }, { "time": 118.8198079847412, "text": "Some of them want to be abused", "meaning": "Bazıları da istismar edilmek istiyor" }, { "time": 134.5635258703003, "text": "Sweet dreams are made of this", "meaning": "Bundan oluşmuş tatlı rüyalar" }, { "time": 138.01150297329713, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 141.68426694659425, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 145.63609084931946, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 149.9158949446869, "text": "Sweet dreams are made of this", "meaning": "Tatlı rüyalar bundan oluşur" }, { "time": 153.39557583978274, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 157.05953806294252, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 160.899390956131, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 165.35615495994568, "text": "Sweet dreams are made of this", "meaning": "Bundan oluşmuş tatlı rüyalar" }, { "time": 168.74021613160707, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 172.4203540553131, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 176.42805904768372, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 180.68379506675723, "text": "Sweet dreams are made of this", "meaning": "Tatlı rüyalar bundan oluşur" }, { "time": 184.02707691226198, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 187.79580206866456, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 191.6942960743866, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" }, { "time": 195.6, "text": "Sweet dreams are made of this", "meaning": "Tatlı rüyalar bundan oluşur" }, { "time": 199.26552900000002, "text": "Who am I to disagree", "meaning": "Ben kimim ki karşı çıkayım" }, { "time": 203.036065, "text": "I travel the world and the seven seas", "meaning": "Dünyayı ve yedi denizi dolaştım" }, { "time": 207, "text": "Everybody’s looking for something", "meaning": "Herkes bir şeyler arıyor" } ]; 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: 'qeMFqkcPYcg', // 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); } }