Last active
June 12, 2017 04:45
-
-
Save ynunokawa/7e42756b0c3fa42f9197a34fa3c485ae to your computer and use it in GitHub Desktop.
Google2Mable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Mable Bookmarklets</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<link rel="icon" href="https://mable.me/img/mable.ico"> | |
<!-- Bootstrap Core CSS --> | |
<link href="https://mable.me/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- Custom Fonts --> | |
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet"> | |
<style> | |
html, body { | |
margin: 15px; | |
} | |
a { | |
background-color: transparent; | |
-webkit-cursor: grab; | |
cursor: grab; | |
} | |
.btn { | |
display: inline-block; | |
padding: 6px 12px; | |
margin-bottom: 15px; | |
margin-top: 15px; | |
font-size: 14px; | |
font-weight: 400; | |
line-height: 1.42857143; | |
text-align: center; | |
white-space: nowrap; | |
vertical-align: middle; | |
-ms-touch-action: manipulation; | |
touch-action: manipulation; | |
cursor: -webkit-grab; | |
cursor: grab; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
background-image: none; | |
border: 1px solid #54d08e; | |
font-family: Lato,Helvetica,Arial,sans-serif; | |
text-transform: uppercase; | |
letter-spacing: 2px; | |
border-radius: 300px; | |
padding: 15px 45px; | |
font-size: 11px; | |
transition: all .4s; | |
text-decoration: none; | |
color: #54d08e; | |
} | |
.btn:hover { | |
color: #fff; | |
background-color: #54d08e; | |
border-color: #54d08e; | |
} | |
.demo { | |
margin-top: 30px; | |
} | |
.demo > img { | |
height: 450px; | |
} | |
.tooltip-inner { | |
font-family: Lato, Helvetica, Arial, sans-serif; | |
/*background-color: #646af5;*/ | |
background-color: rgba(0,0,0,0.5); | |
padding: 10px; | |
} | |
.tooltip.right .tooltip-arrow { | |
border-right-color: rgba(0,0,0,0.5); | |
} | |
.tooltip.right { | |
margin-right: -12px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Google2Mable</h1> | |
<h4>Google マップで表示している位置そのままで Mable Preview に遷移できるブックマークレット</h4> | |
<a class="btn" data-toggle="tooltip" data-placement="right" title="ブックマークバーにドラッグ&ドロップして使ってください" href="javascript:(function(){var%20p=location.href.split('?')[0].split('/');for(var%20i=0;i<p.length;i++){if(p[i].match(/^@/)){var%20lt=p[i];lt=lt.substr(1);lt=lt.substr(0,lt.length-1);window.open('https://mable.me/preview/#map='+(lt.split(',')[2]-1)+'/'+lt.split(',')[0]+'/'+lt.split(',')[1],'_blank');}}})();">Google2Mable</a> | |
<div class="demo"> | |
<img src="https://cdn-images-1.medium.com/max/800/1*L7BdqW_tjLylGt7NUerf-g.gif"> | |
</div> | |
<!-- jQuery --> | |
<script src="https://mable.me/vendor/jquery/jquery.min.js"></script> | |
<!-- Bootstrap Core JavaScript --> | |
<script src="https://mable.me/vendor/bootstrap/js/bootstrap.min.js"></script> | |
<script> | |
$(function () { | |
$('[data-toggle="tooltip"]').tooltip('show'); | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment