0

Ouranos- Gök Tanrı (Yunanca)

Ibrahim Usta 3 yıl önce 0
0

<!DOCTYPE html> <html lang="tr"> <head> <!-- HTML --> <!-- Custom Styles --> body{ background-color: yellow; } t{ top: 100px; left: 50%; position: absolute; font-size: 100px; font-weight: bold; font-family: &#039;Courier New&#039;, Courier, monospace; text-shadow: 2px 2px 10px #B2B2B2 } g{ top: 10px; left: 50%; position: absolute; font-size: 50px; font-family: Cambria, Cochin, Georgia, Times, &#039;Times New Roman&#039;, serif; } </head> <body id="body"> <!-- Project --> <g id="g"></g> <t id="t"></t> <!--ECMA Script --> function id(id) { return document.getElementById(id); } function turn(fx,FPS) { setInterval(function(){ fx(); },1000/FPS) } const t = id("t"); const body = id("body") var cahal = { speed: 3, x: 0, y: 0 } turn(function(){ t.style.top = cahal.x + &#039;px&#039;; cahal.x += cahal.speed; t.style.left = cahal.y + &#039;px&#039;; cahal.y += cahal.speed; if (cahal.x>=window.innerWidth-300&&cahal.y>=window.innerHeight-300) { cahal.speed = -3; } else if (cahal.x<50&&cahal.y<50) { cahal.speed = 3; } },60) const colors = [&#039;black&#039;,&#039;red&#039;,&#039;green&#039;,&#039;blue&#039;,&#039;yellow&#039;,&#039;brown&#039;,&#039;pink&#039;] const colors2 = [&#039;#39F5FF&#039;,&#039;#39FF93&#039;,&#039;#FFA60A&#039;,&#039;#FFA60A&#039;,&#039;#FF8484&#039;,&#039;#84FFCE&#039;,&#039;#DB84FF&#039;] turn(function(){ var e = Math.floor(Math.random()*colors.length); t.style.color = colors[e]; },1) setInterval(function(){ var e2 = Math.floor(Math.random()*colors2.length); body.style.backgroundColor = colors2[e2] },2000) </body> </html>

cahal 3 yıl önce 0
0

< ve > korumali, islemez

morgan 3 yıl önce 0