mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issues with mobileplayer
This commit is contained in:
@@ -725,7 +725,7 @@ hide mdi-action-visibility mdi-action-visibility-off
|
|||||||
transition: padding 1s ease;
|
transition: padding 1s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mdi-navigation-close {
|
.mdi-navigation-close {
|
||||||
text-align:right !important;
|
text-align:right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1462,7 +1462,7 @@ ul #chat-log{
|
|||||||
|
|
||||||
#player{
|
#player{
|
||||||
height:95%;
|
height:95%;
|
||||||
height: calc(100% - 32px);
|
height: calc(100%);
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: translate(0%, 0%);
|
transform: translate(0%, 0%);
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
@@ -2235,8 +2235,8 @@ nav ul li:hover, nav ul li.active {
|
|||||||
display: block !important;
|
display: block !important;
|
||||||
width: 106vw !important;
|
width: 106vw !important;
|
||||||
height: 200px !important;
|
height: 200px !important;
|
||||||
z-index: 2;
|
z-index: 9999;
|
||||||
bottom: 22px;
|
bottom: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chan {
|
.chan {
|
||||||
|
|||||||
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/main.min.js
vendored
2
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -712,32 +712,34 @@ window.enable_debug = enable_debug;
|
|||||||
window.disable_debug = disable_debug;
|
window.disable_debug = disable_debug;
|
||||||
|
|
||||||
function seekToMove(e){
|
function seekToMove(e){
|
||||||
|
if(!Helper.mobilecheck()) {
|
||||||
|
var pos_x = e.clientX - Math.ceil($("#seekToDuration").width() / 2) - 8;
|
||||||
|
if(pos_x < 0) pos_x = 0;
|
||||||
|
else if(pos_x + $("#seekToDuration").width() > $("#controls").width()) {
|
||||||
|
pos_x = $("#controls").width() - $("#seekToDuration").width();
|
||||||
|
}
|
||||||
|
$("#seekToDuration").css("left", pos_x);
|
||||||
|
try{
|
||||||
|
//var total = Player.player.getDuration() / $("#controls").width();
|
||||||
|
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
|
||||||
|
total = total * e.clientX;
|
||||||
|
var _time = Helper.secondsToOther(total);
|
||||||
|
var _minutes = Helper.pad(_time[0]);
|
||||||
|
var _seconds = Helper.pad(Math.ceil(_time[1]));
|
||||||
|
$("#seekToDuration").text(_minutes + ":" + _seconds);
|
||||||
|
|
||||||
var pos_x = e.clientX - Math.ceil($("#seekToDuration").width() / 2) - 8;
|
var acceptable = ["bar", "controls", "duration"];
|
||||||
if(pos_x < 0) pos_x = 0;
|
if(acceptable.indexOf($(e.target).attr("id")) >= 0 && dragging) {
|
||||||
else if(pos_x + $("#seekToDuration").width() > $("#controls").width()) {
|
$("#bar").width(((100 / Player.player.getDuration()) * total) + "%");
|
||||||
pos_x = $("#controls").width() - $("#seekToDuration").width();
|
}
|
||||||
}
|
} catch(e){}
|
||||||
$("#seekToDuration").css("left", pos_x);
|
}
|
||||||
try{
|
|
||||||
//var total = Player.player.getDuration() / $("#controls").width();
|
|
||||||
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
|
|
||||||
total = total * e.clientX;
|
|
||||||
var _time = Helper.secondsToOther(total);
|
|
||||||
var _minutes = Helper.pad(_time[0]);
|
|
||||||
var _seconds = Helper.pad(Math.ceil(_time[1]));
|
|
||||||
$("#seekToDuration").text(_minutes + ":" + _seconds);
|
|
||||||
|
|
||||||
var acceptable = ["bar", "controls", "duration"];
|
|
||||||
if(acceptable.indexOf($(e.target).attr("id")) >= 0 && dragging) {
|
|
||||||
$("#bar").width(((100 / Player.player.getDuration()) * total) + "%");
|
|
||||||
}
|
|
||||||
} catch(e){}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function seekToClick(e){
|
function seekToClick(e){
|
||||||
var acceptable = ["bar", "controls", "duration"];
|
var acceptable = ["bar", "controls", "duration"];
|
||||||
if(acceptable.indexOf($(e.target).attr("id")) >= 0) {
|
|
||||||
|
if(acceptable.indexOf($(e.target).attr("id")) >= 0 && !Helper.mobilecheck()) {
|
||||||
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
|
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
|
||||||
total = total * e.clientX;
|
total = total * e.clientX;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user