Skip to content

Commit

Permalink
Publishing latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bretmcg committed Aug 26, 2014
1 parent 1d20718 commit d36d1d3
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
8 changes: 6 additions & 2 deletions advanced/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Application.prototype.onClick_ = function() {
Application.prototype.onFullscreenClick_ = function() {
if (this.fullscreen) {
// The video is currently in fullscreen mode
var cancelFullscreen = document.exitFullScreen ||
var cancelFullscreen = document.exitFullscreen ||
document.exitFullScreen ||
document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
if (cancelFullscreen) {
Expand All @@ -144,7 +145,10 @@ Application.prototype.onFullscreenClick_ = function() {
}
} else {
// Try to enter fullscreen mode in the browser
var requestFullscreen = document.documentElement.requestFullScreen ||
var requestFullscreen = document.documentElement.requestFullscreen ||
document.documentElement.webkitRequestFullscreen ||
document.documentElement.mozRequestFullscreen ||
document.documentElement.requestFullScreen ||
document.documentElement.webkitRequestFullScreen ||
document.documentElement.mozRequestFullScreen;
if (requestFullscreen) {
Expand Down
4 changes: 2 additions & 2 deletions advanced/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
</video>
<div id="adcontainer">
</div>
<button id="playpause">&#9654;</button>
<button id="fullscreen">[&nbsp;&nbsp;]</button>
<button id="playpause" title="Play/Pause">&#9654;</button>
<button id="fullscreen" title="Full screen">[&nbsp;&nbsp;&nbsp;]</button>
</div>

<!-- Declare a div where you want the companion to appear. Use
Expand Down
2 changes: 1 addition & 1 deletion advanced/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ footer {
#fullscreen {
position: absolute;
bottom: 20px;
right: 20px;
left: 140px;
height: 40px;
width: 100px;
border-style: none;
Expand Down
8 changes: 6 additions & 2 deletions playlist/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ Application.prototype.switchButtonToPlay_ = function() {
Application.prototype.onFullscreenClick_ = function() {
if (this.fullscreen) {
// The video is currently in fullscreen mode
var cancelFullscreen = document.exitFullScreen ||
var cancelFullscreen = document.exitFullscreen ||
document.exitFullScreen ||
document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
if (cancelFullscreen) {
Expand All @@ -155,7 +156,10 @@ Application.prototype.onFullscreenClick_ = function() {
}
} else {
// Try to enter fullscreen mode in the browser
var requestFullscreen = document.documentElement.requestFullScreen ||
var requestFullscreen = document.documentElement.requestFullscreen ||
document.documentElement.webkitRequestFullscreen ||
document.documentElement.mozRequestFullscreen ||
document.documentElement.requestFullScreen ||
document.documentElement.webkitRequestFullScreen ||
document.documentElement.mozRequestFullScreen;
if (requestFullscreen) {
Expand Down
6 changes: 3 additions & 3 deletions playlist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
</video>
<div id="adcontainer">
</div>
<button id="playpause">&#9654;</button>
<button id="replay">&#8634;</button>
<button id="fullscreen">[&nbsp;&nbsp;]</button>
<button id="playpause" title="Play/Pause">&#9654;</button>
<button id="replay" title="Replay">&#8634;</button>
<button id="fullscreen" title="Full screen">[&nbsp;&nbsp;&nbsp;]</button>
</div>

<!-- Declare a div where you want the companion to appear. Use
Expand Down
2 changes: 1 addition & 1 deletion playlist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ footer {
#fullscreen {
position: absolute;
bottom: 20px;
right: 20px;
left: 140px;
height: 40px;
width: 100px;
border-style: none;
Expand Down

0 comments on commit d36d1d3

Please sign in to comment.