Last active
July 9, 2020 17:45
-
-
Save TheRealCasadaro/35584201fc01a42481105bfc2b0c792f to your computer and use it in GitHub Desktop.
Hello World Source Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Hello World</title> | |
<style> | |
#greeting{ | |
width: 80%; | |
height: 100vh; | |
text-align: center; | |
font-size: 32px; | |
text-transform: uppercase; | |
font-family: sans-serif; | |
margin: auto; | |
margin-top: 20%; | |
} | |
#greeting span{ | |
font-size: 16px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="greeting"> | |
</div> | |
</body> | |
<script> | |
var user = prompt("Enter your name, please:"); | |
if (user != null) { | |
document.getElementById("greeting").innerHTML = "Greetings, <br>" + user + "!" + "<br><span> ~Casadaro. 😉</span> <br><span> <a href='https://www.therealcasadaro.com'> personal website</a> </span> <br> <span> <a href='https://gist.github.com/TheRealCasadaro/77d06c5ac27444dc3151ae94120fbb2d'>source code for this website</a> </span>"; | |
alert("Greetings, Nice to meet you" + user + "!") | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I can't figure out how to get gist to wrap text so line 37 is realy long.