Sha256: 77a6a64221689f14795fa21ee4b7a3c99ae37e842e7f02bb1468f9feb01bee4a

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

module Scribd_fu_Helper
  
  def display_scribd(object, alt_text = '')
    <<-END
      <script type=\"text/javascript\" src=\"http://www.scribd.com/javascripts/view.js\"></script>
      <div id=\"embedded_flash\">#{alt_text}</div>
      <script type=\"text/javascript\">
        var scribd_doc = scribd.Document.getDoc(#{object.scribd_id}, '#{object.scribd_access_key}');
        scribd_doc.write(\"embedded_flash\");
      </script>
    END
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mdarby-scribd_fu-1.1 lib/scribd_fu_helper.rb