Skip to content

Instantly share code, notes, and snippets.

@mikehearn

mikehearn/hello.html

Last active Sep 30, 2017
Embed
What would you like to do?
HTML version of the JavaFX JavaScript hello world sample
<html>
<head>
<title>Hello World!</title>
<style>
div.centered {
padding: 1em;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
</style>
</head>
<body>
<div class="centered">
<button onclick="console.log('Hello World!');">Hello World!</button>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.