📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 6, "text": "Reach out, touch faith", "meaning": "Elini uzat, inanca dokun" }, { "time": 22.2, "text": "Your own personal Jesus", "meaning": "Kendi kişisel İsa’nıza" }, { "time": 30.135161011444094, "text": "Someone to hear your prayers", "meaning": "Dualarınızı duyacak birine" }, { "time": 32.98284497329712, "text": "Someone who cares", "meaning": "Önemseyen birine" }, { "time": 37.11938118310547, "text": "Your own personal Jesus", "meaning": "Kendi kişisel İsa’nıza" }, { "time": 44.84705591416931, "text": "Someone to hear your prayers", "meaning": "Dualarınızı duyacak birine" }, { "time": 47.734745921798705, "text": "Someone who’s there", "meaning": "Orada olan birine" }, { "time": 59.7, "text": "Feeling unknown", "meaning": "Bilinmezlik içinde" }, { "time": 61.09930987602234, "text": "And you’re all alone", "meaning": "Yapayalnız hissediyorsun" }, { "time": 63.37918582452392, "text": "Flesh and bone", "meaning": "Etten ve kemiktensin" }, { "time": 64.87823805149841, "text": "By the telephone", "meaning": "Telefonun ucundaki" }, { "time": 67.35661500572205, "text": "Lift up the receiver", "meaning": "Ahizeyi kaldır da" }, { "time": 68.72708912779235, "text": "I’ll make you a believer", "meaning": "Seni bir mümin yapayım" }, { "time": 74.54414006866455, "text": "Take second best", "meaning": "Haline şükret" }, { "time": 75.7269929961853, "text": "Put me to the test", "meaning": "Beni teste tabi tut" }, { "time": 78.15111706103515, "text": "Things on your chest", "meaning": "Göğsüne yük olan şeyleri" }, { "time": 79.7433739256134, "text": "You need to confess", "meaning": "İtiraf etmelisin" }, { "time": 81.94293893133545, "text": "I will deliver", "meaning": "İleteceğim" }, { "time": 83.4191599961853, "text": "You know I’m a forgiver", "meaning": "Bağışlayıcı olduğumu biliyorsun" }, { "time": 91.18759313542175, "text": "Reach out, touch faith", "meaning": "Elini uzat, inanca dokun" }, { "time": 103.61898606866455, "text": "Your own personal Jesus", "meaning": "Kendi kişisel İsa’nıza" }, { "time": 111.39533997138977, "text": "Someone to hear your prayers", "meaning": "Dualarınızı duyacak birine" }, { "time": 114.16252883596802, "text": "Someone who cares", "meaning": "Önemseyen birine" }, { "time": 118.38679297901916, "text": "Your own personal Jesus", "meaning": "Kendi kişisel İsa’nıza" }, { "time": 126.2114161220703, "text": "Someone to hear your prayers", "meaning": "Dualarınızı duyacak birine" }, { "time": 128.93892102479555, "text": "Someone who’s there", "meaning": "Orada olan birine" }, { "time": 152.05418804577639, "text": "Feeling unknown", "meaning": "Bilinmezlik içinde" }, { "time": 153.51868292179873, "text": "And you’re all alone", "meaning": "Yapayalnız hissediyorsun" }, { "time": 155.69530094659424, "text": "Flesh and bone", "meaning": "Etten ve kemiktensin" }, { "time": 157.2072328664856, "text": "By the telephone", "meaning": "Telefonun ucundaki" }, { "time": 159.36729897329712, "text": "Lift up the receiver", "meaning": "Ahizeyi kaldır da" }, { "time": 161.114266082016, "text": "I’ll make you a believer", "meaning": "Seni bir mümin yapayım" }, { "time": 166.9624230858307, "text": "I will deliver", "meaning": "İleteceğim" }, { "time": 168.5948440782013, "text": "You know I'm a forgiver", "meaning": "Bağışlayıcı olduğumu biliyorsun" }, { "time": 176.14729810681155, "text": "Reach out, touch faith", "meaning": "Elini uzat, inanca dokun" }, { "time": 177.88834595422364, "text": "Your own personal Jesus", "meaning": "Kendi kişisel İsa’nıza" }, { "time": 187.1859519523163, "text": "Reach out, touch faith", "meaning": "Elini uzat, inanca dokun" } ]; 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: 'u1xrNaTO1bI', // 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); } }