task 6: HTML export

This commit is contained in:
2024-05-08 14:45:20 +02:00
parent a93598d8f6
commit aee3052ad7
11 changed files with 483 additions and 9 deletions

36
res/template/artist.html Normal file
View File

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Slopify V2 - Listen to the music you hate</title>
<link rel="stylesheet" type="text/css" href="base.css">
<link rel="stylesheet" type="text/css" href="artist.css">
</head>
<body>
<header id="navbar">
<a class="back" id="back-btn" href="index.html"></a>
<h1 class="title">Slopify</h1>
</header>
<div id="body">
<h2>Artist</h2>
<div id="crumbs">
<a href="./">{{artist.name}}</a>
</div>
<table id="albums">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
{{albums}}
</tbody>
</table>
</div>
<script type="text/javascript" src="base.js"></script>
<script>
initTable(document.getElementById("albums"))
</script>
</body>
</html>