1
0
Fork 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 {
top: 50% !important;
left: 50% !important;
padding: 10px;
border-radius: 10px;
margin: auto;
background: rgba(0, 0, 0, .5);
color: white;
font-size: 3em;
font-size: 40vw;
text-align: center;
}

View file

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