Sha256: 5e84042dc1f21b9615db3e798dd5d95725b347997d518ed284289ed93fa4ba02

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 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

5 entries across 5 versions & 1 rubygems

Version Path
onebox-1.5.64 lib/onebox/engine/slides_onebox.rb
onebox-1.5.63 lib/onebox/engine/slides_onebox.rb
onebox-1.5.62 lib/onebox/engine/slides_onebox.rb
onebox-1.5.61 lib/onebox/engine/slides_onebox.rb
onebox-1.5.60 lib/onebox/engine/slides_onebox.rb