Last active
December 21, 2016 15:41
-
-
Save mattborn/cf61fc94bb7df248a717eb06d243e79b to your computer and use it in GitHub Desktop.
Static boilerplate
This file contains hidden or 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
This file contains hidden or 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> | |
<head> | |
<title>Static Boilerplate</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.2/lodash.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"></script> | |
<script src="scripts.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
document.onkeydown = function (e) { | |
if (e.which === 37) { | |
console.log('left'); | |
} | |
if (e.which === 39) { | |
console.log('right'); | |
} | |
}; |
This file contains hidden or 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
@import "https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"; | |
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"; | |
body { | |
color: #444; | |
font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif; /* smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide */ | |
-webkit-font-smoothing: antialiased; | |
line-height: 1; | |
} | |
h1, | |
h2 { | |
font-weight: 600; | |
margin: 1.5em 0 .5em; | |
} | |
a { | |
color: magenta; | |
font-weight: 600; | |
text-decoration: none; | |
} | |
a:hover { text-decoration: underline; } | |
button, | |
input { | |
box-sizing: border-box; | |
color: inherit; | |
font-family: inherit; | |
font-size: inherit; | |
} | |
button { cursor: pointer; } | |
input { | |
border: 1px solid #ddd; | |
padding: 8px; | |
} | |
input:focus { | |
border-color: magenta; | |
outline: none; | |
} | |
img, | |
video { max-width: 100%; } | |
:focus { outline-color: magenta; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment