Created
October 2, 2013 10:47
-
-
Save anonymous/6791913 to your computer and use it in GitHub Desktop.
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"> | |
<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> |
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
body { | |
height: 100%; | |
width: 100%; | |
background-color: black; | |
} | |
.title { | |
font-size: 60px; | |
line-height: 1.2em; | |
} | |
.cool { | |
color: yellow; | |
} |
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
(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