1
0

more testing for button

This commit is contained in:
Andrew Tomaka 2014-09-25 09:59:13 -04:00
parent 77c1370ac4
commit 8b754f57b3
2 changed files with 7 additions and 9 deletions

View File

@ -13,14 +13,12 @@ div {
} }
.button { .button {
top: 50% !important;
left: 50% !important;
padding: 10px; padding: 10px;
border-radius: 10px; border-radius: 10px;
margin: auto;
background: rgba(0, 0, 0, .5); background: rgba(0, 0, 0, .5);
color: white; color: white;
font-size: 3em; font-size: 40vw;
text-align: center; text-align: center;
} }

View File

@ -31,7 +31,7 @@
$('#pause').hide(); $('#pause').hide();
} else { } else {
$('#play').hide(); $('#play').hide();
$('#pause').hide(); $('#pause').show();
} }
var mediaPlayer = jQuery('#player'); var mediaPlayer = jQuery('#player');
@ -53,18 +53,18 @@
}); });
$('#play').click(function() { $('#play').click(function() {
if(isMobile.any()) { //if(isMobile.any()) {
$('#play').hide(); $('#play').hide();
$('#pause').show(); $('#pause').show();
} //}
$('#player').jPlayer('play'); $('#player').jPlayer('play');
}); });
$('#pause').click(function() { $('#pause').click(function() {
if(isMobile.any()) { //if(isMobile.any()) {
$('#play').show(); $('#play').show();
$('#pause').hide(); $('#pause').hide();
} //}
$('#player').jPlayer('pause'); $('#player').jPlayer('pause');
}); });