commit
This commit is contained in:
+23
@@ -213,12 +213,35 @@
|
||||
|
||||
<iframe id="downloadsList" src="{{ assets_url }}/podcasts.txt" onload="loadList();" style="display: none;"></iframe>
|
||||
|
||||
<p><a href="{{ assets_url }}/podcasts.txt">Podcasts</a></p>
|
||||
|
||||
|
||||
<script>
|
||||
// %assets_url%/radio.jpg
|
||||
// %base_url%
|
||||
// {{ base_url }}
|
||||
// {{ assets_url }}
|
||||
|
||||
fetch('{{ assets_url }}/podcasts.txt')
|
||||
.then(
|
||||
function(response) {
|
||||
if (response.status !== 200) {
|
||||
console.log('Looks like there was a problem. Status Code: ' +
|
||||
response.status);
|
||||
return;
|
||||
}
|
||||
|
||||
// Examine the text in the response
|
||||
response.json().then(function(data) {
|
||||
console.log(data);
|
||||
});
|
||||
}
|
||||
)
|
||||
.catch(function(err) {
|
||||
console.log('Fetch Error :-S', err);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Activate stream button only on Saturdays and Sundays 15:00-18:00
|
||||
function streamBtnActivate() {
|
||||
|
||||
Reference in New Issue
Block a user