Created
July 8, 2009 20:32
-
-
Save miketierney/143164 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body class="support screencast"> | |
| # ... | |
| <h1 class="hidden"> | |
| <%= @screencast_name.titleize %> | |
| </h1> | |
| # ... | |
| <div class="movie"> | |
| <div id="<%= @screencast_name %>"> | |
| <strong>Flash is required to see this movie</strong> | |
| </div> | |
| </div> | |
| # ... | |
| </body> | |
| <% content_for :javascript_includes do %> | |
| <%= javascript_include_tag "swfobject.js" %> | |
| <script type="text/javascript" charset="utf-8"> | |
| var flashvars = {}; | |
| var params = {}; | |
| params.wmode = "transparent"; | |
| params.allowfullscreen = "true"; | |
| params.allowscriptaccess = "always"; | |
| var attributes = {}; | |
| swfobject.embedSWF("/screencasts/<%= @screencast_name %>.swf", "<%= @screencast_name %>", "640", "480", "9.0.0", false, flashvars, params, attributes); | |
| </script> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment