Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Youtube player is not broken anymore when user clicks on links.

  • Loading branch information...
commit 1109bf8cbac78fdad154e08b281e3df7377555bf 1 parent 5a12cea
Alexis Bernard authored
View
2  app/assets/javascripts/player.js.coffee
@@ -16,7 +16,7 @@ class @Player
@youtube.appendChild(param = document.createElement('param'))
param.setAttribute("name", "allowScriptAccess")
param.setAttribute("value", "always")
- $('.tracks')[0].appendChild(@youtube)
+ document.body.parentElement.appendChild(@youtube) # Attach to HTML to prevents turbolinks from replacing the flash embed.
@autoPlay()
observe: (name, callback) ->
View
6 app/assets/stylesheets/base.css
@@ -224,6 +224,12 @@ footer section.settings {
width: 100%;
}
+/* TODO: Overlap track cover. */
+#youtube-player {
+ position: absolute;
+ top: -200px;
+}
+
@media (min-width: 200px) {
.track {
width: 50%;
Please sign in to comment.
Something went wrong with that request. Please try again.