mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2024-12-28 02:02:40 +01:00
Add legal and improve JS
This commit is contained in:
parent
9c55d849e6
commit
f0672ec631
2 changed files with 15 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" style="margin-top: 30px; margin-bottom: 30px">
|
||||
<div class="container" style="margin-top: 30px; margin-bottom: 30px; padding-bottom: 50px;">
|
||||
<h1 class="display-3">TDTChannels</h1>
|
||||
<p class="lead">
|
||||
Bienvenido al reproductor del proyecto opensource TDTChannels
|
||||
|
@ -78,6 +78,17 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="navbar fixed-bottom container">
|
||||
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||
<em><strong>Nota</strong>: Esta web está diseñada únicamente para comprobar el funcionamiento con los canales
|
||||
del repositorio. Queda fuera del objetivo algún otro uso. El usuario es el responsable del
|
||||
uso que se le da a la web.</em>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Se espera en la URL este tipo de llamada
|
||||
// .html?type={audio,video}&channel={url_a_reproducir}
|
||||
|
@ -124,7 +135,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
getResolution(channelToReproduce);
|
||||
getResolution(channelToReproduce, updateResolution);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function getResolution(from) {
|
||||
function getResolution(from, fn_callback) {
|
||||
$.get(from, function(data) {
|
||||
$response = data.split("\n");
|
||||
|
||||
|
@ -12,8 +12,7 @@ function getResolution(from) {
|
|||
}
|
||||
});
|
||||
|
||||
// TODO: This should be a Callback
|
||||
updateResolution($resolutions);
|
||||
fn_callback($resolutions);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue