Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated video.

  • Loading branch information...
commit fc377c0910796174e502fdd76a6e002296c53184 1 parent 4fee206
@robertmilner authored
View
57 app/assets/javascripts/global.js
@@ -63,35 +63,32 @@ $(document).ready(function($) {
// });
// // end
- // YouTube Video Resize
- // Find all YouTube videos
- var $allVideos = $("iframe[src^='http://www.youtube.com']"),
- // The element that is fluid width
- $fluidEl = $(".item");
- // Figure out and save aspect ratio for each video
- $allVideos.each(function() {
- $(this)
- .data('aspectRatio', this.height / this.width)
-
- // and remove the hard coded width/height
- .removeAttr('height')
- .removeAttr('width');
- });
- // When the window is resized
- // (You'll probably want to debounce this)
- $(window).resize(function() {
- var newWidth = $fluidEl.width();
- // Resize all videos according to their own aspect ratio
- $allVideos.each(function() {
- var $el = $(this);
- $el
- .width(newWidth)
- .height(newWidth * $el.data('aspectRatio'));
- });
- // Kick off one resize to fix all videos on page load
- }).resize();
- // end
-
- $().find
+ // // YouTube Video Resize
+ // // Find all YouTube videos
+ // var $allVideos = $("iframe[src^='http://www.youtube.com']"),
+ // // The element that is fluid width
+ // $fluidEl = $(".item");
+ // // Figure out and save aspect ratio for each video
+ // $allVideos.each(function() {
+ // $(this)
+ // .data('aspectRatio', this.height / this.width)
+ // // and remove the hard coded width/height
+ // .removeAttr('height')
+ // .removeAttr('width');
+ // });
+ // // When the window is resized
+ // // (You'll probably want to debounce this)
+ // $(window).resize(function() {
+ // var newWidth = $fluidEl.width();
+ // // Resize all videos according to their own aspect ratio
+ // $allVideos.each(function() {
+ // var $el = $(this);
+ // $el
+ // .width(newWidth)
+ // .height(newWidth * $el.data('aspectRatio'));
+ // });
+ // // Kick off one resize to fix all videos on page load
+ // }).resize();
+ // // end
});
View
5 app/assets/stylesheets/global/global.css.scss
@@ -56,6 +56,5 @@ em {
background: $blue;
}
-.clearfix {
- clear: both;
-}
+.clearfix { clear: both; }
+.bottom { padding: 50px; }
View
2  app/views/pages/_carousel.html.haml
@@ -52,7 +52,7 @@
- else
.item.active There's no excuse for no excuses! There's only an excuse for Oh, Excuses... Why don't you create one?
- .clearfix
+ .clearfix.bottom
.carousel-forward-button
.carousel-forward-icon
View
8 app/views/pages/_robert.html.erb
@@ -210,13 +210,7 @@
</div>
<div class="item">
<div style="padding-bottom: 40px; text-align: center;">
- <object style="height: 390px; width: 640px;">
- <param name="movie" value="https://www.youtube.com/v/ZGennCHeXAk?version=3&feature=player_embedded&showinfo=0&vq=hd720&showsearch=0&rel=0&autohide=1&fs=1&feature=player_embedded">
- <param name="allowFullScreen" value="true">
- <param name="window" value="wmode">
- <param name="allowScriptAccess" value="always">
- <embed src="https://www.youtube.com/v/ZGennCHeXAk?version=3&feature=player_embedded&showinfo=0&vq=hd720&showsearch=0&rel=0&autohide=1&fs=1&feature=player_embedded" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360">
- </object>
+ <iframe width="640" height="360" src="http://www.youtube.com/embed/nDFZRrV9QzE?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div class="details">
<div class="favorite">
View
1  app/views/pages/robert.html.haml
@@ -7,5 +7,4 @@
.space
- / = render 'carousel', :excuses => @excuses
= render 'robert'
Please sign in to comment.
Something went wrong with that request. Please try again.