Skip to content

Instantly share code, notes, and snippets.

View avanwart's full-sized avatar

Andrew Van Wart avanwart

  • San Francisco, CA
View GitHub Profile
var map;
var card_id;
var markers = [];
var infoWindow = new google.maps.InfoWindow();
const scrollToAnchor = (targetID) => {
const distanceToTop = (el) => {
return Math.floor(el.getBoundingClientRect().top);
};
//var targetID = ev.target.getAttribute('href');
javascript:(function(){document.getElementById("gateway-content").remove();
document.getElementById("site-content").removeAttribute("style");})();
<script>
(function(d) {
loadFonts = 1;
if(window.sessionStorage){
if(sessionStorage.getItem('useTypekit')==='false'){
loadFonts = 0;
}
}
if (loadFonts == 1) {
@avanwart
avanwart / pf-nav-css
Created June 19, 2013 22:22
Navbar CSS for PF
/* HEADER AREA */
.navbar-inner .brand {
float: left;
display: block;
padding: 0 3px 0 20px;
margin: 0 0 0 -20px;
font-size: 20px;
font-weight: 200;
line-height: 52px;
color: white;
@avanwart
avanwart / gist:2408177
Created April 17, 2012 18:50
JavaScript Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}