You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
1.0 KiB

<html>
<head>
<title>Doggie Radio UI - By Seanland</title>
<link rel="stylesheet" href="main.css">
<script type="text/javascript" src="jquery-3.4.1.min.js"></script>
</head>
<h1>Doggie Radio</h1>
<a href='#' onclick="radio(1);">Seanland's Game Music</a>
<a href='#' onclick="radio(2);">Seanland's Top 100s</a>
<a href='#' onclick="radio(3);">Seanland's Collection</a>
<a href='#' onclick="radio(stop);" class="stop">Stop Music</a>
<script type='text/javascript'>
//AJAX function
function radio(com) {
// change IP based on the player's address
var ip = "192.168.1.40";
$.ajax({
type: "POST",
url: "http://" + ip + "/radio.php",
xhrFields: {
withCredentials: true
},
data: "radio=" + com,
success: function(msg){
// may add in the future
},
error: function (xhr, status) {
// handle errors
}
});
}
</script>
</html>