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.3.0 plugin/latlonglab_route.rb
tdiary-contrib-5.2.4 plugin/latlonglab_route.rb
tdiary-contrib-5.2.3 plugin/latlonglab_route.rb
tdiary-contrib-5.2.2 plugin/latlonglab_route.rb
tdiary-contrib-5.2.1 plugin/latlonglab_route.rb
tdiary-contrib-5.2.0 plugin/latlonglab_route.rb
tdiary-contrib-5.1.7 plugin/latlonglab_route.rb
tdiary-contrib-5.1.6 plugin/latlonglab_route.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/latlonglab_route.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/latlonglab_route.rb
tdiary-contrib-5.1.5 plugin/latlonglab_route.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/latlonglab_route.rb
tdiary-contrib-5.1.4 plugin/latlonglab_route.rb
tdiary-contrib-5.1.3 plugin/latlonglab_route.rb
tdiary-contrib-5.1.2 plugin/latlonglab_route.rb
tdiary-contrib-5.1.1 plugin/latlonglab_route.rb
tdiary-contrib-5.1.0 plugin/latlonglab_route.rb
tdiary-contrib-5.0.13 plugin/latlonglab_route.rb
tdiary-contrib-5.0.12 plugin/latlonglab_route.rb
tdiary-contrib-5.0.11 plugin/latlonglab_route.rb