Sha256: 19602db3288e677d8ae31346010e01f9b0fa8e53bc90c5fb5be4981fb277929f

Contents?: true

Size: 665 Bytes

Versions: 41

Compression:

Stored size: 665 Bytes

Contents

#
# latlonglab_route.rb - tDiary plugin for LatLongLab Route
#
# Copyright (C) 2009, Michitaka Ohno <elpeo@mars.dti.ne.jp>
# Copyright (C) 2010, KAYA Satoshi <kayakaya@kayakaya.net>
# You can redistribute it and/or modify it under GPL2.
#

def route( id, w = 480, h = 480 )

  if feed?
    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" charset="UTF-8" src="http://latlonglab.yahoo.co.jp/route/paste?id=#{id}&amp;width=#{w}&amp;height=#{h}"></script>
  </div>
  HTML
end

Version data entries

41 entries across 35 versions & 2 rubygems

Version Path
tdiary-contrib-5.0.10 plugin/latlonglab_route.rb
tdiary-contrib-5.0.9 plugin/latlonglab_route.rb
tdiary-contrib-5.0.8 plugin/latlonglab_route.rb
tdiary-contrib-5.0.7 plugin/latlonglab_route.rb
tdiary-contrib-5.0.6 plugin/latlonglab_route.rb
tdiary-contrib-5.0.5 plugin/latlonglab_route.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/plugin/latlonglab_route.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/latlonglab_route.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/latlonglab_route.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/plugin/latlonglab_route.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/plugin/latlonglab_route.rb
tdiary-contrib-5.0.4 plugin/latlonglab_route.rb
tdiary-5.0.4 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/latlonglab_route.rb
tdiary-contrib-5.0.3 plugin/latlonglab_route.rb
tdiary-contrib-5.0.2 plugin/latlonglab_route.rb
tdiary-contrib-5.0.1 plugin/latlonglab_route.rb
tdiary-contrib-5.0.0 plugin/latlonglab_route.rb
tdiary-contrib-4.2.1 plugin/latlonglab_route.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/plugin/latlonglab_route.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/plugin/latlonglab_route.rb