This commit is contained in:
Dooho Yi 2025-05-16 15:17:19 +09:00
commit 3341711015
4 changed files with 202 additions and 0 deletions

90
chat.html Executable file
View file

@ -0,0 +1,90 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/dist/converse.min.css" />
<script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script>
<!--<script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script> -->
<title>Blackhole</title>
</head>
<body>
<script>
/*
@licstart
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org/>
@licend
*/
// converse.initialize({
// // Please use this connection manager only for testing purposes
// bosh_service_url: 'https://conversejs.org/http-bind/',
// view_mode: 'fullscreen'
// });
converse.initialize({
"allow_bookmarks": true,
"allow_contact_requests": true,
"allow_muc_invitations": true,
"allow_muc": true,
"allow_registration": false,
"assets_path": "https://cdn.conversejs.org/dist/",
"authentication": "anonymous",
"auto_away": 3000,
"auto_join_rooms": ["blackhole@groups.ururu.cloud"],
"auto_login": true,
"auto_reconnect": true,
"auto_xa": 9000,
"bosh_service_url": "https://ururu.cloud:5281/http-bind",
"debug": true,
"default_domain": "blackhole.ururu.cloud",
"discover_connection_methods": false,
"domain_placeholder": "blackhole.ururu.cloud",
"enable_smacks": true,
"jid": "blackhole.ururu.cloud",
"locked_muc_domain": true,
"loglevel": "debug",
"muc_domain": "groups.ururu.cloud",
"ping_interval": "30",
"roster_groups": true,
"show_controlbox_by_default": true,
"singleton": true,
"sticky_controlbox": true,
"synchronize_availability": false,
"trusted": true,
"view_mode": "fullscreen",
"websocket_url": "wss://ururu.cloud:5281/xmpp-websocket",
});
</script>
</body>
</html>

0
default.css Executable file
View file

44
frames.html Executable file
View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="default.css">
<style>
* {
box-sizing: border-box;
}
#frameset {
display:flex;
flex-direction: column;
}
#frame-radio {
flex: 0 0 200px;
}
#frame-chat {
}
iframe {
border-style: none;
}
</style>
</head>
<body>
<div id='frameset'>
<iframe id='frame-radio' src="https://radio.dianaband.in:8000/stream" title="radio">
</iframe>
<iframe id='frame-chat' src="chat.html" title="radio">
</iframe>
</div>
</body>
</html>

68
index.html Executable file
View file

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/dist/converse.min.css" />
<script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script>
<style>
audio {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
}
</style>
<title>Blackhole</title>
</head>
<body>
<audio controls>
<source src='https://radio.dianaband.in:8000/stream' type='audio/aac' />
</audio>
<script>
converse.initialize({
"allow_bookmarks": true,
"allow_contact_requests": true,
"allow_muc_invitations": true,
"allow_muc": true,
"allow_registration": false,
"assets_path": "https://cdn.conversejs.org/dist/",
"authentication": "anonymous",
"auto_away": 3000,
"auto_join_rooms": ["blackhole@groups.ururu.cloud"],
"auto_login": true,
"auto_reconnect": true,
"auto_xa": 9000,
"bosh_service_url": "https://ururu.cloud:5281/http-bind",
"debug": true,
"default_domain": "blackhole.ururu.cloud",
"discover_connection_methods": false,
"domain_placeholder": "blackhole.ururu.cloud",
"enable_smacks": true,
"jid": "blackhole.ururu.cloud",
"locked_muc_domain": true,
"loglevel": "debug",
"muc_domain": "groups.ururu.cloud",
"ping_interval": "30",
"roster_groups": true,
"show_controlbox_by_default": true,
"singleton": true,
"sticky_controlbox": true,
"synchronize_availability": false,
"trusted": true,
"view_mode": "fullscreen",
"websocket_url": "wss://ururu.cloud:5281/xmpp-websocket",
});
</script>
</body>
</html>