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

<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>
<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 = "";
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