📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 31.5, "text": "She calls out to the man on the street", "meaning": "Sokaktaki adama sesleniyor" }, { "time": 36.68868396566772, "text": "“Sir, can you help me?", "meaning": "“Bayım, bana yardım edebilir misiniz?" }, { "time": 41.3, "text": "It’s cold and I’ve nowhere to sleep", "meaning": "Hava soğuk ve yatacak bir yerim yok" }, { "time": 45.8, "text": "Is there somewhere you can tell me?”", "meaning": "Bana söyleyebileceğiniz bir yer var mı?”" }, { "time": 50.5, "text": "He walks on, doesn’t look back", "meaning": "Arkasına bakmadan yürüyüp gidiyor" }, { "time": 55.3, "text": "He pretends he can’t hear her", "meaning": "Onu duymuyormuş gibi yapıyor" }, { "time": 60, "text": "Starts to whistle as he crosses the street", "meaning": "Karşıdan karşıya geçerken ıslık çalmaya başlıyor" }, { "time": 64.4, "text": "Seems embarrassed to be there", "meaning": "Orada olmaktan utanmış gibi görünüyor" }, { "time": 68.9775238588562, "text": "Oh, think twice, ’cause it’s another day for you and me in paradise", "meaning": "Ah, bir kez daha düşün, zira bu sen ve ben için cennette sıradan bir gün" }, { "time": 78.44224201716614, "text": "Oh, think twice, ’cause it’s another day for you", "meaning": "Ah, bir kez daha düşün, zira bu senin için sıradan bir gün" }, { "time": 85.57641105149841, "text": "You and me in paradise", "meaning": "Sen ve ben cennetteyiz" }, { "time": 96.4, "text": "Think about it", "meaning": "Bunu bir düşün" }, { "time": 107.06318510681152, "text": "She calls out to the man on the street", "meaning": "Sokaktaki adama sesleniyor" }, { "time": 111.8557660667572, "text": "He can see she’s been crying", "meaning": "Kızın ağladığını görebiliyor" }, { "time": 116.48774017929077, "text": "She’s got blisters on the soles of her feet", "meaning": "Ayaklarının altı su toplamış" }, { "time": 121.18393787220764, "text": "She can’t walk but she’s trying", "meaning": "Yürüyemiyor ama deniyor" }, { "time": 125.4, "text": "Oh, think twice, ’cause it’s another day for you and me in paradise", "meaning": "Ah, bir kez daha düşün, zira bu sen ve ben için cennette sıradan bir gün" }, { "time": 135.00331196376038, "text": "Oh, think twice, it’s just another day for you", "meaning": "Ah, iki kere düşün, senin için bu sıradan bir gün sadece" }, { "time": 142.0732069523163, "text": "You and me in paradise", "meaning": "Sen ve ben cennetteyiz" }, { "time": 153, "text": "Just about it", "meaning": "Aynen öyle" }, { "time": 164.43880103623962, "text": "Oh Lord, is there nothing more anybody can do?", "meaning": "Ah Tanrım, birinin yapabileceği hiçbir şey yok mu?" }, { "time": 172.75915995040896, "text": "Oh Lord, there must be something you can say", "meaning": "Ah, Tanrım, söyleyebileceğin bir şeyler olmalı" }, { "time": 184.92786700190737, "text": "You can tell from the lines on her face", "meaning": "Yüzündeki çizgilerden anlaşılıyor" }, { "time": 189.5593110114441, "text": "You can see that she’s been there", "meaning": "Orada olduğunu görebiliyorsun" }, { "time": 193.8597360343323, "text": "Probably been moved on from every place", "meaning": "Muhtemelen her yerden taşınmıştır" }, { "time": 199.04469902479553, "text": "‘Cause she didn’t fit in there", "meaning": "Oralara uymuyor diye" }, { "time": 203.34890787220766, "text": "Oh, think twice, ’cause it’s another day for you and me in paradise", "meaning": "Ah, bir kez daha düşün, zira bu sen ve ben için cennette sıradan bir gün" }, { "time": 212.76474000572205, "text": "Oh, think twice, it’s just another day for you", "meaning": "Ah, iki kere düşün, senin için bu sıradan bir gün sadece" }, { "time": 219.82103311062625, "text": "You and me in paradise", "meaning": "Sen ve ben cennetteyiz" }, { "time": 226.00956710299684, "text": "Just think about it", "meaning": "Bunu bir düşün bak" }, { "time": 235.64975694277956, "text": "Think about it", "meaning": "Bunu bir düşün" }, { "time": 240.2, "text": "It’s just another day for you and me in paradise", "meaning": "Sen ve ben için cennette sıradan bir gün" }, { "time": 249.6, "text": "It’s just another day for you and me in paradise (para-paradise)", "meaning": "Sen ve ben için cennette sıradan bir gün (cennette)" }, { "time": 259.31872697138976, "text": "Paradise", "meaning": "Cennette" }, { "time": 263.2, "text": "Ooh, just think about it", "meaning": "Ahh, bir düşün bak bunu" }, { "time": 268.67650186267093, "text": "Paradise", "meaning": "Cennette" }, { "time": 273.24457298092653, "text": "Just think about it (para-paradise)", "meaning": "Bir düşün bak bunu" }, { "time": 278.7462358664856, "text": "Paradise", "meaning": "Cennette" } ]; 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: 'Qt2mbGP6vFI', // 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); } }