52 lines
1.4 KiB
HTML
52 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="modinfo.css"/>
|
|
|
|
<script>
|
|
function getQueryParams(qs) {
|
|
qs = qs.split('+').join(' ');
|
|
|
|
var params = {},
|
|
tokens,
|
|
re = /[?&]?([^=]+)=([^&]*)/g;
|
|
|
|
while (tokens = re.exec(qs)) {
|
|
params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]);
|
|
}
|
|
|
|
return params;
|
|
}
|
|
function showContent() {
|
|
var modData = getQueryParams(document.location.search).data.split(":::");
|
|
// 0: name
|
|
// 1: zipURL
|
|
// 2: author
|
|
// 3: image url
|
|
// 4: description
|
|
document.getElementById("name").innerHTML = modData[0];
|
|
document.getElementById("author").innerHTML = modData[4];
|
|
if (modData[5] !== "") {
|
|
document.getElementById("mod_img").src = modData[5];
|
|
}
|
|
document.getElementById("description").innerHTML = modData[6];
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="showContent();">
|
|
<div class="mod_header">
|
|
<h1 id="name">Loading...</h1>
|
|
</div>
|
|
|
|
<div class="mod_content">
|
|
<div style="text-align: center;">
|
|
<img id="mod_img" src="">
|
|
<div id="description">Loading...</div>
|
|
<br>
|
|
<div class="mod_author">
|
|
Author: <span id="author">Loading...</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|