Skip to content

Instantly share code, notes, and snippets.

Avatar

Saman Bemel-Benrud samanpwbb

View GitHub Profile
View 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;
View index.html
<!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;
View visible.js
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);
View 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>
You can’t perform that action at this time.