mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2025-05-29 19:07:32 +02:00
66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<!--
|
|
░░░░░░░█▐▓▓░████▄▄▄█▀▄▓▓▓▌█ very website
|
|
░░░░░▄█▌▀▄▓▓▄▄▄▄▀▀▀▄▓▓▓▓▓▌█
|
|
░░░▄█▀▀▄▓█▓▓▓▓▓▓▓▓▓▓▓▓▀░▓▌█
|
|
░░█▀▄▓▓▓███▓▓▓███▓▓▓▄░░▄▓▐█▌ such html
|
|
░█▌▓▓▓▀▀▓▓▓▓███▓▓▓▓▓▓▓▄▀▓▓▐█
|
|
▐█▐██▐░▄▓▓▓▓▓▀▄░▀▓▓▓▓▓▓▓▓▓▌█▌ WOW
|
|
█▌███▓▓▓▓▓▓▓▓▐░░▄▓▓███▓▓▓▄▀▐█
|
|
█▐█▓▀░░▀▓▓▓▓▓▓▓▓▓██████▓▓▓▓▐█
|
|
▌▓▄▌▀░▀░▐▀█▄▓▓██████████▓▓▓▌█▌
|
|
▌▓▓▓▄▄▀▀▓▓▓▀▓▓▓▓▓▓▓▓█▓█▓█▓▓▌█▌ many music
|
|
█▐▓▓▓▓▓▓▄▄▄▓▓▓▓▓▓█▓█▓█▓█▓▓▓▐█
|
|
-->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="MobileOptimized" content="320">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<meta name="theme-color" content="#ffffff">
|
|
<meta name="apple-mobile-web-app-title" content="IRC!Radio">
|
|
<meta name="application-name" content="IRC!Radio">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="description" content="IRC!Radio"/>
|
|
<title>IRC!Radio</title>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
|
|
{% if ENABLE_SEARCH_ROUTE %}
|
|
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"></link>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
|
|
{% endif %}
|
|
|
|
<script>
|
|
|
|
var ws = new WebSocket('wss://' + document.domain + ':' + location.port + '/ws');
|
|
|
|
ws.onmessage = function (event) {
|
|
// console.log(event.data);
|
|
json = JSON.parse(event.data);
|
|
np = json.now_playing;
|
|
document.querySelector("#now_playing").innerText = np;
|
|
// console.log(np);
|
|
return false;
|
|
};
|
|
|
|
ws.onclose = function(event) {
|
|
console.log("WebSocket is closed now.");
|
|
};
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
{% block content %} {% endblock %}
|
|
</body>
|
|
</html>
|