Skip to content

Instantly share code, notes, and snippets.

@TheRealCasadaro
Last active July 9, 2020 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheRealCasadaro/35584201fc01a42481105bfc2b0c792f to your computer and use it in GitHub Desktop.
Save TheRealCasadaro/35584201fc01a42481105bfc2b0c792f to your computer and use it in GitHub Desktop.
Hello World Source Code
<!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>
@TheRealCasadaro
Copy link
Author

Sorry, I can't figure out how to get gist to wrap text so line 37 is realy long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment