Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: dejan/auto_html
base: master
...
head fork: ebeigarts/auto_html
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
3  lib/auto_html/filters/vimeo.rb
@@ -6,8 +6,9 @@
show_title = "title=0" unless options[:show_title]
show_byline = "byline=0" unless options[:show_byline]
show_portrait = "portrait=0" unless options[:show_portrait]
+ wmode = "wmode=#{options[:wmode]}" if options[:wmode]
frameborder = options[:frameborder] || 0
- query_string_variables = [show_title, show_byline, show_portrait].compact.join("&")
+ query_string_variables = [show_title, show_byline, show_portrait, wmode].compact.join("&")
query_string = "?" + query_string_variables unless query_string_variables.empty?
%{<iframe src="http://player.vimeo.com/video/#{vimeo_id}#{query_string}" width="#{width}" height="#{height}" frameborder="#{frameborder}"></iframe>}
View
4 lib/auto_html/filters/youtube.rb
@@ -5,7 +5,9 @@
width = options[:width]
height = options[:height]
frameborder = options[:frameborder]
- %{<iframe class="youtube-player" type="text/html" width="#{width}" height="#{height}" src="http://www.youtube.com/embed/#{youtube_id}" frameborder="#{frameborder}">
+ query_string = "?wmode=#{options[:wmode]}" if options[:wmode]
+
+ %{<iframe class="youtube-player" type="text/html" width="#{width}" height="#{height}" src="http://www.youtube.com/embed/#{youtube_id}#{query_string}" frameborder="#{frameborder}">
</iframe>}
end
end

No commit comments for this range

Something went wrong with that request. Please try again.