-
Notifications
You must be signed in to change notification settings - Fork 574
/
bookmarklet.html
22 lines (22 loc) · 956 Bytes
/
bookmarklet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>geojson.io</title>
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<style>
a {
border-radius:5px;
background:#eee;
padding:5px;
}
body {
color:#222;
font:normal 12px/20px sans-serif;
}
</style>
</head>
<body>
<a href='javascript:var SITE="http://geojson.io";"github.com"==location.hostname&&window.location.href.match(/\.(geo)?json$/)?window.open(SITE+"/#github:"+location.pathname):"gist.github.com"==location.hostname?window.open(SITE+"/#gist:"+location.pathname):alert("Sorry, looks like you aren't on GitHub or aren't looking at a GeoJSON file");'>edit on geojson.io</a> ← drag this link to you address bar, and click it to edit a GitHub file in geojson.io
</body>
</html>