|
@@ -585,6 +585,34 @@ $(function(){
|
|
|
});
|
|
|
*/
|
|
|
|
|
|
+
|
|
|
+function radioTitle() {
|
|
|
+
|
|
|
+ var url = 'http://64.207.154.37:8008/status2.xsl';
|
|
|
+ var mountpoint = '/stream';
|
|
|
+
|
|
|
+ $.ajax({ type: 'GET',
|
|
|
+ url: url,
|
|
|
+ async: true,
|
|
|
+ jsonpCallback: 'parseMusic',
|
|
|
+ contentType: "application/json",
|
|
|
+ dataType: 'jsonp',
|
|
|
+ success: function (json) {
|
|
|
+ $('#track').text(json[mountpoint].title);
|
|
|
+ $('#listeners').text(json[mountpoint].listeners);
|
|
|
+ $('#bitrate').text(json[mountpoint].bitrate);
|
|
|
+ },
|
|
|
+ error: function (e) { console.log(e.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+$(document).ready(function () {
|
|
|
+ setTimeout(function () {radioTitle();}, 2000);
|
|
|
+ setInterval(function () {radioTitle();}, 30000); // update every 30 seconds
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
amplitude_config = {
|
|
|
"amplitude_songs": [
|
|
|
{
|