|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<link href="{{ css_files.all_css }}" rel="stylesheet"> |
|
<link href="{{ css_files.font_css }}" rel="stylesheet"> |
|
<link href="{{ css_files.bundle_css }}" rel="stylesheet"> |
|
<link href="{{ css_files.style_css }}" rel="stylesheet"> |
|
<link href="{{ css_files.phb_style_css }}" rel="stylesheet"> |
|
<link href="{{ css_files.store_ui_css }}" rel="stylesheet"> |
|
<title>DnD Stat Block</title> |
|
<link rel="stylesheet" href="styles.css"> |
|
<script src="https://unpkg.com/htmx.org@1.7.0/dist/htmx.min.js"></script> |
|
|
|
<style> |
|
@media print { |
|
|
|
body * { |
|
visibility: hidden; |
|
} |
|
|
|
|
|
#brewRenderer, #brewRenderer * { |
|
visibility: visible; |
|
page-break-before: auto; |
|
page-break-after: avoid; |
|
page-break-inside: avoid; |
|
} |
|
|
|
|
|
#brewRenderer { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: auto; |
|
} |
|
} |
|
|
|
.modal { |
|
display: none; |
|
position: fixed; |
|
z-index: 1000; |
|
left: 0; |
|
top: 0; |
|
width: 100%; |
|
height: 100%; |
|
overflow: auto; |
|
background-color: rgb(0,0,0); |
|
background-color: rgba(0,0,0,0.4); |
|
} |
|
.modal-content { |
|
background-color: #fefefe; |
|
margin: 5% auto; |
|
padding: 20px; |
|
border: 1px solid #888; |
|
width: 80%; |
|
height: 80%; |
|
overflow-y: auto; |
|
} |
|
.close { |
|
color: #aaa; |
|
float: right; |
|
font-size: 28px; |
|
font-weight: bold; |
|
} |
|
.close:hover, .close:focus { |
|
color: black; |
|
text-decoration: none; |
|
cursor: pointer; |
|
} |
|
</style> |
|
</head> |
|
|
|
<body> |
|
<div class="grid-container"> |
|
<div class="block-container" id="blockContainer" > |
|
<div class="page" id = "block-page" data-page-id="block-container"> |
|
|
|
</div> |
|
</div> |
|
<div id="floatingToolbar"> |
|
<h1>Store Description</h1> |
|
<textarea id="user-description" class="user-description-textarea" |
|
hx-post="/update-stats" hx-trigger="change" |
|
hx-target="#user-description" hx-swap="outerHTML" |
|
title="As much or as little description as you want to provide. You can provide specific employees, inventory etc">A very standard gear store run by a fae potted plant named Gorgeous</textarea> |
|
<button id="submitDescription">Submit</button> |
|
<button id="autofillButton">Autofill Pages</button> |
|
<button id="toggleButton">Toggle Image Descriptions</button> |
|
<button id="addPageButton">Add New Page</button> |
|
<button id="removePageButton">Remove Last Page</button> |
|
<button id="resetButton">Reset</button> |
|
<button id="printButton">Print</button> |
|
</div> |
|
<div class="page-container" id="pageContainer"> |
|
|
|
|
|
<div class="brewRenderer" id="brewRenderer"> |
|
|
|
<div class="pages" id="pages"> |
|
<div id="page-1" class="page" data-page-id="page-0"> |
|
<div class="columnWrapper"> |
|
<div class="block monster frame wide"> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="trash-area" id="trashArea"></div> |
|
|
|
|
|
<div id="imageModal" class="modal"> |
|
<span class="close">×</span> |
|
<img class="modal-content" id="modalImage"> |
|
<div id="caption"></div> |
|
</div> |
|
<div id="printModal" class="modal"> |
|
<div class="modal-content"> |
|
<span class="close">×</span> |
|
<div id="modalPreviewContent"></div> |
|
</div> |
|
</div> |
|
<div id="iFrameContainer" style="display:none;"></div> |
|
<script src="scripts.js"></script> |
|
|
|
</script> |
|
</body> |
|
</html> |