Skip to content

Instantly share code, notes, and snippets.

View seantrane's full-sized avatar

Sean Trane Sciarrone seantrane

View GitHub Profile
@seantrane
seantrane / structure.html
Last active April 21, 2018 13:17
HTML: Structure
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 ie6" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
<title></title>
<meta name="description" content="">
@seantrane
seantrane / google-websearch.html
Last active April 21, 2018 13:18
HTML: Google WebSearch
<script src="http://www.google.com/jsapi?key=XXXXXXXXXXXXXXX"></script>
<script type="text/javascript">
google.load('search', '1');
function OnLoad() {
var searchControl = new google.search.SearchControl();
var webSearch = new google.search.WebSearch();
var options = new google.search.SearcherOptions();
var drawOptions = new google.search.DrawOptions();
options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_LINEAR);