commit
This commit is contained in:
+14
@@ -211,6 +211,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<iframe id="downloadsList" src="podcasts.txt" onload="loadList();" style="display: none;"></iframe>
|
||||
|
||||
<script>
|
||||
// Activate stream button only on Saturdays and Sundays 15:00-18:00
|
||||
@@ -246,6 +247,19 @@
|
||||
navbar.style.setProperty('--bs-bg-opacity', 0);
|
||||
}
|
||||
}
|
||||
|
||||
function loadList() {
|
||||
var oFrame = document.getElementById("downloadsList");
|
||||
var strRawContents = oFrame.contentWindow.document.body.childNodes[0].innerHTML;
|
||||
while (strRawContents.indexOf("\r") >= 0)
|
||||
strRawContents = strRawContents.replace("\r", "");
|
||||
var arrLines = strRawContents.split("\n");
|
||||
alert("File " + oFrame.src + " has " + arrLines.length + " lines");
|
||||
for (var i = 0; i < arrLines.length; i++) {
|
||||
var curLine = arrLines[i];
|
||||
alert("Line #" + (i + 1) + " is: '" + curLine + "'");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user