Files
reallife-gamemode/ReallifeGamemode.Client/assets/html/wanteds/index.html

60 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Wanteds</title>
<style>
html, body {
margin: 0;
padding: 0;
}
#wanteds {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 40px;
right: 20px;
height: 50px;
padding-top: 10px;
line-height: 50px;
user-select: none;
}
#wanteds img {
width: 35px;
height: 35px;
}
#wanteds span {
margin-top: 10px;
margin-left: 5px;
margin-right: 15px;
font-size: 30px;
color: white;
font-family: Arial, Helvetica, sans-serif;
font-weight: bolder;
}
</style>
</head>
<body>
<div id="wanteds" style="display: none;">
<img src="package://assets/img/wanteds/star.svg" />
<span id="wanted-count">10</span>
</div>
<script src="package://assets/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
function setWanteds(count) {
if (count === 0) {
$("#wanteds").hide();
} else {
$("#wanteds").show();
$("#wanted-count").text(count.toString());
}
}
</script>
</body>
</html>