mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
67 lines
3.2 KiB
HTML
67 lines
3.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>Loot Table Generator</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-dark bg-dark">
|
|
<span class="navbar-brand mb-0 h1">Loot Table Generator for Minecraft 1.14</span>
|
|
<span class="float-right"><a href="https://github.com/misode" style="color: #ddd;">by Misode</a></span>
|
|
</nav>
|
|
<div class="container">
|
|
<div class="row my-4">
|
|
<div class="col-12 col-md-7">
|
|
<div class="btn-group pb-3">
|
|
<button type="button" class="btn btn-success d-block float-left" onclick="addPool(this)">Add Pool</button>
|
|
</div>
|
|
<div id="structure" class="mb-3">
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-md-5">
|
|
<div class="mb-3 float-right">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">Indentation</span>
|
|
</div>
|
|
<select id="indentationSelect" class="form-control" style="max-width: 7em;" onchange="updateIndentation(this)">
|
|
<option value="2">2 Spaces</option>
|
|
<option value="4">4 Spaces</option>
|
|
<option value="tab">Tabs</option>
|
|
</select>
|
|
<button type="button" class="btn ml-3 btn-secondary" onclick="copySource(this)">Copy</button>
|
|
</div>
|
|
</div>
|
|
<textarea id="source" class="form-control"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-none">
|
|
<div id="poolTemplate" class="card pool">
|
|
<div class="card-header pb-1">
|
|
<button type="button" class="btn btn-danger mb-2 float-right" onclick="removePool(this)">Remove Pool</button>
|
|
<button type="button" class="btn btn-outline-success mr-3 mb-2 float-left">Add Entry</button>
|
|
<button type="button" class="btn btn-outline-success mr-3 mb-2 float-left">Add Condition</button>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">Rolls</span>
|
|
</div>
|
|
<input type="text" class="form-control" onchange="updateRollsField(this)" value="1">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
|
|
<script src="autogrow.js" charset="utf-8"></script>
|
|
<script src="script.js" charset="utf-8"></script>
|
|
</body>
|
|
</html>
|