📜 Tümünü Göster 🔄 Otomatiğe Al var oynatici; var sozler=[ { "time": 0, "text": "Buddy, you’re a boy, make a big noise", "meaning": "Dostum, sen bir çocuksun, büyük bir gürültü çıkar" }, { "time": 20.346090169754028, "text": "Playing in the street, gonna be a big man someday", "meaning": "Sokakta oynarken, bir gün büyük bir adam olacaksın" }, { "time": 23.666537982833862, "text": "You got mud on your face, you big disgrace", "meaning": "Yüzünde çamur var, seni büyük yüz karası" }, { "time": 26.73937488937378, "text": "Kicking your can all over the place, singin’", "meaning": "Her yere tekme atıp, söyle" }, { "time": 29.76996983596802, "text": "We will, we will rock you", "meaning": "Sizi, sizi sallayacağız" }, { "time": 41.71546615068054, "text": "Buddy, you’re a young man, hard man", "meaning": "Dostum, sen genç ve sert bir adamsın" }, { "time": 43.93885410490417, "text": "Shouting in the street, gonna take on the world someday", "meaning": "Sokaklarda bağırarak, bir gün dünyayı ele geçireceksin" }, { "time": 47.24405901144409, "text": "You got blood on your face, you big disgrace", "meaning": "Yüzünde kan var, seni büyük yüz karası" }, { "time": 50.55515006103516, "text": "Waving your banner all over the place", "meaning": "Bayrağını her yerde dalgalandırıyorsun" }, { "time": 53.523405074386595, "text": "We will, we will rock you, sing it!", "meaning": "Sizi, sizi sallayacağız, söyle bunu" }, { "time": 59.53899417929077, "text": "We will, we will rock you", "meaning": "Sizi, sizi sallayacağız" }, { "time": 65.37122412397765, "text": "Buddy, you’re an old man, poor man", "meaning": "Dostum sen yaşlı ve zavallı bir adamsın" }, { "time": 67.62708599999999, "text": "Pleading with your eyes, gonna make you some peace someday", "meaning": "Gözlerinle yalvarıyorsun, bir gün huzur bulacaksın" }, { "time": 70.64322701716614, "text": "You got mud on your face, big disgrace", "meaning": "Yüzünde çamur var, seni rezil şey" }, { "time": 73.91552193896484, "text": "Somebody better put you back into your place", "meaning": "Birisi gelip seni yerine koysa iyi eder" }, { "time": 76.99538791035461, "text": "We will, we will rock you, sing it", "meaning": "Sizi, sizi sallayacağız, söyle bunu" }, { "time": 82.9066650667572, "text": "We will, we will rock you, everybody", "meaning": "Sizi, sizi sallayacağız, hepinizi" }, { "time": 88.81936903051758, "text": "We will, we will rock you, hmm", "meaning": "Sizi, sizi sallayacağız, hmm" }, { "time": 94.65960800762939, "text": "We will, we will rock you", "meaning": "Sizi, sizi sallayacağız" }, { "time": 100, "text": "Alright", "meaning": "Tamam 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: '-tJYN-eG1zk', // 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); } }
Şarkının çevirisi çok iyi gerçekten teşekkürler.
🙏