word OK มาจากฟ้า (Copy 1266)
✨ elzaphaN TV
<html> <head> <title>Let's Start </title> <style> body{ background-image: url('https://media.discordapp.net/attachments/806442516307902495/806874321288691763/90_20210204152045.png?width=717&height=335'); background-size: 100vw 100vh; background-position: top center; } .background { position: absolute; background-color:rgba(0, 0, 0, 0.7); height: 100vh; width: 80vw; top: 50%; left: 50%; transform: translate(-50%,-50%); } .platform { height: 50px; width: 100%; background-color: black; } .t_rex { height: 120px; width: 150px; left: 50%; margin: auto; margin-top: 380px; background-image:url("https://cdn.discordapp.com/attachments/806442516307902495/807077361891541023/20210204_223459.gif"); background-size:cover; } .box_input{ margin: auto; margin-top: 15px; height: 40px; width: 50vw; } .box_input input{ height: 100%; width: 100%; } </style> </head> <body> <div class="background"> <div class="t_rex"> </div> <div class="platform"> </div> <div class="box_input"> <input id="input_word"> </div> </div> <script> var input = input_word input.addEventListener("keyup", function(event) { if (event.keyCode === 13) { alert(input.value) } }); </script> </body> </html>