<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: "https://" + 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>
|