2017-07-15 16:15:02 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2017-09-11 19:36:40 +01:00
|
|
|
<title>Pogo Publish</title>
|
2017-07-15 16:15:02 +01:00
|
|
|
<link rel="stylesheet" href="/assets/styles.css">
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-09-03 17:53:17 +01:00
|
|
|
<div class="admin">
|
2017-09-11 19:36:40 +01:00
|
|
|
<h1>Pogo Publish</h1>
|
2017-07-15 16:15:02 +01:00
|
|
|
|
2017-07-16 18:43:47 +01:00
|
|
|
<form enctype="multipart/form-data" action="/admin/publish" method="post">
|
|
|
|
<label for="title">Episode Title</label>
|
|
|
|
<input type="text" id="title" name="title">
|
|
|
|
<label for="description">Episode Description</label>
|
2017-09-11 19:46:43 +01:00
|
|
|
<textarea name="description" id="description" cols="100" rows="20" style="resize: none;"></textarea>
|
2017-07-16 18:43:47 +01:00
|
|
|
<label for="file">Media File</label>
|
|
|
|
<input type="file" id="file" name="file">
|
|
|
|
<label for="date">Publish Date</label>
|
|
|
|
<input type="date" id="date" name="date">
|
|
|
|
<input type="submit" value="Publish">
|
|
|
|
</form>
|
2017-09-07 04:02:14 +01:00
|
|
|
<hr />
|
2017-07-16 18:43:47 +01:00
|
|
|
|
2017-09-03 17:53:17 +01:00
|
|
|
<form action="/admin/css" method="post" enctype="multipart/form-data">
|
|
|
|
<label for="css">Custom CSS</label>
|
2017-09-07 04:02:14 +01:00
|
|
|
<textarea name="css" id="css" cols="120" rows="20"></textarea><br />
|
|
|
|
<input type="submit" value="Submit">
|
2017-09-03 17:53:17 +01:00
|
|
|
</form>
|
2017-07-15 16:15:02 +01:00
|
|
|
|
|
|
|
<footer>
|
2017-09-11 19:36:40 +01:00
|
|
|
<p>Pogo licensed under the GPLv3</p>
|
2017-07-15 16:15:02 +01:00
|
|
|
</footer>
|
2017-09-03 17:53:17 +01:00
|
|
|
</div>
|
2017-09-07 04:02:14 +01:00
|
|
|
<script>
|
2017-09-07 21:45:21 +01:00
|
|
|
if (window.location.hash == "#cssupdated") {
|
|
|
|
window.alert("CSS Updated!");
|
|
|
|
}
|
|
|
|
if (window.location.hash == "#published") {
|
|
|
|
window.alert("Episode Published!");
|
|
|
|
}
|
|
|
|
if (window.location.hash == "#failed") {
|
|
|
|
window.alert("Something went wrong");
|
|
|
|
}
|
|
|
|
|
2017-09-07 04:02:14 +01:00
|
|
|
get("/admin/css", function(data) {
|
|
|
|
document.getElementById("css").innerHTML=data;
|
|
|
|
});
|
2017-09-03 17:53:17 +01:00
|
|
|
|
2017-09-07 04:02:14 +01:00
|
|
|
function get(url, callback) {
|
|
|
|
var xmlHttp = new XMLHttpRequest();
|
|
|
|
xmlHttp.onreadystatechange = function() {
|
|
|
|
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
|
|
|
|
callback(xmlHttp.responseText);
|
|
|
|
}
|
|
|
|
xmlHttp.open("GET", url, true);
|
|
|
|
xmlHttp.send(null);
|
|
|
|
}
|
|
|
|
</script>
|
2017-07-15 16:15:02 +01:00
|
|
|
</body>
|
|
|
|
</html>
|