41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
<meta charset="UTF-8">
|
|
<title>Title</title>
|
|
</head>
|
|
<body>
|
|
<dev class="grid-container">
|
|
<div class="header">Super Awesome Mange Downloading and Viewing Thing</div>
|
|
<div class="nav" align="left">
|
|
<ul>
|
|
<li><button class=button onclick="activeReturn()">Active</button>
|
|
<li><button class=button onclick="downloadReturn()">Download</button>
|
|
<!-- <li><a href="http://google.com"><button class=button>google<>/button></a></li>
|
|
<li><button class=button onclick="clickTest()">asdfl</button></li>-->
|
|
</ul>
|
|
</div>
|
|
<div class="main" id="main">
|
|
|
|
</div>
|
|
<div class="footer">
|
|
bottom stuffs
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
<script>
|
|
function activeReturn() {
|
|
fetch('/active')
|
|
.then(response => response.json())
|
|
.then(data => document.getElementById("main").innerHTML = JSON.stringify(data));
|
|
};
|
|
function downloadReturn() {
|
|
fetch('/download')
|
|
.then(response => response.json())
|
|
.then(data => document.getElementById("main").innerHTML = JSON.stringify(data));
|
|
};
|
|
</script>
|