diff --git a/subtask2-1/hello.cpp b/subtask2-1/hello.cpp index 036dd39..3374cae 100644 --- a/subtask2-1/hello.cpp +++ b/subtask2-1/hello.cpp @@ -3,6 +3,6 @@ using namespace std; int main() { - cout<<"Hello World"< 180) tY = 180; - if(tY < 0) tY = 0; - obj.style.transform = "rotateX(" + (-tY) + "deg) rotateY(" + (tX) + "deg)"; + if (tY > 180) tY = 180; + if (tY < 0) tY = 0; + obj.style.transform = "rotateX(" + -tY + "deg) rotateY(" + tX + "deg)"; } function playSpin(yes) { - ospin.style.animationPlayState = (yes?'running':'paused'); + ospin.style.animationPlayState = yes ? "running" : "paused"; } -var sX, sY, nX, nY, desX = 0, - desY = 0, - tX = 0, - tY = 10; +var sX, + sY, + nX, + nY, + desX = 0, + desY = 0, + tX = 0, + tY = 10; if (autoRotate) { - var animationName = (rotateSpeed > 0 ? 'spin' : 'spinRevert'); - ospin.style.animation = `${animationName} ${Math.abs(rotateSpeed)}s infinite linear`; + var animationName = rotateSpeed > 0 ? "spin" : "spinRevert"; + ospin.style.animation = `${animationName} ${Math.abs( + rotateSpeed + )}s infinite linear`; } if (bgMusicURL) { - document.getElementById('music-container').innerHTML += ` -