Changeset 10697 for platform/tdiary/plugin
- Timestamp:
- 04/29/08 00:19:25 (7 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/nicovideo.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/nicovideo.rb
r7792 r10697 5 5 # Distributed under GPL. 6 6 # 7 # usage: <%= nicovideo 'sm99999999' %> 7 # usage: 8 # Link to the movie and show thumbnail , description...: 9 # <%= nicovideo 'sm99999999' %> 10 # 11 # Show Inline player: 12 # <%= nicovideo_player 'sm99999999' %> 13 # 14 # Show Inline player with size: 15 # <%= nicovideo_player 'sm99999999', [400,300] %> 8 16 # 9 17 require 'open-uri' … … 80 88 end 81 89 end 90 91 def nicovideo_player( video_id, size = nil ) 92 if feed? then 93 nicovideo( video_id ) 94 else 95 s = '' 96 if size then 97 s = "?w=#{h size[0]}&h=#{h size[1]}" 98 end 99 %Q|<script type="text/javascript" src="http://www.nicovideo.jp/thumb_watch/#{video_id}#{s}"></script>| 100 end 101 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)