YOU MIGHT NOT NEED JQUERY

by Yury

HTML

<!-- Please edit the index.jade or the files in comparisons/, this file is generated--><!--[if lt IE 10 ]> <html class="old-ie"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <title>You Might Not Need jQuery</title>
  <meta name="description" content="Examples of how to do common event, element, ajax and utility operations with plain javascript.">
  <link rel="icon" href="http://static.hubspot.com/favicon.ico">
  <link rel="stylesheet" href="css/prism.css">
  <link rel="stylesheet" href="css/index.css">
  <script type="text/javascript" src="//use.typekit.net/ghy0wve.js"></script>
  <script type="text/javascript">
    try{Typekit.load();}catch(e){}
    
  </script>
  <script src="js/prism.js"></script>
  <script src="js/index.js"></script>
</head>
<body>
  <div class="page">
    <header class="page-header">
      <div class="inner">
        <h1>You might <span class="highlighted">no</span>t need <span class="highlighted">jQuery</span></h1>
      </div>
      <div class="old-ie-message">You certainly can support IE 9 and below without jQuery, but we don't.  Please stop messing with us.</div>
    </header>
    <div class="explanation">
      <div class="inner">
        <p>jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application.</p>
        <p>
          If you're developing a library on the other hand, please take a moment to consider if you actually need jQuery as a dependency.
          Maybe you can include a few lines of utility code, and forgo the requirement.  If you're only targeting more modern browsers,
          you might not need anything more than what the browser ships with.
        </p>
        <p>
          At the very least, make sure you know what <a...

CSS

/** prism.css **/
/**
 * prism.js default theme for JavaScript, CSS and HTML
 * Based on dabblet (http://dabblet.com)
 * @author Lea Verou
 */

code[class*="language-"],
pre[class*="language-"] {
	color: inherit;
	font-family: Consolas, Monaco, 'Andale Mono', monospace;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #f3f3f3;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: slategray;
}

.token.punctuation {
	color: #999;
}

.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
	color: #905;
}

.token.selector,
.token.attr-name,
.token.string,
.token.builtin {
	color: #690;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #a67f59;
	background: hsla(0,0%,100%,.5);
}

.token.atrule,
.token.attr-value,
.token.keyword {
	color: #07a;
}


.token.regex,
.token.important {
	color: #e90;
}

.token.important {
	font-weight: bold;
}

.token.entity {
	cursor: help;
}

/** index.css **/
*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  overflow-y: scroll;
}
a {
  cursor: pointer;
  color: #08c;
}
::-webkit-input-placeholder {
  color: rgba(0,0,0,0.5);
}
:-moz-placeholder {
  color: rgba(0,0,0,0.5);
}
::-moz-placeholder {
  color: rgba(0,0,0,0.5);
}
:-ms-input-placeholder {
  color: rgba(0,0,0,0.5);
}
input[type="search"][required] {
  -webkit-border-radius: 0;
  border-radius: 0;
 ...