summaryrefslogtreecommitdiff
path: root/templates/themes/radio
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2016-12-15 18:25:42 +0900
committerGitHub <noreply@github.com>2016-12-15 18:25:42 +0900
commitcae526e65a20f3da2d8884c4d8e8978c54120000 (patch)
tree2954153dd49f616f5018490058ff4bfbd17300d3 /templates/themes/radio
parentb58fab98147a92c8e6d22f15d23684508b6bb811 (diff)
parent5feae402cb55d49963bfd2c6f5a33d10690ecbc1 (diff)
Merge pull request #79 from lainchan/clean_prod_vichan_update
Merge vichan changes from upstream and changes directly applied to the site.
Diffstat (limited to 'templates/themes/radio')
-rw-r--r--templates/themes/radio/info.php9
-rw-r--r--templates/themes/radio/radio.html66
2 files changed, 63 insertions, 12 deletions
diff --git a/templates/themes/radio/info.php b/templates/themes/radio/info.php
index d6679733..2ae31fbd 100644
--- a/templates/themes/radio/info.php
+++ b/templates/themes/radio/info.php
@@ -17,7 +17,12 @@ $theme = array(
array('title' => 'File',
'name' => 'file',
'type' => 'text',
- 'default' => 'radio.html')),
+ 'default' => 'radio.html'),
+
+ array('title' => 'Radio Status URL',
+ 'name' => 'radiostatus',
+ 'type' => 'text',
+ 'default' => '/radio_assets/status.xsl')),
'build_function' => 'radio_build');
-?> \ No newline at end of file
+?>
diff --git a/templates/themes/radio/radio.html b/templates/themes/radio/radio.html
index 2828b6e0..3e16430e 100644
--- a/templates/themes/radio/radio.html
+++ b/templates/themes/radio/radio.html
@@ -1,29 +1,75 @@
{% filter remove_whitespace %}
<!DOCTYPE html>
-<html>
+<html style="height:100vh; width:100%;">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>{{ settings.title }}</title>
<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" media="screen" href="/stylesheets/style.css"/>
- <link rel="stylesheet" media="screen" href="/stylesheets/dark.css"/>
- <link rel="stylesheet" media="screen" href="/stylesheets/dark_irc.css"/>
+ <link rel="stylesheet" media="screen" href="/stylesheets/cyberpunk.css"/>
<link rel="stylesheet" href="/stylesheets/font-awesome/css/font-awesome.min.css">
-</head>
- <body>
- <div class="bar top">
- {{ boardlist.top }}
+<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
+<script type="text/javascript">
+$(document).ready(function(){
+ check_status();
+ setInterval(check_status, 15000);
+});
+
+function check_status(){
+$.get("{{ settings.radiostatus }}", function(data){
+var el = $( '<div></div>' );
+el.html(data);
+var sd = el.find(".streamdata");
+
+$(".nowplaying").text("Now playing: " + sd[16].textContent);
+
+$(".currentlisteners").text("Current listeners: " + sd[13].textContent); });
+}
+</script>
+ </head>
+ <body style=" background: url(/bg.php) no-repeat center center fixed;
+ -webkit-background-size: cover;
+ -moz-background-size: cover;
+ -o-background-size: cover;
+ background-size: cover;
+ ">
+ <div class="bar top">
+ {{ boardlist.top }}
</div>
+ {% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
<header>
<h1>{{ settings.title }}</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
</header>
+ <img alt="mascot" src="static/lain_is_cute_datass_small.png" style="display: block; margin: 0 auto;"/>
+
+ <div class="ban" style="margin-top: 0px!important; background-color: black; text-align: left!important;">
+ <h2>WELCOME TO CYBERIA</h2>
+
+ <p>Welcome to lainchan's radio stream.
+ </p>
+ <noscript><p>Radio statistics will be not be updated without JavaScript, please visit https://lainchan.org/radio_assets/status.xsl to see them directly.</p></noscript>
+
+ <p class="nowplaying"> Now playing:
+ </p>
+ <p class="currentlisteners"> Current listeners:
+ </p>
+
+ <ul>
+
+ <li><a href="https://lainchan.org/static/lain.ogg.m3u">Vorbis M3U Playlist</a></li>
+ <li><a href="https://lainchan.org/static/lain.mp3.m3u">MP3 M3U Playlist</a></li>
+
+ XSPF considered harmful.
+ </ul>
- <div class="ban" style="text-align: left!important;">
- <h2>Web Client - Point your own clients to #lainchan on irc.freenode.net.</h2>
- <iframe src="https://webchat.freenode.net?channels=%23lainchan&uio=MTE9MTMz98" width="766" height="400"></iframe>
+ <audio controls preload="none" style="margin: 0 5% 20px 5%; width: 90%; box-shadow: 0px 0px 5px black;">
+ <source src="https://lainchan.org/radio_assets/lain.ogg" type="audio/ogg">
+ <source src="https://lainchan.org/radio_assets/lain" type="audio/mpeg">
+ <em>Your browser lacks support for OGG Vorbis files. Please open the M3U file or XSPF file in a multimedia player.</em>
+ </audio>
</div>
</body>
</html>