diff options
Diffstat (limited to 'booth.php')
-rw-r--r-- | booth.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/booth.php b/booth.php new file mode 100644 index 0000000..8e62fdd --- /dev/null +++ b/booth.php @@ -0,0 +1,42 @@ +<html> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, target-densityDpi=device-dpi"> +<link rel="stylesheet" href="./res/styles.css"> +<script src="./res/main.js"></script> +<script> +function getLocalTime(nS) { + return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); +} + +window.onload = function() { + var lbTime = document.getElementById("music_time"); + var timestamp = lbTime.getAttribute("timestamp") ; + lbTime.innerHTML = formatDate(timestamp); +} +</script> +</head> + +<body> +<div id="container"> + + <div id="music_player_container"> + + <?php + require_once 'music.php'; + require_once 'template.php'; + + $id = $_GET['id']; + $music = fetch_music_by_id($id); + if($music != null){ + html_music_player($music); + } + ?> + + </div> + + <div style="clear:both;"></div> +</div> +</body> + +</html> |