parent
							
								
									2c8ac3901c
								
							
						
					
					
						commit
						129eb040f1
					
				| @ -1,25 +0,0 @@ | |||||||
| /* Create a cache object */ |  | ||||||
| //var cache = new LastFMCache();
 |  | ||||||
| 
 |  | ||||||
| /* Create a LastFM object */ |  | ||||||
| var lastfm = new LastFM({ |  | ||||||
|   apiKey    : '59ab8307ec00a5ec90574ac91885798e', |  | ||||||
|   apiSecret : 'e09bec215fdc3100ff998167e5b401f8', |  | ||||||
| //  cache     : cache
 |  | ||||||
| }); |  | ||||||
| 
 |  | ||||||
| /* Load some artist info. */ |  | ||||||
| /* |  | ||||||
| lastfm.artist.getInfo({artist: 'Boris'}, {success: function(data){ |  | ||||||
|   $('#curr_artist').html( |  | ||||||
| 	$('#lastfmTemplateArtistInfo').render(data.artist)); |  | ||||||
| }, error: function(code, message){ |  | ||||||
|   alert('Error #'+code+': '+message); |  | ||||||
| }}); |  | ||||||
| */ |  | ||||||
| 
 |  | ||||||
| lastfm.artist.getInfo({artist: 'Boris'}, {success: function(data){ |  | ||||||
|   alert(data.artist.url) |  | ||||||
| }, error: function(code, message){ |  | ||||||
|   alert('Error #'+code+': '+message); |  | ||||||
| }}); |  | ||||||
| @ -0,0 +1,28 @@ | |||||||
|  | function show() | ||||||
|  | { | ||||||
|  |  /* | ||||||
|  | // php-scrip exec mpc current command
 | ||||||
|  |   $.ajax({ | ||||||
|  |     url: '../trackname.php', | ||||||
|  |     cache: false, | ||||||
|  |     success: function(data){ | ||||||
|  |       $('#title').html(data); | ||||||
|  |     } | ||||||
|  |   }); */ | ||||||
|  | 
 | ||||||
|  |   $.ajax({ | ||||||
|  |     url: '../online.php', | ||||||
|  |     cache: false, | ||||||
|  |     success: function(html){ | ||||||
|  |       $('#listeners').html(html); | ||||||
|  |     } | ||||||
|  |   }); | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | $(document).ready( | ||||||
|  |   () => { | ||||||
|  |     show(); | ||||||
|  |     setInterval(show, 5000); | ||||||
|  |   } | ||||||
|  | ); | ||||||
| After Width: | Height: | Size: 326 KiB | 
| Before Width: | Height: | Size: 333 KiB | 
					Loading…
					
					
				
		Reference in new issue