Skip to content

Instantly share code, notes, and snippets.

@kayakaya
Created March 31, 2010 09:19
Show Gist options
  • Save kayakaya/350123 to your computer and use it in GitHub Desktop.
Save kayakaya/350123 to your computer and use it in GitHub Desktop.
# latlonglab_route.rb
# modify plugin written by <http://elpeo.jp/diary/20091228.html#p01>
def route( id, w = 480, h = 480 )
if feed? or @conf.mobile_agent?
return %Q|<p><a href="http://latlonglab.yahoo.co.jp/route/watch?id=#{id}">Link to LatLongLab Route</a></p>|
end
if @conf.iphone?
w = 240
h = 380
end
<<-HTML
<div class="latlonglab-route">
<script type="text/javascript" encoding="UTF-8" src="http://latlonglab.yahoo.co.jp/route/paste?id=#{id}&width=#{w}&height=#{h}"></script>
</div>
HTML
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment