repl.it
@Kognise/

AbstractRadio-1

PHP Web Server

No description

fork
loading
Files
  • index.php
  • assets
  • style.css
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
  $json = file_get_contents('http://178.62.29.135/api/nowplaying/2');
  $data = json_decode($json);
?>
<html>
  <head>
    <title>Abstract  &#x1F4FB;</title>
    <link rel='stylesheet' href='style.css'>
    <link rel='icon' href='assets/favicon.png'>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <meta property='og:type' content='music.radio_station'>
    <meta property='og:title' content='Abstract Radio'>
    <meta property='og:url' content='https://weareabstract.com/'>
    <meta property='og:image' content='https://abstractradio.kognise.repl.co/assets/favicon.png'>
    <meta property='og:description' content='Abstract Radio: bringing you the latest hits and more! Listen to our 24/7 playlist of curated music or tune in when one of our expert DJs go live.'>
    <meta name='theme-color' content='#ffffff'>
    <meta charset='utf-8'>
  </head>
  <body>
    <div id='artbg' style='background-image: url(&apos;<?php echo $data->now_playing->song->art; ?>&apos;)'></div>

    <img id='logo' src='assets/logo.png'>

    <div id='np'>
      <img id='art' src='<?php echo $data->now_playing->song->art; ?>'>
      <div id='meta'>
        <p id='title'><?php echo $data->now_playing->song->title; ?></p>
        <p id='artist'><?php echo $data->now_playing->song->artist; ?></p>
      </div>
    </div>

    <audio autoplay controls id='audio'>
      <source src='http://178.62.29.135/radio/8010/radio.mp3'>
    </audio>

    <script src='https://unpkg.com/[email protected]/NchanSubscriber.js'></script>
    <script src='script.js'></script>
  </body>
</html>