Sha256: 66f2ebff2711d62e588c6b6508274cef19ab17e60b69fb1063e8d23baecd5153

Contents?: true

Size: 664 Bytes

Versions: 15

Compression:

Stored size: 664 Bytes

Contents

module Onebox
  module Engine
    class SlidesOnebox
      include Engine
      include StandardEmbed

      matches_regexp(/^https?:\/\/slides\.com\/[\p{Alnum}_\-]+\/[\p{Alnum}_\-]+$/)

      def to_html
        <<-HTML
          <iframe src="//slides.com#{uri.path}/embed?style=light"
                  width="576"
                  height="420"
                  scrolling="no"
                  frameborder="0"
                  webkitallowfullscreen
                  mozallowfullscreen
                  allowfullscreen>
          </iframe>
        HTML
      end

      def placeholder_html
        "<img src='#{raw[:image]}'>"
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
onebox-1.7.3 lib/onebox/engine/slides_onebox.rb
onebox-1.7.2 lib/onebox/engine/slides_onebox.rb
onebox-1.7.1 lib/onebox/engine/slides_onebox.rb
onebox-1.7.0 lib/onebox/engine/slides_onebox.rb
onebox-1.6.9 lib/onebox/engine/slides_onebox.rb
onebox-1.6.8 lib/onebox/engine/slides_onebox.rb
onebox-1.6.7 lib/onebox/engine/slides_onebox.rb
onebox-1.6.6 lib/onebox/engine/slides_onebox.rb
onebox-1.6.5 lib/onebox/engine/slides_onebox.rb
onebox-1.6.4 lib/onebox/engine/slides_onebox.rb
onebox-1.6.3 lib/onebox/engine/slides_onebox.rb
onebox-1.6.2 lib/onebox/engine/slides_onebox.rb
onebox-1.6.1 lib/onebox/engine/slides_onebox.rb
onebox-1.6.0 lib/onebox/engine/slides_onebox.rb
onebox-1.5.65 lib/onebox/engine/slides_onebox.rb