style(legacy): format (#2039)
This commit is contained in:
parent
7082c9693d
commit
1550d44ac5
122 changed files with 18369 additions and 15819 deletions
|
@ -1,19 +1,37 @@
|
|||
function getRandomIdPlayer(max) {
|
||||
return "playerHtml5Libretime_"+Math.floor(Math.random() * Math.floor(max));
|
||||
return "playerHtml5Libretime_" + Math.floor(Math.random() * Math.floor(max));
|
||||
}
|
||||
|
||||
function playerhtml5_insert(settings)
|
||||
{
|
||||
atp='';
|
||||
if(settings.autoplay==true) atp='autoplay';
|
||||
if(settings.forceHTTPS==true&&settings.url.indexOf('https')==-1) settings.url=settings.url.replace(/http/g, 'https');
|
||||
if(settings.replacePort!=''&&settings.replacePort!=false&&settings.replacePort!='false')
|
||||
{
|
||||
if(settings.replacePortTo!='') settings.replacePortTo=':'+settings.replacePortTo;
|
||||
settings.url=settings.url.replace(':'+settings.replacePort, settings.replacePortTo);
|
||||
}
|
||||
if(settings.codec=='mp3') settings.codec='mpeg';
|
||||
document.getElementById('html5player_skin').innerHTML += '<div id="div_'+settings.elementId+'" style="" ><audio loop controls id="'+settings.elementId+'" src="'+settings.url+'" '+atp+' type="audio/'+settings.codec+'" >'
|
||||
+'Ihr Browser unterstützt das Element <code>audio</code> nicht.'
|
||||
+'<\/audio><\/div>';
|
||||
function playerhtml5_insert(settings) {
|
||||
atp = "";
|
||||
if (settings.autoplay == true) atp = "autoplay";
|
||||
if (settings.forceHTTPS == true && settings.url.indexOf("https") == -1)
|
||||
settings.url = settings.url.replace(/http/g, "https");
|
||||
if (
|
||||
settings.replacePort != "" &&
|
||||
settings.replacePort != false &&
|
||||
settings.replacePort != "false"
|
||||
) {
|
||||
if (settings.replacePortTo != "")
|
||||
settings.replacePortTo = ":" + settings.replacePortTo;
|
||||
settings.url = settings.url.replace(
|
||||
":" + settings.replacePort,
|
||||
settings.replacePortTo
|
||||
);
|
||||
}
|
||||
if (settings.codec == "mp3") settings.codec = "mpeg";
|
||||
document.getElementById("html5player_skin").innerHTML +=
|
||||
'<div id="div_' +
|
||||
settings.elementId +
|
||||
'" style="" ><audio loop controls id="' +
|
||||
settings.elementId +
|
||||
'" src="' +
|
||||
settings.url +
|
||||
'" ' +
|
||||
atp +
|
||||
' type="audio/' +
|
||||
settings.codec +
|
||||
'" >' +
|
||||
"Ihr Browser unterstützt das Element <code>audio</code> nicht." +
|
||||
"</audio></div>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue