lib/onebox/helpers.rb in onebox-1.5.16 vs lib/onebox/helpers.rb in onebox-1.5.17

- old
+ new

@@ -49,7 +49,11 @@ when Net::HTTPRedirection then fetch_response(response['location'], limit - 1, "#{uri.scheme}://#{uri.host}",header) else response.error! end end + + def self.click_to_scroll_div(width = 690, height = 400) + "<div style=\"background:transparent;position:relative;width:#{width}px;height:#{height}px;top:#{height}px;margin-top:-#{height}px;\" onClick=\"style.pointerEvents='none'\"></div>" + end end end