more testing for button
This commit is contained in:
parent
77c1370ac4
commit
8b754f57b3
@ -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;
|
||||||
}
|
}
|
||||||
|
10
index.html
10
index.html
@ -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');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user