add localizatin, fix bugs

This commit is contained in:
2023-01-31 16:08:04 +01:00
parent aa3bdecd08
commit 18360eb63e
10 changed files with 433 additions and 220 deletions

View File

@@ -4,8 +4,9 @@
<script src=assets/jquery.js> </script>
<meta charset="UTF-8">
<link rel="stylesheet" href="assets/pico.css">
<title>Streaming</title>
<title>__LOCALIZATION_PLAYER_TITLE__</title>
<script>
__LOCALIZATION_LANGSELECT_SCRIPT__
function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
@@ -50,7 +51,7 @@
},
function(data2, status){
var chatmsgs = $("#chatbox").val();
chatmsgs = chatmsgs + '• ' + 'Sending' + "\n";
chatmsgs = chatmsgs + '• ' + '__LOCALIZATION_CHAT_SENDING__' + "\n";
$("#chatbox").val(chatmsgs);
});
}
@@ -71,20 +72,21 @@
</style>
</head>
<body>
<p class="headingac">Streaming</p>
__LOCALIZATION_LANGSELECT__
<p class="headingac">__LOCALIZATION_PLAYER_TITLE__</p>
<audio controls src="__VLOZ_URL_AUDIA__" id="audioplayer" type="__VLOZ_TYP_AUDIA__" preload="none"></audio>
<br>
<a href="index.php?logout=1">
<p>Log out</p>
<p>__LOCALIZATION_LOGOUT__</p>
</a>
<a href="__VLOZ_URL_AUDIA__.m3u" download target="_blank">
<p>Playlist download</p>
<p>__LOCALIZATION_PLAYLIST_DOWNLOAD__</p>
</a>
__VLOZ_ADMIN_LINK__
<div id="chat">
<textarea rows=5 id="chatbox" readonly></textarea><br>
<input id="ins"></input>
<button id="send">Send</button>
<input id="ins" placeholder="__LOCALIZATION_CHAT_PLACEHOLDER__"></input>
<button id="send">__LOCALIZATION_CHAT_SEND__</button>
</div>
<p>© BRN Systems __VLOZ_ROK__</p>
</body>