Skip to content

Instantly share code, notes, and snippets.

@jwestbrook
jwestbrook / boilerplate.html
Last active December 16, 2015 09:59
html5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>project-name</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>project-name</h1>
</body>
/**
* Bind and Trigger custom and native events in Prototype
* @author Juriy Zaytsev (kangax)
* @author Benjamin Lupton (balupton)
* @copyright MIT license
**/
(function(){
var eventMatchers = {
'HTMLEvents': /^(?:load|unload|abort|error|select|hashchange|popstate|change|submit|reset|focus|blur|resize|scroll)$/,