Skip to content

Instantly share code, notes, and snippets.

View samanpwbb's full-sized avatar

Saman Bemel-Benrud samanpwbb

View GitHub Profile
@samanpwbb
samanpwbb / index.html
Created September 5, 2012 19:22 — forked from tmcw/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
var locked = true,
b = $('.branding');
var fadeOut = setInterval(function() {
if (!locked) b.removeClass('visible');
}, 3000); // Change the 3000 value to your liking.
$('body').mousemove(function() {
locked = false;
clearInterval(fadeOut);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href='//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script>
<style>
#map { position:absolute; top:0; bottom:0; width:100%; }
.mapbox-maplogo {
position:absolute;
@samanpwbb
samanpwbb / index.html
Last active December 16, 2016 16:57 — forked from tristen/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
body {
font: 16px sans-serif;
margin: 0;