Skip to content

Instantly share code, notes, and snippets.

@bcho
Forked from anonymous/index.html
Created October 2, 2013 10:48
Show Gist options
  • Save bcho/6791926 to your computer and use it in GitHub Desktop.
Save bcho/6791926 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>know your web</title>
<link rel="stylesheet" href="web.css" />
</head>
<body>
<h1 class="title cool">hello, world!</h1>
<script type="text/javascript" src="web.js"></script>
</body>
</html>
body {
height: 100%;
width: 100%;
background-color: black;
}
.title {
font-size: 60px;
line-height: 1.2em;
}
.cool {
color: yellow;
}
(function() {
console.log('hello, world!');
var title = document.querySelector('.title');
window.setInterval(function() {
title.style.display = (title.style.display === 'none') ? ('inline') : ('none');
}, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment