Skip to content
Browse files

clicking on share, settings or help now pauses video

  • Loading branch information...
1 parent 4083a9e commit c30f82d6a9fb1476f0db95565dc52a24553f9004 @brianchirls committed Sep 19, 2011
Showing with 69 additions and 63 deletions.
  1. +63 −63 client/js/remix.min.js
  2. +6 −0 client/js/script.js
View
126 client/js/remix.min.js
63 additions, 63 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6 client/js/script.js
@@ -1477,6 +1477,8 @@
var settings = document.getElementById('settings-controls');
var show = !settings.offsetHeight;
+ video.pause();
+
hideAllControls();
//toggle
if (show) {
@@ -1639,6 +1641,8 @@
document.getElementById('help-button').addEventListener('click', function() {
var help = document.getElementById('help-controls');
var show = !help.offsetHeight;
+
+ video.pause();
hideAllControls();
//toggle
@@ -1652,6 +1656,8 @@
var share = document.getElementById('share-controls');
var show = !share.offsetHeight;
+ video.pause();
+
hideAllControls();
//toggle
if (show) {

0 comments on commit c30f82d

Please sign in to comment.
Something went wrong with that request. Please try again.