Skip to content

Instantly share code, notes, and snippets.

@m3mnoch
Last active August 29, 2015 14:21
Show Gist options
  • Save m3mnoch/1d3f5a1f5d0d7efd86dd to your computer and use it in GitHub Desktop.
Save m3mnoch/1d3f5a1f5d0d7efd86dd to your computer and use it in GitHub Desktop.
blank html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
body {background-color: #474747;}
h1 {font: 70px Tahoma, Helvetica, Arial, Sans-Serif;color: #222;text-shadow: 0px 2px 3px #555;position: absolute;top: 40%;left: 50%;margin-right: -50%;transform: translate(-50%, -50%) }
</style>
<script>
window.onload = function() {
var myText = "[[m3mnoch]]";
var myHeaders = document.getElementsByTagName("h1");
var myTitle = document.getElementsByTagName("title");
myHeaders[0].innerHTML= myText;
myTitle[0].innerHTML= myText;
}
</script>
</head>
<body>
<h1></h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment