Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (23 sloc) 1.07 KB
%html
%head
%title videos on /r/dubstep
%script{ :type => 'text/javascript', :src => '/javascripts/prototype.js' }
%script{ :type => 'text/javascript', :src => '/javascripts/swfobject.js' }
%script{ :type => 'text/javascript', :src => '/javascripts/dubbit.js' }
%link{ :href => "/stylesheets/dubbit.css", :media => "screen", :rel => "stylesheet", :type => "text/css" }
%body
%h2 /r/dubstep video browser
%h1 What's up, dude?
#controls
%a.prev{ :href => 'javascript:void(0);', :onClick => 'prevVideo(); return false;' } Previous
%a.next{ :href => 'javascript:void(0);', :onClick => 'nextVideo(); return false;' } Next
%div.clear
#player-container
#video-info
#about
Built w/Ruby + Sinatra:
%a{ :href => 'http://github.com/chrisb/sinatra-reddit-video-player' } Source Code @ GitHub
|
%a{ :href => 'http://www.reddit.com/r/dubstep/comments/bnujw/another_rdubstep_player_but_with_continuous_play/' } Feedback/Discuss
:javascript
var playlist = [ #{@db[:videos].all.map { |r| r.to_json }.join(',')} ];
Something went wrong with that request. Please try again.