Skip to content

Commit

Permalink
added play icon to desktop as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshsharma committed Feb 8, 2015
1 parent ef752f1 commit 42145a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
25 changes: 3 additions & 22 deletions css/invite.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,28 +193,9 @@ div.mobile-play {
background-image: url('../images/circle_outline_play.png');
position: absolute;
left: 43%;
top: 48%;
top: 40%;
width: 128px;
height: 128px;
opacity: 0.5;
display: none;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
div.mobile-play{
display:block;
}
opacity: 0.7;
cursor: pointer;
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
div.mobile-play{
display:block;
}
}
2 changes: 2 additions & 0 deletions javascripts/video_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ $(document).ready(function(){

$(video_tag).on("ended", function(){
console.log("ended");
$("div.mobile-play").show();
});

$(video_tag).on("pause", function(){
console.log("paused");
$("li.play-status.playing").toggleClass("playing").toggleClass("paused");
$("div.mobile-play").show();
});

$("li.play-status").on('click', function(e){
Expand Down

0 comments on commit 42145a4

Please sign in to comment.