Spaces:
Sleeping
Sleeping
drakosfire
commited on
Commit
•
9efcf1c
1
Parent(s):
93c4c52
added update_template.html which is same architecture as storeUI.html page-container, so testing will be more accurate. Updated extractBlocks function to target block-items
Browse files- scripts.js +50 -34
- template.html +0 -581
- template_update.html +315 -0
scripts.js
CHANGED
@@ -125,7 +125,8 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
125 |
|
126 |
function sortBlocksById() {
|
127 |
// Select all blocks inside the block-container
|
128 |
-
const blocks = Array.from(
|
|
|
129 |
|
130 |
// Sort the blocks based on their block-id attribute
|
131 |
blocks.sort((a, b) => {
|
@@ -135,21 +136,21 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
135 |
});
|
136 |
|
137 |
// Clear the block-container before re-appending the sorted blocks
|
138 |
-
|
139 |
|
140 |
// Re-append the blocks in the sorted order
|
141 |
-
blocks.forEach(block =>
|
142 |
|
143 |
console.log('Blocks have been sorted and re-appended based on block-id');
|
144 |
}
|
145 |
|
146 |
-
function reinsertBlock(
|
147 |
const originalPosition = initialPositions.find(pos => pos.id === blockId);
|
148 |
console.log('Original position:', originalPosition);
|
149 |
|
150 |
if (originalPosition) {
|
151 |
-
const blocks =
|
152 |
-
console.log('Blocks in
|
153 |
|
154 |
// Adding debugging output for index details
|
155 |
console.log(`Attempting to insert block with ID: ${blockId} at original index: ${originalPosition.index}`);
|
@@ -169,19 +170,19 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
169 |
// Debugging output to ensure the correct reference node is identified
|
170 |
console.log(`Reference node index: ${originalPosition.index}, Node:`, referenceNode);
|
171 |
|
172 |
-
if (referenceNode && referenceNode.parentNode ===
|
173 |
console.log(`Inserting before block at index: ${originalPosition.index}`);
|
174 |
-
|
175 |
} else {
|
176 |
-
console.warn('Reference node does not belong to
|
177 |
-
|
178 |
}
|
179 |
} else {
|
180 |
console.log('Original index exceeds current blocks, appending block to the end');
|
181 |
-
|
182 |
}
|
183 |
} else {
|
184 |
-
console.warn('Original position not found, appending block to the end of
|
185 |
const newBlock = document.createElement('div');
|
186 |
newBlock.classList.add('block-item');
|
187 |
newBlock.setAttribute('data-block-id', blockId);
|
@@ -191,7 +192,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
191 |
newBlock.addEventListener('dragstart', handleDragStart);
|
192 |
newBlock.addEventListener('dragend', handleDragEnd);
|
193 |
|
194 |
-
|
195 |
}
|
196 |
|
197 |
console.log(`Restored block with ID: ${blockId}`);
|
@@ -254,44 +255,57 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
254 |
initializeTextareaResizing();
|
255 |
|
256 |
async function extractBlocks() {
|
257 |
-
|
258 |
try {
|
259 |
if (blockContainerPage.children.length > 0) {
|
260 |
console.log('Blocks already loaded, skipping fetch');
|
261 |
return;
|
262 |
}
|
263 |
-
|
|
|
264 |
if (!response.ok) {
|
265 |
throw new Error('Network response was not ok ' + response.statusText);
|
266 |
}
|
|
|
267 |
const text = await response.text();
|
268 |
const parser = new DOMParser();
|
269 |
const doc = parser.parseFromString(text, 'text/html');
|
270 |
-
|
271 |
-
|
|
|
272 |
|
273 |
blocks.forEach((block, index) => {
|
274 |
const blockContent = block.innerHTML;
|
275 |
const blockItem = document.createElement('div');
|
276 |
blockItem.classList.add('block-item');
|
277 |
blockItem.innerHTML = blockContent;
|
|
|
|
|
278 |
const blockId = `block-${index}`;
|
279 |
blockItem.setAttribute('data-block-id', blockId);
|
|
|
|
|
280 |
const pageId = 'block-container';
|
281 |
blockItem.setAttribute('data-page-id', pageId);
|
282 |
blockItem.setAttribute('draggable', true);
|
|
|
|
|
283 |
blockItem.addEventListener('dragstart', handleDragStart);
|
284 |
blockItem.addEventListener('dragend', handleDragEnd);
|
285 |
|
286 |
console.log(`Loaded block with ID: ${blockId}`);
|
|
|
|
|
287 |
blockContainerPage.appendChild(blockItem);
|
288 |
});
|
289 |
|
|
|
290 |
storeInitialPositions();
|
|
|
291 |
} catch (error) {
|
292 |
-
console.error('Error fetching and parsing
|
293 |
}
|
294 |
}
|
|
|
295 |
|
296 |
blockContainer.addEventListener('click', function(event) {
|
297 |
if (event.target && event.target.classList.contains('generate-image-button')) {
|
@@ -360,6 +374,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
360 |
console.log('All textareas have been unlocked.');
|
361 |
});
|
362 |
}
|
|
|
363 |
function handleDragStart(e) {
|
364 |
lockTextareas();
|
365 |
const target = e.target.closest('.block-item, .block-content');
|
@@ -452,6 +467,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
452 |
targetBlock.classList.remove('highlight-block');
|
453 |
}
|
454 |
}
|
|
|
455 |
|
456 |
function handleDrop(e) {
|
457 |
e.preventDefault();
|
@@ -532,8 +548,8 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
532 |
adjustPageLayout(newPageId, targetColumn);
|
533 |
} else {
|
534 |
console.log('No data transferred');
|
535 |
-
|
536 |
-
|
537 |
|
538 |
function getColumnFromOffset(block, offset) {
|
539 |
const page = block.closest('.page');
|
@@ -747,16 +763,16 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
747 |
}
|
748 |
|
749 |
// Ensure the block is appended to the page wrapper inside blockContainer
|
750 |
-
let
|
751 |
-
if (!
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
blockContainer.appendChild(
|
756 |
}
|
757 |
|
758 |
// Reinsert the block using the refactored function
|
759 |
-
reinsertBlock(
|
760 |
sortBlocksById();
|
761 |
} else {
|
762 |
console.log('No data transferred');
|
@@ -807,12 +823,12 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
807 |
blockContainer.innerHTML = '';
|
808 |
|
809 |
// Reinsert blocks back into the blockContainer in their original order
|
810 |
-
|
811 |
-
if (!
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
blockContainer.appendChild(
|
816 |
}
|
817 |
// Reassign blockContainerPage to the newly created block-page element
|
818 |
blockContainerPage = document.getElementById('block-page');
|
@@ -820,7 +836,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
820 |
initialPositions.forEach(pos => {
|
821 |
const blockData = allBlocks.find(block => block.id === pos.id);
|
822 |
if (blockData) {
|
823 |
-
reinsertBlock(
|
824 |
sortBlocksById();
|
825 |
}
|
826 |
});
|
|
|
125 |
|
126 |
function sortBlocksById() {
|
127 |
// Select all blocks inside the block-container
|
128 |
+
const blocks = Array.from(blockContainerPage.querySelectorAll('.block-item'));
|
129 |
+
console.log('Blocks in blockContainerPage:', blocks);
|
130 |
|
131 |
// Sort the blocks based on their block-id attribute
|
132 |
blocks.sort((a, b) => {
|
|
|
136 |
});
|
137 |
|
138 |
// Clear the block-container before re-appending the sorted blocks
|
139 |
+
blockContainerPage.innerHTML = '';
|
140 |
|
141 |
// Re-append the blocks in the sorted order
|
142 |
+
blocks.forEach(block => blockContainerPage.appendChild(block));
|
143 |
|
144 |
console.log('Blocks have been sorted and re-appended based on block-id');
|
145 |
}
|
146 |
|
147 |
+
function reinsertBlock(blockContainerPage, blockId, innerHTML) {
|
148 |
const originalPosition = initialPositions.find(pos => pos.id === blockId);
|
149 |
console.log('Original position:', originalPosition);
|
150 |
|
151 |
if (originalPosition) {
|
152 |
+
const blocks = blockContainerPage.querySelectorAll('.block-item');
|
153 |
+
console.log('Blocks in blockContainerPage:', blocks);
|
154 |
|
155 |
// Adding debugging output for index details
|
156 |
console.log(`Attempting to insert block with ID: ${blockId} at original index: ${originalPosition.index}`);
|
|
|
170 |
// Debugging output to ensure the correct reference node is identified
|
171 |
console.log(`Reference node index: ${originalPosition.index}, Node:`, referenceNode);
|
172 |
|
173 |
+
if (referenceNode && referenceNode.parentNode === blockContainerPage) {
|
174 |
console.log(`Inserting before block at index: ${originalPosition.index}`);
|
175 |
+
blockContainerPage.insertBefore(newBlock, referenceNode);
|
176 |
} else {
|
177 |
+
console.warn('Reference node does not belong to blockContainerPage, appending to the end');
|
178 |
+
blockContainerPage.appendChild(newBlock);
|
179 |
}
|
180 |
} else {
|
181 |
console.log('Original index exceeds current blocks, appending block to the end');
|
182 |
+
blockContainerPage.appendChild(newBlock);
|
183 |
}
|
184 |
} else {
|
185 |
+
console.warn('Original position not found, appending block to the end of blockContainerPage');
|
186 |
const newBlock = document.createElement('div');
|
187 |
newBlock.classList.add('block-item');
|
188 |
newBlock.setAttribute('data-block-id', blockId);
|
|
|
192 |
newBlock.addEventListener('dragstart', handleDragStart);
|
193 |
newBlock.addEventListener('dragend', handleDragEnd);
|
194 |
|
195 |
+
blockContainerPage.appendChild(newBlock);
|
196 |
}
|
197 |
|
198 |
console.log(`Restored block with ID: ${blockId}`);
|
|
|
255 |
initializeTextareaResizing();
|
256 |
|
257 |
async function extractBlocks() {
|
|
|
258 |
try {
|
259 |
if (blockContainerPage.children.length > 0) {
|
260 |
console.log('Blocks already loaded, skipping fetch');
|
261 |
return;
|
262 |
}
|
263 |
+
|
264 |
+
const response = await fetch('template_update.html');
|
265 |
if (!response.ok) {
|
266 |
throw new Error('Network response was not ok ' + response.statusText);
|
267 |
}
|
268 |
+
|
269 |
const text = await response.text();
|
270 |
const parser = new DOMParser();
|
271 |
const doc = parser.parseFromString(text, 'text/html');
|
272 |
+
|
273 |
+
// Selecting all elements with the 'block-item' class
|
274 |
+
const blocks = doc.querySelectorAll('.block-item');
|
275 |
|
276 |
blocks.forEach((block, index) => {
|
277 |
const blockContent = block.innerHTML;
|
278 |
const blockItem = document.createElement('div');
|
279 |
blockItem.classList.add('block-item');
|
280 |
blockItem.innerHTML = blockContent;
|
281 |
+
|
282 |
+
// Assigning unique block ID
|
283 |
const blockId = `block-${index}`;
|
284 |
blockItem.setAttribute('data-block-id', blockId);
|
285 |
+
|
286 |
+
// Setting the page ID and other attributes
|
287 |
const pageId = 'block-container';
|
288 |
blockItem.setAttribute('data-page-id', pageId);
|
289 |
blockItem.setAttribute('draggable', true);
|
290 |
+
|
291 |
+
// Add event listeners for drag and drop functionality
|
292 |
blockItem.addEventListener('dragstart', handleDragStart);
|
293 |
blockItem.addEventListener('dragend', handleDragEnd);
|
294 |
|
295 |
console.log(`Loaded block with ID: ${blockId}`);
|
296 |
+
|
297 |
+
// Append block to the container
|
298 |
blockContainerPage.appendChild(blockItem);
|
299 |
});
|
300 |
|
301 |
+
// Store the initial positions of the blocks (if needed for drag and drop)
|
302 |
storeInitialPositions();
|
303 |
+
|
304 |
} catch (error) {
|
305 |
+
console.error('Error fetching and parsing template_update.html:', error);
|
306 |
}
|
307 |
}
|
308 |
+
|
309 |
|
310 |
blockContainer.addEventListener('click', function(event) {
|
311 |
if (event.target && event.target.classList.contains('generate-image-button')) {
|
|
|
374 |
console.log('All textareas have been unlocked.');
|
375 |
});
|
376 |
}
|
377 |
+
|
378 |
function handleDragStart(e) {
|
379 |
lockTextareas();
|
380 |
const target = e.target.closest('.block-item, .block-content');
|
|
|
467 |
targetBlock.classList.remove('highlight-block');
|
468 |
}
|
469 |
}
|
470 |
+
}
|
471 |
|
472 |
function handleDrop(e) {
|
473 |
e.preventDefault();
|
|
|
548 |
adjustPageLayout(newPageId, targetColumn);
|
549 |
} else {
|
550 |
console.log('No data transferred');
|
551 |
+
}
|
552 |
+
}
|
553 |
|
554 |
function getColumnFromOffset(block, offset) {
|
555 |
const page = block.closest('.page');
|
|
|
763 |
}
|
764 |
|
765 |
// Ensure the block is appended to the page wrapper inside blockContainer
|
766 |
+
let blockContainerPage = blockContainer.querySelector('.page');
|
767 |
+
if (!blockContainerPage) {
|
768 |
+
blockContainerPage = document.createElement('div');
|
769 |
+
blockContainerPage.classList.add('page');
|
770 |
+
blockContainerPage.setAttribute('data-page-id', 'block-container');
|
771 |
+
blockContainer.appendChild(blockContainerPage);
|
772 |
}
|
773 |
|
774 |
// Reinsert the block using the refactored function
|
775 |
+
reinsertBlock(blockContainerPage, blockId, innerHTML);
|
776 |
sortBlocksById();
|
777 |
} else {
|
778 |
console.log('No data transferred');
|
|
|
823 |
blockContainer.innerHTML = '';
|
824 |
|
825 |
// Reinsert blocks back into the blockContainer in their original order
|
826 |
+
|
827 |
+
if (!blockContainerPage) {
|
828 |
+
blockContainerPage = document.createElement('div');
|
829 |
+
blockContainerPage.classList.add('page');
|
830 |
+
blockContainerPage.setAttribute('id', 'block-page');
|
831 |
+
blockContainer.appendChild(blockContainerPage);
|
832 |
}
|
833 |
// Reassign blockContainerPage to the newly created block-page element
|
834 |
blockContainerPage = document.getElementById('block-page');
|
|
|
836 |
initialPositions.forEach(pos => {
|
837 |
const blockData = allBlocks.find(block => block.id === pos.id);
|
838 |
if (blockData) {
|
839 |
+
reinsertBlock(blockContainerPage, blockData.id, blockData.innerHTML);
|
840 |
sortBlocksById();
|
841 |
}
|
842 |
});
|
template.html
DELETED
@@ -1,581 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<link href="./dependencies/all.css" rel="stylesheet" />
|
7 |
-
<link href="./dependencies/css.css?family=Open+Sans:400,300,600,700" rel="stylesheet" type="text/css" />
|
8 |
-
<link href='./dependencies/bundle.css' rel='stylesheet' />
|
9 |
-
<link href="./dependencies/style.css" rel='stylesheet' />
|
10 |
-
<link href="./dependencies/5ePHBstyle.css" rel='stylesheet' />
|
11 |
-
<title>Template</title>
|
12 |
-
<link rel="stylesheet" href="styles.css">
|
13 |
-
<script src="https://unpkg.com/htmx.org@1.7.0/dist/htmx.min.js"></script>
|
14 |
-
</head>
|
15 |
-
<style>
|
16 |
-
:root {
|
17 |
-
--HB_Color_Background: #EEE5CE;
|
18 |
-
--HB_Color_Accent: #E0E5C1;
|
19 |
-
--HB_Color_HeaderUnderline: #C0AD6A;
|
20 |
-
--HB_Color_HorizontalRule: #9C2B1B;
|
21 |
-
--HB_Color_HeaderText: #58180D;
|
22 |
-
--HB_Color_MonsterStatBackground: #F2E5B5;
|
23 |
-
--HB_Color_CaptionText: #766649;
|
24 |
-
--HB_Color_WatercolorStain: #BBAD82;
|
25 |
-
--HB_Color_Footnotes: #C9AD6A;
|
26 |
-
}
|
27 |
-
input[type="text"], textarea {
|
28 |
-
width: auto;
|
29 |
-
padding: 8px;
|
30 |
-
margin: 5px 0;
|
31 |
-
border: 1px solid #ccc;
|
32 |
-
border-radius: 4px;
|
33 |
-
font-size: 14px;
|
34 |
-
background-color: #f9f9f9;
|
35 |
-
transition: background-color 0.3s ease, border-color 0.3s ease;
|
36 |
-
}
|
37 |
-
.grid-container {
|
38 |
-
display: grid;
|
39 |
-
grid-template-columns: 1fr 3fr; /* Two columns with the second column being three times as wide */
|
40 |
-
grid-gap: 20px;
|
41 |
-
padding: 20px;
|
42 |
-
height: 100vh;
|
43 |
-
}
|
44 |
-
.block-container {
|
45 |
-
display: flex;
|
46 |
-
flex-direction: column;
|
47 |
-
gap: 20px;
|
48 |
-
overflow-y: auto;
|
49 |
-
border-right: 1px solid #ccc;
|
50 |
-
padding-right: 20px;
|
51 |
-
}
|
52 |
-
.block-item {
|
53 |
-
border: 1px solid #ccc;
|
54 |
-
border-radius: 8px;
|
55 |
-
background-color: #f9f9f9;
|
56 |
-
padding: 15px;
|
57 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
58 |
-
transition: transform 0.3s;
|
59 |
-
}
|
60 |
-
.block-item:hover {
|
61 |
-
transform: translateY(-5px);
|
62 |
-
}
|
63 |
-
.page .monster hr:last-of-type + * {
|
64 |
-
margin-top: .1cm;
|
65 |
-
}
|
66 |
-
.page * + h4 {
|
67 |
-
margin-top: .1cm;
|
68 |
-
}
|
69 |
-
.page h4 + * {
|
70 |
-
margin-top: .1cm;
|
71 |
-
}
|
72 |
-
.page dl + * {
|
73 |
-
margin-top: .1cm;
|
74 |
-
}
|
75 |
-
.page p + * {
|
76 |
-
margin-top: .1cm;
|
77 |
-
}
|
78 |
-
.columnWrapper {
|
79 |
-
column-gap: inherit;
|
80 |
-
max-height: 100%;
|
81 |
-
column-span: all;
|
82 |
-
columns: inherit;
|
83 |
-
height: 100%; /* Ensure it takes full height of the parent */
|
84 |
-
box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
|
85 |
-
}
|
86 |
-
input[type="text"]:focus, textarea:focus {
|
87 |
-
background-color: #e9e9e9;
|
88 |
-
border-color: #aaa;
|
89 |
-
outline: none;
|
90 |
-
}
|
91 |
-
|
92 |
-
/* Specific styles for different textboxes */
|
93 |
-
|
94 |
-
.user-description-textarea {
|
95 |
-
width: 400px;
|
96 |
-
height: 40px; /* Adjust as needed for 3 lines */
|
97 |
-
resize: vertical;
|
98 |
-
background: none;
|
99 |
-
font-family: "ScalySansRemake";
|
100 |
-
font-weight: 800;
|
101 |
-
|
102 |
-
}
|
103 |
-
/* Focus styles for description textbox */
|
104 |
-
.user-description-textarea:focus {
|
105 |
-
background-color: #e9e9e9;
|
106 |
-
border-color: #aaa;
|
107 |
-
outline: none;
|
108 |
-
}
|
109 |
-
|
110 |
-
.heading-textarea {
|
111 |
-
width: 100%;
|
112 |
-
font-size: .458cm; /* Matches the font size of an h4 heading */
|
113 |
-
line-height: .7em;
|
114 |
-
font-weight: 800;
|
115 |
-
border: none;
|
116 |
-
background: none;
|
117 |
-
margin: 0;
|
118 |
-
padding: 0;
|
119 |
-
resize: none; /* Prevents the textarea from being resizable */
|
120 |
-
overflow: hidden; /* Prevents scrollbars */
|
121 |
-
outline: none; /* Removes the focus outline */
|
122 |
-
font-family: "MrEavesRemake"; /* Ensures font family is inherited */
|
123 |
-
color: var(--HB_Color_HeaderText)
|
124 |
-
}
|
125 |
-
.properties-textarea {
|
126 |
-
width: 100%;
|
127 |
-
font-size: 12px;
|
128 |
-
font-weight: 400;
|
129 |
-
line-height: .7em;
|
130 |
-
margin-bottom: 0;
|
131 |
-
font-style: italic;
|
132 |
-
box-sizing: border-box;
|
133 |
-
border: 0;
|
134 |
-
font-family: "ScalySansRemake";
|
135 |
-
vertical-align: baseline;
|
136 |
-
margin: 0;
|
137 |
-
padding: 0;
|
138 |
-
overflow-wrap: break-word;
|
139 |
-
text-rendering: optimizeLegibility;
|
140 |
-
background: none;
|
141 |
-
resize: none; /* Prevents the textarea from being resizable */
|
142 |
-
|
143 |
-
}
|
144 |
-
|
145 |
-
.description-textarea {
|
146 |
-
width: 100%;
|
147 |
-
height: 125px;
|
148 |
-
font-size: .318cm;
|
149 |
-
font-weight: 400;
|
150 |
-
line-height: .9em;
|
151 |
-
margin-bottom: 0;
|
152 |
-
font-style: italic;
|
153 |
-
box-sizing: border-box;
|
154 |
-
border: 0;
|
155 |
-
font-family: "ScalySansSmallCapsRemake";
|
156 |
-
vertical-align: baseline;
|
157 |
-
margin: 0;
|
158 |
-
padding: 0;
|
159 |
-
overflow-wrap: break-word;
|
160 |
-
text-rendering: optimizeLegibility;
|
161 |
-
background: none;
|
162 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
163 |
-
overflow: hidden; /* Hide scrollbars */
|
164 |
-
}
|
165 |
-
|
166 |
-
.red-integer-stat-textarea {
|
167 |
-
width: 20px;
|
168 |
-
height:13px;
|
169 |
-
font-size: .318cm;
|
170 |
-
font-weight: 400;
|
171 |
-
line-height: 1.2em;
|
172 |
-
margin-bottom: 0;
|
173 |
-
font-style: italic;
|
174 |
-
box-sizing: border-box;
|
175 |
-
border: 0;
|
176 |
-
font-family: "ScalySansSmallCapsRemake";
|
177 |
-
vertical-align: baseline;
|
178 |
-
margin: 0;
|
179 |
-
padding: 0;
|
180 |
-
overflow-wrap: break-word;
|
181 |
-
text-rendering: optimizeLegibility;
|
182 |
-
background: none;
|
183 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
184 |
-
overflow: hidden; /* Hide scrollbars */
|
185 |
-
color: var(--HB_Color_HeaderText);
|
186 |
-
white-space: pre-line;
|
187 |
-
}
|
188 |
-
|
189 |
-
.integer-stat-textarea {
|
190 |
-
width: 20px;
|
191 |
-
height:13px;
|
192 |
-
font-size: .318cm;
|
193 |
-
font-weight: 400;
|
194 |
-
line-height: 1.2em;
|
195 |
-
margin-bottom: 0;
|
196 |
-
font-style: italic;
|
197 |
-
box-sizing: border-box;
|
198 |
-
border: 0;
|
199 |
-
font-family: "ScalySansRemake";
|
200 |
-
vertical-align: baseline;
|
201 |
-
margin: 0;
|
202 |
-
padding: 0;
|
203 |
-
overflow-wrap: break-word;
|
204 |
-
text-rendering: optimizeLegibility;
|
205 |
-
background: none;
|
206 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
207 |
-
overflow: hidden; /* Hide scrollbars */
|
208 |
-
white-space: pre-line;
|
209 |
-
}
|
210 |
-
|
211 |
-
.string-stat-textarea {
|
212 |
-
width: 200px;
|
213 |
-
height:13px;
|
214 |
-
font-size: .318cm;
|
215 |
-
font-weight: 400;
|
216 |
-
line-height: 1.2em;
|
217 |
-
margin-bottom: 0;
|
218 |
-
font-style: italic;
|
219 |
-
box-sizing: border-box;
|
220 |
-
border: 0;
|
221 |
-
font-family: "ScalySansRemake";
|
222 |
-
vertical-align: baseline;
|
223 |
-
margin: 0;
|
224 |
-
padding: 0;
|
225 |
-
overflow-wrap: break-word;
|
226 |
-
text-rendering: optimizeLegibility;
|
227 |
-
background: none;
|
228 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
229 |
-
overflow: hidden; /* Hide scrollbars */
|
230 |
-
white-space: pre-wrap;
|
231 |
-
}
|
232 |
-
|
233 |
-
.string-action-name-textarea {
|
234 |
-
width: 100%;
|
235 |
-
height:13px;
|
236 |
-
font-size: .318cm;
|
237 |
-
font-style: italic;
|
238 |
-
font-weight: bold;
|
239 |
-
line-height: 1.2em;
|
240 |
-
margin-bottom: 0;
|
241 |
-
font-style: italic;
|
242 |
-
box-sizing: border-box;
|
243 |
-
border: 0;
|
244 |
-
font-family: "ScalySansRemake";
|
245 |
-
vertical-align: baseline;
|
246 |
-
margin: 0;
|
247 |
-
padding: 0;
|
248 |
-
overflow-wrap: break-word;
|
249 |
-
text-rendering: optimizeLegibility;
|
250 |
-
background: none;
|
251 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
252 |
-
overflow: hidden; /* Hide scrollbars */
|
253 |
-
|
254 |
-
}
|
255 |
-
|
256 |
-
.string-action-description-textarea {
|
257 |
-
width: 100%;
|
258 |
-
height:30px;
|
259 |
-
font-size: .318cm;
|
260 |
-
font-weight: 400;
|
261 |
-
line-height: 1.2em;
|
262 |
-
margin-bottom: 0;
|
263 |
-
box-sizing: border-box;
|
264 |
-
border: 0;
|
265 |
-
font-family: "ScalySansRemake";
|
266 |
-
vertical-align: baseline;
|
267 |
-
margin: 0;
|
268 |
-
padding: 0;
|
269 |
-
overflow-wrap: break-word;
|
270 |
-
text-rendering: optimizeLegibility;
|
271 |
-
background: none;
|
272 |
-
resize: none; /* Prevents the textarea from being manually resizable */
|
273 |
-
overflow: hidden; /* Hide scrollbars */
|
274 |
-
white-space: pre-wrap;
|
275 |
-
|
276 |
-
|
277 |
-
}
|
278 |
-
|
279 |
-
.name-textbox {
|
280 |
-
width: 50px;
|
281 |
-
font-size: 1.5em;
|
282 |
-
padding: 10px;
|
283 |
-
}
|
284 |
-
|
285 |
-
.stat-textbox {
|
286 |
-
width: 50px;
|
287 |
-
text-align: center;
|
288 |
-
font-size: 1em;
|
289 |
-
padding: 5px;
|
290 |
-
}
|
291 |
-
</style>
|
292 |
-
<body>
|
293 |
-
<div class="brewRenderer">
|
294 |
-
<div class="pages">
|
295 |
-
<div class="page" id="p1" key="0">
|
296 |
-
<div class="columnWrapper">
|
297 |
-
<div class="block monster frame wide">
|
298 |
-
<div class="Block_1">
|
299 |
-
<textarea class="heading-textarea" id="user-monster-name" hx-post="/update-stats" hx-trigger="change" hx-target="#user-monster-name" hx-swap="outerHTML" title=" Name of creature">Ebony, the Twisted Fairy</textarea>
|
300 |
-
</div>
|
301 |
-
<div class="Block_2">
|
302 |
-
<p>
|
303 |
-
<textarea class="properties-textarea" id="user-monster-properties" hx-post="/update-stats" hx-trigger="change"
|
304 |
-
hx-target="#user-monster-properties" hx-swap="outerHTML" title=" Size, Type, Alignment">Tiny, Fey, Chaotic Evil</textarea>
|
305 |
-
</p>
|
306 |
-
</div>
|
307 |
-
<div class="Block_3">
|
308 |
-
<p>
|
309 |
-
<img class="monster-image" id="monster-image" style="width:300px; height:300px; mix-blend-mode:multiply; border:3px solid black;"
|
310 |
-
src="Ebony,%20the%20Twisted%20Fairy_files/out.png" alt="image"
|
311 |
-
hx-get="/get-new-image" hx-trigger="load" hx-target="#monster-image" hx-swap="outerHTML">
|
312 |
-
</p>
|
313 |
-
</div>
|
314 |
-
<div class="Block_4">
|
315 |
-
<div class="block descriptive">
|
316 |
-
<textarea class="description-textarea" id="user-monster-description" hx-post="/update-stats" hx-trigger="change"
|
317 |
-
hx-target="#user-monster-description" hx-swap="outerHTML" title="Any amount or style of description">Once a cheerful and benign spirit of the forest, Ebony has been corrupted by dark magic, transforming her into a sinister force of malevolence. Despite her tiny stature, her powers have grown exponentially. Her once fairy-like aura now radiates dread, and she is capable of casting deadly spells that can reduce any foe to dust. Ebony delights in tormenting the innocent and disrupting the natural balance of the world.</textarea></h5>
|
318 |
-
</div>
|
319 |
-
</div>
|
320 |
-
<div class="Block_5"><hr>
|
321 |
-
<dl><strong>Armor Class : </strong><textarea class="integer-stat-textarea" id="user-monster-armor-class" hx-post="/update-stats" hx-trigger="change"
|
322 |
-
hx-target="#user-monster-armor-class" hx-swap="outerHTML" title="Integer">14</textarea>
|
323 |
-
<strong>Hit Points : </strong><textarea class="integer-stat-textarea" id="user-monster-hit-points" hx-post="/update-stats" hx-trigger="change"
|
324 |
-
hx-target="#user-monster-hit-points" hx-swap="outerHTML" title="Integer">75</textarea>
|
325 |
-
<strong>Speed : </strong> Walk: <textarea class="integer-stat-textarea" id="user-monster-speed-walk" hx-post="/update-stats" hx-trigger="change"
|
326 |
-
hx-target="#user-monster-speed" hx-swap="outerHTML" title="Integer">10</textarea> Fly :<textarea class="integer-stat-textarea" id="user-monster-speed-fly" hx-post="/update-stats" hx-trigger="change"
|
327 |
-
hx-target="#user-monster-speed" hx-swap="outerHTML" title="Integer">60</textarea>
|
328 |
-
</dl>
|
329 |
-
</div>
|
330 |
-
<div class="Block_6"><hr>
|
331 |
-
<table>
|
332 |
-
<thead>
|
333 |
-
<tr>
|
334 |
-
<th align="center">STR</th>
|
335 |
-
<th align="center">DEX</th>
|
336 |
-
<th align="center">CON</th>
|
337 |
-
<th align="center">INT</th>
|
338 |
-
<th align="center">WIS</th>
|
339 |
-
<th align="center">CHA</th>
|
340 |
-
</tr>
|
341 |
-
</thead>
|
342 |
-
<tbody>
|
343 |
-
<tr>
|
344 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-strength" hx-post="/update-stats" hx-trigger="change"
|
345 |
-
hx-target="#user-monster-strength" hx-swap="outerHTML" title="Integer">5</textarea></td>
|
346 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-dexterity" hx-post="/update-stats" hx-trigger="change"
|
347 |
-
hx-target="#user-monster-dexterity" hx-swap="outerHTML" title="Integer">18</textarea></td>
|
348 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-constitution" hx-post="/update-stats" hx-trigger="change"
|
349 |
-
hx-target="#user-monster-constitution" hx-swap="outerHTML" title="Integer">14</textarea></td>
|
350 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-intellgience" hx-post="/update-stats" hx-trigger="change"
|
351 |
-
hx-target="#user-monster-intelligence" hx-swap="outerHTML" title="Integer">16</textarea></td>
|
352 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-wisdom" hx-post="/update-stats" hx-trigger="change"
|
353 |
-
hx-target="#user-monster-wisdom" hx-swap="outerHTML" title="Integer">12</textarea></td>
|
354 |
-
<td align="center"><textarea class="red-integer-stat-textarea" id="user-monster-charisma" hx-post="/update-stats" hx-trigger="change"
|
355 |
-
hx-target="#user-monster-charisma" hx-swap="outerHTML" title="Integer">20</textarea></td>
|
356 |
-
</tr>
|
357 |
-
</tbody>
|
358 |
-
</table>
|
359 |
-
</div>
|
360 |
-
<div class="Block_7">
|
361 |
-
<hr>
|
362 |
-
<strong>Saving Throws</strong>
|
363 |
-
<textarea class="string-stat-textarea" id="user-monster-saves" hx-post="/update-stats" hx-trigger="change"
|
364 |
-
hx-target="#user-monster-saves" hx-swap="outerHTML" title="[Stat colon integer 2x space] STR: 2 DEX: 7">STR: 2 DEX: 7 WIS: 5</textarea>
|
365 |
-
<br><strong>Resistances :</strong> <textarea class="string-stat-textarea" id="user-monster-wis-save" hx-post="/update-stats" hx-trigger="change"
|
366 |
-
hx-target="#user-monster-wis-save" hx-swap="outerHTML" title="Integer">None</textarea>
|
367 |
-
<br><strong>Senses :</strong><textarea class="string-stat-textarea" id="user-monster-senses" hx-post="/update-stats" hx-trigger="change"
|
368 |
-
hx-target="#user-monster-senses" hx-swap="outerHTML" title="[Sense colon integer] Darkvision: 60">Darkvision: 60</textarea>
|
369 |
-
<br><strong>Languages :</strong><textarea class="string-stat-textarea" id="user-monster-languages" hx-post="/update-stats" hx-trigger="change"
|
370 |
-
hx-target="#user-monster-languages" hx-swap="outerHTML" title="[language comma space] Common, Sylvan">Common, Sylvan</textarea>
|
371 |
-
<br><strong>Challenge Rating :</strong><textarea class="string-stat-textarea" id="user-monster-languages" hx-post="/update-stats" hx-trigger="change"
|
372 |
-
hx-target="#user-monster-cr" hx-swap="outerHTML" title="[CR space parenthesis XP parenthesis] 6 (2300)">6 (2300)</textarea>
|
373 |
-
</div>
|
374 |
-
<div class="Block_8">
|
375 |
-
<hr>
|
376 |
-
<h4 id="actions">Actions</h4>
|
377 |
-
<strong>
|
378 |
-
<textarea class="string-action-name-textarea"
|
379 |
-
id="user-monster-action_name_1"
|
380 |
-
hx-post="/update-stats"
|
381 |
-
hx-trigger="change"
|
382 |
-
hx-target="#user-monster-action_name_1"
|
383 |
-
hx-swap="outerHTML"
|
384 |
-
title="[Action Name colon] Fairy Bolt:">Fairy Bolt: </textarea>
|
385 |
-
</strong>
|
386 |
-
<textarea class="string-action-description-textarea"
|
387 |
-
id="user-monster-action_details_1"
|
388 |
-
hx-post="/update-stats"
|
389 |
-
hx-trigger="change"
|
390 |
-
hx-target="#user-monster-action_details_1"
|
391 |
-
hx-swap="outerHTML"
|
392 |
-
title="[Action Type colon to hit bonus comma range comma number of targets space Hit colon damage parenthesis damage dice parenthesis damage type] Ranged Spell Attack: +7 to hit, range 60 ft., one target. Hit: 21 (3d10 + 4) radiant damage.">Ranged Spell Attack: +7 to hit, range 60 ft., one target. Hit: 21 (3d10 + 4) radiant damage.</textarea>
|
393 |
-
<strong>
|
394 |
-
<textarea class="string-action-name-textarea"
|
395 |
-
id="user-monster-action_name_2"
|
396 |
-
hx-post="/update-stats" hx-trigger="change"
|
397 |
-
hx-target="#user-monster-action_name_2"
|
398 |
-
hx-swap="outerHTML"
|
399 |
-
title="[Action Name colon] Fairy Bolt:">Poison Dust: </textarea>
|
400 |
-
</strong>
|
401 |
-
<textarea class="string-action-description-textarea"
|
402 |
-
id="user-monster-action_details_1"
|
403 |
-
hx-post="/update-stats"
|
404 |
-
hx-trigger="change"
|
405 |
-
hx-target="#user-monster-action_details_1"
|
406 |
-
hx-swap="outerHTML"
|
407 |
-
title="[Action Type colon to hit bonus comma range comma number of targets space Hit colon damage parenthesis damage dice parenthesis damage type] Ranged Spell Attack: +7 to hit, range 60 ft., one target. Hit: 21 (3d10 + 4) radiant damage.">Ebony releases a cloud of toxic dust in a 10-foot radius. Each creature within the area must succeed on a DC 15 Constitution saving throw or take 15 (3d8) poison damage and become poisoned for 1 minute. The poisoned creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.</textarea>
|
408 |
-
</div>
|
409 |
-
<div class="Block_9">
|
410 |
-
<h4 id="cantrips">Cantrips</h4>
|
411 |
-
<strong>
|
412 |
-
<textarea class="string-action-name-textarea"
|
413 |
-
id="user-monster-action_name_2"
|
414 |
-
hx-post="/update-stats" hx-trigger="change"
|
415 |
-
hx-target="#user-monster-action_name_2"
|
416 |
-
hx-swap="outerHTML"
|
417 |
-
title="[Action Name colon] Fairy Bolt:">Eldritch Blast: </textarea>
|
418 |
-
</strong>
|
419 |
-
<textarea class="string-action-description-textarea"
|
420 |
-
id="user-monster-action_details_1"
|
421 |
-
hx-post="/update-stats"
|
422 |
-
hx-trigger="change"
|
423 |
-
hx-target="#user-monster-action_details_1"
|
424 |
-
hx-swap="outerHTML"
|
425 |
-
title="[Action description range mechanics effect] Ranged Spell Attack: +7 to hit, range 60 ft., one target. Hit: 21 (3d10 + 4) radiant damage.">A beam of crackling energy streaks toward a creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 force damage.</textarea>
|
426 |
-
</div>
|
427 |
-
<div class="Block_10">
|
428 |
-
<h4 id="spell slots">Spell Slots</h4>
|
429 |
-
<dl><dt><em><strong>1st level</strong></em>:</dt><dd><textarea class="integer-stat-textarea" id="level-1-slots" hx-post="/update-stats" hx-trigger="change"
|
430 |
-
hx-target="#user-monster-armor-class" hx-swap="outerHTML" title="Integer">4</textarea></dd></dl>
|
431 |
-
<dl><dt><em><strong>2nd level</strong></em>:</dt><dd><textarea class="integer-stat-textarea" id="level-2-slots" hx-post="/update-stats" hx-trigger="change"
|
432 |
-
hx-target="#user-monster-armor-class" hx-swap="outerHTML" title="Integer">4</textarea></dd></dl>
|
433 |
-
<dl><dt><em><strong>3rd level</strong></em>:</dt><dd><textarea class="integer-stat-textarea" id="level-3-slots" hx-post="/update-stats" hx-trigger="change"
|
434 |
-
hx-target="#user-monster-armor-class" hx-swap="outerHTML" title="Integer">4</textarea></dd></dl>
|
435 |
-
<h4 id="known spells">Known Spells</h4>
|
436 |
-
<strong>
|
437 |
-
<textarea class="string-action-name-textarea"
|
438 |
-
id="user-monster-action_name_2"
|
439 |
-
hx-post="/update-stats" hx-trigger="change"
|
440 |
-
hx-target="#user-monster-action_name_2"
|
441 |
-
hx-swap="outerHTML"
|
442 |
-
title="[Action Name colon] Fairy Bolt:">Charm Person: </textarea>
|
443 |
-
</strong>
|
444 |
-
<textarea class="string-action-description-textarea"
|
445 |
-
id="user-monster-action_details_1"
|
446 |
-
hx-post="/update-stats"
|
447 |
-
hx-trigger="change"
|
448 |
-
hx-target="#user-monster-action_details_1"
|
449 |
-
hx-swap="outerHTML"
|
450 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person..">Level: 1st. You attempt to charm a humanoid you can see within range. It must make a Wisdom saving throw, and does so with advantage if you or your companions are fighting it. If it fails the saving throw, it is charmed by you until the spell ends or until you or your companions do anything harmful to it.</textarea>
|
451 |
-
<strong>
|
452 |
-
<textarea class="string-action-name-textarea"
|
453 |
-
id="user-monster-action_name_2"
|
454 |
-
hx-post="/update-stats" hx-trigger="change"
|
455 |
-
hx-target="#user-monster-action_name_2"
|
456 |
-
hx-swap="outerHTML"
|
457 |
-
title="[Action Name colon] Fairy Bolt:">Invisibility: </textarea>
|
458 |
-
</strong>
|
459 |
-
<textarea class="string-action-description-textarea"
|
460 |
-
id="user-monster-action_details_1"
|
461 |
-
hx-post="/update-stats"
|
462 |
-
hx-trigger="change"
|
463 |
-
hx-target="#user-monster-action_details_1"
|
464 |
-
hx-swap="outerHTML"
|
465 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.">Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.</textarea>
|
466 |
-
<strong>
|
467 |
-
<textarea class="string-action-name-textarea"
|
468 |
-
id="user-monster-action_name_2"
|
469 |
-
hx-post="/update-stats" hx-trigger="change"
|
470 |
-
hx-target="#user-monster-action_name_2"
|
471 |
-
hx-swap="outerHTML"
|
472 |
-
title="[Action Name colon] Fairy Bolt:">Fireball: </textarea>
|
473 |
-
</strong>
|
474 |
-
<textarea class="string-action-description-textarea"
|
475 |
-
id="user-monster-action_details_1"
|
476 |
-
hx-post="/update-stats"
|
477 |
-
hx-trigger="change"
|
478 |
-
hx-target="#user-monster-action_details_1"
|
479 |
-
hx-swap="outerHTML"
|
480 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.">Level: 3rd. A bright streak flashes from your pointing finger to a point you choose within range and then blossoms with a low roar into an explosion of flame. Each creature in a 20-foot radius sphere centered on that point must make a Dexterity saving throw. A target takes 8d6 fire damage on a failed save, or half as much damage on a successful one.</textarea>
|
481 |
-
</div>
|
482 |
-
<div class="Block_9">
|
483 |
-
<h4 id="legendary actions">Legendary Actions</h4>
|
484 |
-
<textarea class="string-action-description-textarea"
|
485 |
-
id="user-monster-action_details_1"
|
486 |
-
hx-post="/update-stats"
|
487 |
-
hx-trigger="change"
|
488 |
-
hx-target="#user-monster-action_details_1"
|
489 |
-
hx-swap="outerHTML"
|
490 |
-
title="[Number of legendary actions period How many actions per turn and when to play period Action regain rules] Ebony can take 3 legendary actions, choosing from the options below. Only one legendary action can be used at a time and only at the end of another creature's turn. Ebony regains spent legendary actions at the start of her turn.">Ebony can take 3 legendary actions, choosing from the options below. Only one legendary action can be used at a time and only at the end of another creature's turn. Ebony regains spent legendary actions at the start of her turn.</textarea>
|
491 |
-
<strong>
|
492 |
-
<textarea class="string-action-name-textarea"
|
493 |
-
id="user-monster-action_name_2"
|
494 |
-
hx-post="/update-stats" hx-trigger="change"
|
495 |
-
hx-target="#user-monster-action_name_2"
|
496 |
-
hx-swap="outerHTML"
|
497 |
-
title="[Action Name colon] Fairy Bolt:">Dark Whispers: </textarea>
|
498 |
-
</strong>
|
499 |
-
<textarea class="string-action-description-textarea"
|
500 |
-
id="user-monster-action_details_1"
|
501 |
-
hx-post="/update-stats"
|
502 |
-
hx-trigger="change"
|
503 |
-
hx-target="#user-monster-action_details_1"
|
504 |
-
hx-swap="outerHTML"
|
505 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.">Ebony whispers insidiously to a target within 30 feet. The target must succeed on a DC 16 Wisdom saving throw or take 10 (3d6) psychic damage and become frightened until the end of its next turn.</textarea>
|
506 |
-
<strong>
|
507 |
-
<textarea class="string-action-name-textarea"
|
508 |
-
id="user-monster-action_name_2"
|
509 |
-
hx-post="/update-stats" hx-trigger="change"
|
510 |
-
hx-target="#user-monster-action_name_2"
|
511 |
-
hx-swap="outerHTML"
|
512 |
-
title="[Action Name colon] Fairy Bolt:">Teleport: </textarea>
|
513 |
-
</strong>
|
514 |
-
<textarea class="string-action-description-textarea"
|
515 |
-
id="user-monster-action_details_1"
|
516 |
-
hx-post="/update-stats"
|
517 |
-
hx-trigger="change"
|
518 |
-
hx-target="#user-monster-action_details_1"
|
519 |
-
hx-swap="outerHTML"
|
520 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.">Ebony magically teleports, along with any equipment she is wearing or carrying, up to 60 feet to an unoccupied space she can see.</textarea>
|
521 |
-
<strong>
|
522 |
-
<textarea class="string-action-name-textarea"
|
523 |
-
id="user-monster-action_name_2"
|
524 |
-
hx-post="/update-stats" hx-trigger="change"
|
525 |
-
hx-target="#user-monster-action_name_2"
|
526 |
-
hx-swap="outerHTML"
|
527 |
-
title="[Action Name colon] Fairy Bolt:">Fairy Glow: </textarea>
|
528 |
-
</strong>
|
529 |
-
<textarea class="string-action-description-textarea"
|
530 |
-
id="user-monster-action_details_1"
|
531 |
-
hx-post="/update-stats"
|
532 |
-
hx-trigger="change"
|
533 |
-
hx-target="#user-monster-action_details_1"
|
534 |
-
hx-swap="outerHTML"
|
535 |
-
title="[Level colon description range mechanics effect] Level: 2nd. A creature you touch becomes invisible until the spell ends. Anything the target is wearing or carrying is invisible as long as it is on the target's person.">Ebony emits a burst of glowing lights. Each creature of her choice within 20 feet of her must succeed on a DC 16 Dexterity saving throw or be blinded until the end of Ebony's next turn.</textarea>
|
536 |
-
</div>
|
537 |
-
</div>
|
538 |
-
</div>
|
539 |
-
</div>
|
540 |
-
</div>
|
541 |
-
</div>
|
542 |
-
|
543 |
-
<script>
|
544 |
-
document.addEventListener("DOMContentLoaded", function() {
|
545 |
-
function adjustTextareaHeight(el) {
|
546 |
-
console.log('Start height:', el.scrollHeight);
|
547 |
-
if (el.scrollHeight > 16) {
|
548 |
-
el.style.height = 'auto'; // Reset the height
|
549 |
-
console.log('Auto height:', el.scrollHeight);
|
550 |
-
console.log('Adjusting height for:', el.id); // Debugging line
|
551 |
-
el.style.height = (el.scrollHeight) + 'px'; // Set it to the scroll height
|
552 |
-
console.log('New height:', el.style.height);
|
553 |
-
}
|
554 |
-
}
|
555 |
-
|
556 |
-
const classes = [
|
557 |
-
'description-textarea',
|
558 |
-
'user-description-textarea',
|
559 |
-
'heading-textarea',
|
560 |
-
'properties-textarea',
|
561 |
-
'string-stat-textarea',
|
562 |
-
'string-action-description-textarea'
|
563 |
-
];
|
564 |
-
|
565 |
-
classes.forEach(className => {
|
566 |
-
const textareas = document.querySelectorAll(`.${className}`);
|
567 |
-
console.log(`Textareas found for ${className}:`, textareas.length); // Debugging line
|
568 |
-
textareas.forEach(textarea => {
|
569 |
-
// Adjust height on page load
|
570 |
-
adjustTextareaHeight(textarea);
|
571 |
-
// Adjust height on input
|
572 |
-
textarea.addEventListener('input', function() {
|
573 |
-
adjustTextareaHeight(textarea);
|
574 |
-
console.log('Input event triggered for:', textarea.id); // Debugging line
|
575 |
-
});
|
576 |
-
});
|
577 |
-
});
|
578 |
-
});
|
579 |
-
</script>
|
580 |
-
</body>
|
581 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template_update.html
ADDED
@@ -0,0 +1,315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="page" id="block-page" data-page-id="block-container">
|
2 |
+
<div class="block-item" data-block-id="0" data-page-id="block-container" draggable="true">
|
3 |
+
<h1>
|
4 |
+
<textarea class="title-textarea" id="user-store-title" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-name" hx-swap="outerHTML" title="Name of store">Enchanted Roots Gear Emporium</textarea>
|
5 |
+
</h1>
|
6 |
+
<div contenteditable="true" class="description-textarea" id="user-store-description" hx-post="/update-stats" hx-trigger="change" hx-target="#user-monster-description" hx-swap="outerHTML" title="Any amount or style of description" style="height: 195px;">
|
7 |
+
<p>Nestled in the heart of the bustling Market District, Enchanted Roots Gear Emporium is a veritable Eden for adventurers seeking gear with a twist of magic and a dash of the unexpected. A vivid cacophony of wild, glowing flora complements the vast inventory of essential equipment and enchanting curiosities. Enchanted Roots was established by Gorgeous, an intelligent fae plant, after it was discovered by a wandering druid in a mystical forest. With an innate understanding of magical flora and fauna, Gorgeous decided to settle in town and share its treasures with the world. Renowned for its unique owner and unusual collection, adventurers and local townsfolk alike swear by the quality and charm of the items sold here.</p>
|
8 |
+
</div>
|
9 |
+
</div>
|
10 |
+
|
11 |
+
<div class="block-item" data-block-id="1" data-page-id="block-container" draggable="true">
|
12 |
+
<textarea class="string-action-description-textarea" id="user-storefront-prompt-1" hx-post="/update-stats" hx-trigger="change" hx-target="#user-sd-prompt" hx-swap="outerHTML" title="Storefront image description" style="height: 80px;">A highly detailed fantasy painting of a curious sentient potted plant in a vibrant gear shop. The plant has phosphorescent leaves and delicate, intricate roots. The shop is filled with glowing flora, magical tools, and adventure gear. The background shows enchanted trees intertwined with the walls and ceiling.</textarea>
|
13 |
+
<button class="generate-image-button" data-block-id="1">Generate Image</button>
|
14 |
+
<img id="generated-image-1" alt="" style="display: none; cursor: pointer;">
|
15 |
+
</div>
|
16 |
+
|
17 |
+
<div class="block-item" data-block-id="2" data-page-id="block-container" draggable="true">
|
18 |
+
<div class="block classTable frame decoration">
|
19 |
+
<table>
|
20 |
+
<thead>
|
21 |
+
<tr>
|
22 |
+
<th align="left"></th>
|
23 |
+
<th align="center"></th>
|
24 |
+
<th align="center"></th>
|
25 |
+
</tr>
|
26 |
+
</thead>
|
27 |
+
<tbody>
|
28 |
+
<tr>
|
29 |
+
<td align="left"><strong>Size</strong></td>
|
30 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-size-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-size-2t" hx-swap="outerHTML" title="Store Size">Medium</textarea></td>
|
31 |
+
</tr>
|
32 |
+
<tr>
|
33 |
+
<td align="left"><strong>Town</strong></td>
|
34 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-town-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-town-2t" hx-swap="outerHTML" title="Store Size">Everbright</textarea></td>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td align="left"><strong>District</strong></td>
|
38 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-district-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-district-2t" hx-swap="outerHTML" title="Store Size">Market District</textarea></td>
|
39 |
+
</tr>
|
40 |
+
<tr>
|
41 |
+
<td align="left"><strong>Street</strong></td>
|
42 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-street-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-street-2t" hx-swap="outerHTML" title="Store Size">Wanderer's Way</textarea></td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td align="left"><strong>Type</strong></td>
|
46 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-type-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-type-2t" hx-swap="outerHTML" title="Store Size">Gear Shop</textarea></td>
|
47 |
+
</tr>
|
48 |
+
<tr>
|
49 |
+
<td align="left"><strong>Store Hours</strong></td>
|
50 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-hours-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-hours-2t" hx-swap="outerHTML" title="Store Size">9 AM - 6 PM, daily</textarea></td>
|
51 |
+
</tr>
|
52 |
+
<tr>
|
53 |
+
<td align="left"><strong>Store Services</strong></td>
|
54 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-services-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-services-2t" hx-swap="outerHTML" title="">Plant Whispering</textarea></td>
|
55 |
+
</tr>
|
56 |
+
<tr>
|
57 |
+
<td align="left"><strong>Store Services</strong></td>
|
58 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-services-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-services-2t" hx-swap="outerHTML" title="">Enchantment Infusion</textarea></td>
|
59 |
+
</tr>
|
60 |
+
<tr>
|
61 |
+
<td align="left"><strong>Store Specialties</strong></td>
|
62 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-specialties-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-specialties-2t" hx-swap="outerHTML" title="">Fae Light Compass</textarea></td>
|
63 |
+
</tr>
|
64 |
+
<tr>
|
65 |
+
<td align="left"><strong>Store Rumors</strong></td>
|
66 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-rumors-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-rumors-2t" hx-swap="outerHTML" title="Rumors" style="height: 64px;">It's whispered that if a seed from Gorgeous's pot is planted under a full moon, it will sprout a magical beanstalk leading to another realm.</textarea></td>
|
67 |
+
</tr>
|
68 |
+
<tr>
|
69 |
+
<td align="left"><strong>Store Reputation</strong></td>
|
70 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-reputation-2" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-reputation-2t" hx-swap="outerHTML" title="Store Size" style="height: 80px;">Renowned for its unique owner and unusual collection, adventurers and local townsfolk alike swear by the quality and charm of the items sold here.</textarea></td>
|
71 |
+
</tr>
|
72 |
+
</tbody>
|
73 |
+
</table>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
|
77 |
+
<div class="block-item" data-block-id="3" data-page-id="block-container" draggable="true">
|
78 |
+
<textarea class="string-action-description-textarea" id="user-storefront-prompt-3" hx-post="/update-stats" hx-trigger="change" hx-target="#user-sd-prompt" hx-swap="outerHTML" title="Storefront image description" style="height: 48px;">A highly detailed fantasy drawing of a sentient potted plant with glowing tendrils, set in an enchanting gear shop filled with vibrant flora and a myriad of magical items.</textarea>
|
79 |
+
<button class="generate-image-button" data-block-id="3">Generate Image</button>
|
80 |
+
<img id="generated-image-3" alt="" style="display: none; cursor: pointer;">
|
81 |
+
</div>
|
82 |
+
|
83 |
+
<div class="block-item" data-block-id="4" data-page-id="block-container" draggable="true">
|
84 |
+
<h2 id="owner">Owner</h2>
|
85 |
+
<h3 id="owner_1"><textarea class="subtitle-textarea" id="user-store-owner-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owner-4t" hx-swap="outerHTML" title="Owner Name">Gorgeous</textarea></h3>
|
86 |
+
<table>
|
87 |
+
<thead>
|
88 |
+
<tr>
|
89 |
+
<th align="center"></th>
|
90 |
+
<th align="center"></th>
|
91 |
+
</tr>
|
92 |
+
</thead>
|
93 |
+
<tbody>
|
94 |
+
<tr>
|
95 |
+
<td align="left"><strong>Owner</strong></td>
|
96 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Owner-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owners-4t" hx-swap="outerHTML" title="">Gorgeous</textarea></td>
|
97 |
+
</tr>
|
98 |
+
<tr>
|
99 |
+
<td align="left"><strong>Species</strong></td>
|
100 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Species-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owners-4t" hx-swap="outerHTML" title="">Fae Plant</textarea></td>
|
101 |
+
</tr>
|
102 |
+
<tr>
|
103 |
+
<td align="left"><strong>Class</strong></td>
|
104 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Class-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owners-4t" hx-swap="outerHTML" title="">Druid</textarea></td>
|
105 |
+
</tr>
|
106 |
+
<tr>
|
107 |
+
<td align="left"><strong>Description</strong></td>
|
108 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Description-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owners-4t" hx-swap="outerHTML" title="" style="height: 32px;">A vibrant potted plant with bioluminescent tendrils and a captivating aura.</textarea></td>
|
109 |
+
</tr>
|
110 |
+
<tr>
|
111 |
+
<td align="left"><strong>Personality</strong></td>
|
112 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Personality-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-owners-4t" hx-swap="outerHTML" title="" style="height: 32px;">Charming, knowledgeable, with a dry sense of humor.</textarea></td>
|
113 |
+
</tr>
|
114 |
+
<tr>
|
115 |
+
<td align="left"><strong>Secrets</strong></td>
|
116 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-secrets-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-secrets-4t" hx-swap="outerHTML" title="Store Size">Contains hidden seeds of a rare, sentient forest.</textarea></td>
|
117 |
+
</tr>
|
118 |
+
<tr>
|
119 |
+
<td align="left"><strong>Secrets</strong></td>
|
120 |
+
<td align="right"><textarea class="string-action-description-textarea" id="user-store-secrets-4" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-secrets-4t" hx-swap="outerHTML" title="Store Size" style="height: 32px;">Can communicate with other plants within a mile radius.</textarea></td>
|
121 |
+
</tr>
|
122 |
+
</tbody>
|
123 |
+
</table>
|
124 |
+
</div>
|
125 |
+
|
126 |
+
<div class="block-item" data-block-id="5" data-page-id="block-container" draggable="true">
|
127 |
+
<textarea class="string-action-description-textarea" id="user-storefront-prompt-5" hx-post="/update-stats" hx-trigger="change" hx-target="#user-sd-prompt" hx-swap="outerHTML" title="Storefront image description" style="height: 49px;">A highly detailed fantasy image of a half-elf shopkeeper with forest-green eyes and flower-adorned hair, set in a magical gear shop filled with glowing plants and enchanted equipment.</textarea>
|
128 |
+
<button class="generate-image-button" data-block-id="5">Generate Image</button>
|
129 |
+
<img id="generated-image-5" alt="" style="display: none; cursor: pointer;">
|
130 |
+
</div>
|
131 |
+
|
132 |
+
<div class="block-item" data-block-id="6" data-page-id="block-container" draggable="true">
|
133 |
+
<h2 id="employee">Employee</h2>
|
134 |
+
<h3 id="owner_1"><textarea class="subtitle-textarea" id="user-store-employee-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="Employee Name">Briar</textarea></h3>
|
135 |
+
<table>
|
136 |
+
<thead>
|
137 |
+
<tr>
|
138 |
+
<th align="center"></th>
|
139 |
+
<th align="center"></th>
|
140 |
+
</tr>
|
141 |
+
</thead>
|
142 |
+
<tbody>
|
143 |
+
<tr>
|
144 |
+
<td align="left"><strong>Employee</strong></td>
|
145 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Employee-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="">Briar</textarea></td>
|
146 |
+
</tr>
|
147 |
+
<tr>
|
148 |
+
<td align="left"><strong>Role</strong></td>
|
149 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Role-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="">Shopkeeper</textarea></td>
|
150 |
+
</tr>
|
151 |
+
<tr>
|
152 |
+
<td align="left"><strong>Species</strong></td>
|
153 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Species-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="">Half-Elf</textarea></td>
|
154 |
+
</tr>
|
155 |
+
<tr>
|
156 |
+
<td align="left"><strong>Description</strong></td>
|
157 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Description-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="" style="height: 32px;">A lithe figure with forest-green eyes and hair adorned with tiny flowers.</textarea></td>
|
158 |
+
</tr>
|
159 |
+
<tr>
|
160 |
+
<td align="left"><strong>Personality</strong></td>
|
161 |
+
<td align="right"><textarea class="string-action-description-textarea" id="Personality-6" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-employee-6t" hx-swap="outerHTML" title="" style="height: 32px;">Warm, effervescent, with an encyclopedic knowledge of magical flora.</textarea></td>
|
162 |
+
</tr>
|
163 |
+
</tbody>
|
164 |
+
</table>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
<div class="block-item" data-block-id="7" data-page-id="block-container" draggable="true">
|
168 |
+
<h1 id="store-quests">Customers</h1>
|
169 |
+
<h3 id="customer_1">
|
170 |
+
<textarea class="subtitle-textarea" id="user-store-customer-7" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-customer-7t" hx-swap="outerHTML" title="Customer Name">Thistle</textarea>
|
171 |
+
</h3>
|
172 |
+
<p>
|
173 |
+
<textarea class="string-action-description-textarea" id="user-store-customer-7" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-customer-7t" hx-swap="outerHTML" title="Customer Description" style="height: 32px;">Description: A mischievous forest sprite often seen fluttering among the flora displays.</textarea>
|
174 |
+
</p>
|
175 |
+
<p>
|
176 |
+
<textarea class="string-action-description-textarea" id="user-store-customer-7" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-customer-7t" hx-swap="outerHTML" title="Customer Influence">Influence: Helps attract other mythical creatures to the shop.</textarea>
|
177 |
+
</p>
|
178 |
+
</div>
|
179 |
+
|
180 |
+
<div class="block-item" data-block-id="8" data-page-id="block-container" draggable="true">
|
181 |
+
<h1 id="store-quests">Store Quests</h1>
|
182 |
+
<h3 id="quest_1">
|
183 |
+
<textarea class="subtitle-textarea" id="user-store-quest-8" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-quest-8t" hx-swap="outerHTML" title="Quest Name">The Lost Seed</textarea>
|
184 |
+
</h3>
|
185 |
+
<p>
|
186 |
+
<textarea class="string-action-description-textarea" id="user-store-quest-8" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-quest-8t" hx-swap="outerHTML" title="Quest Description" style="height: 63px;">Description: Gorgeous has lost a mystical seed that grants immense power to the one who plants it. Locate the seed somewhere in the mystical forest, but beware of the enchanted creatures residing there.</textarea>
|
187 |
+
</p>
|
188 |
+
<p>
|
189 |
+
<textarea class="string-action-description-textarea" id="user-store-quest-8" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-quest-8t" hx-swap="outerHTML" title="Quest Reward" style="height: 32px;">Reward: An enchanted satchel that holds double its volume without increasing in weight.</textarea>
|
190 |
+
</p>
|
191 |
+
</div>
|
192 |
+
|
193 |
+
<div class="block-item" data-block-id="9" data-page-id="block-container" draggable="true">
|
194 |
+
<h1 id="store-quests">Services</h1>
|
195 |
+
<h3 id="service_1">
|
196 |
+
<textarea class="subtitle-textarea" id="user-store-service-9" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-9t" hx-swap="outerHTML" title="Service Name">Plant Whispering</textarea>
|
197 |
+
</h3>
|
198 |
+
<p>
|
199 |
+
<textarea class="string-action-description-textarea" id="user-store-service-9" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-9t" hx-swap="outerHTML" title="Service Description" style="height: 48px;">Description: A unique service where Gorgeous communicates with the plants brought in by customers, diagnosing their needs and healing them.</textarea>
|
200 |
+
</p>
|
201 |
+
<p>
|
202 |
+
<textarea class="string-action-description-textarea" id="user-store-service-9" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-9t" hx-swap="outerHTML" title="Service Price">Price: 5 gold pieces per session</textarea>
|
203 |
+
</p>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
<div class="block-item" data-block-id="10" data-page-id="block-container" draggable="true">
|
207 |
+
<h3 id="service_2">
|
208 |
+
<textarea class="subtitle-textarea" id="user-store-service-10" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-10t" hx-swap="outerHTML" title="Service Name">Enchantment Infusion</textarea>
|
209 |
+
</h3>
|
210 |
+
<p>
|
211 |
+
<textarea class="string-action-description-textarea" id="user-store-service-10" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-10t" hx-swap="outerHTML" title="Service Description" style="height: 32px;">Description: Infuse your regular gear with minor enchantments for enhanced performance.</textarea>
|
212 |
+
</p>
|
213 |
+
<p>
|
214 |
+
<textarea class="string-action-description-textarea" id="user-store-service-10" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-service-10t" hx-swap="outerHTML" title="Service Price">Price: 20 gold pieces per item</textarea>
|
215 |
+
</p>
|
216 |
+
</div>
|
217 |
+
|
218 |
+
<div class="block-item" data-block-id="11" data-page-id="block-container" draggable="true">
|
219 |
+
<h1 id="store-quests">Specialties</h1>
|
220 |
+
<h3 id="specialty_1">
|
221 |
+
<textarea class="subtitle-textarea" id="user-store-specialty-11" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-specialty-11t" hx-swap="outerHTML" title="Specialty Name">Fae Light Compass</textarea>
|
222 |
+
</h3>
|
223 |
+
<p>
|
224 |
+
<textarea class="string-action-description-textarea" id="user-store-specialty-11" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-specialty-11t" hx-swap="outerHTML" title="Specialty Description" style="height: 32px;">Description: A magical compass that not only points north but also glows brightly in the presence of nearby hidden treasures.</textarea>
|
225 |
+
</p>
|
226 |
+
<p>
|
227 |
+
<textarea class="string-action-description-textarea" id="user-store-specialty-11" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-specialty-11t" hx-swap="outerHTML" title="Specialty Price">Price: 35 gold pieces</textarea>
|
228 |
+
</p>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<div class="block-item" data-block-id="12" data-page-id="block-container" draggable="true">
|
232 |
+
<h1 id="store-quests">Security</h1>
|
233 |
+
<h3 id="security_1">
|
234 |
+
<textarea class="subtitle-textarea" id="user-store-security-12" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-security-12t" hx-swap="outerHTML" title="Security Name">Root Sentinels</textarea>
|
235 |
+
</h3>
|
236 |
+
<p>
|
237 |
+
<textarea class="string-action-description-textarea" id="user-store-security-12" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-security-12t" hx-swap="outerHTML" title="Security Description" style="height: 32px;">Description: Invisible roots that prevent theft by entangling or tripping would-be thieves.</textarea>
|
238 |
+
</p>
|
239 |
+
<p>
|
240 |
+
<textarea class="string-action-description-textarea" id="user-store-security-12" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-security-12t" hx-swap="outerHTML" title="Security Mechanics" style="height: 32px;">Mechanics: Automatically triggered by any unauthorized attempt to take an item, they immobilize and alert the staff.</textarea>
|
241 |
+
</p>
|
242 |
+
</div>
|
243 |
+
|
244 |
+
<div class="block-item" data-block-id="13" data-page-id="block-container" draggable="true">
|
245 |
+
<div class="block classTable frame decoration">
|
246 |
+
<h5 id="inventory">Inventory</h5>
|
247 |
+
<table>
|
248 |
+
<thead>
|
249 |
+
<tr>
|
250 |
+
<th align="center">Name</th>
|
251 |
+
<th align="center">Type</th>
|
252 |
+
<th align="left">Cost</th>
|
253 |
+
<th align="center">Properties</th>
|
254 |
+
</tr>
|
255 |
+
</thead>
|
256 |
+
<tbody>
|
257 |
+
<tr>
|
258 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Traveler's Cloak</textarea></td>
|
259 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Apparel</textarea></td>
|
260 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">12 gold pieces</textarea></td>
|
261 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 48px;">Weather-resistant, Self-cleaning</textarea></td>
|
262 |
+
</tr>
|
263 |
+
<tr>
|
264 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Explorer's Rope</textarea></td>
|
265 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Equipment</textarea></td>
|
266 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">8 gold pieces</textarea></td>
|
267 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 32px;">Unbreakable, 50 feet long</textarea></td>
|
268 |
+
</tr>
|
269 |
+
<tr>
|
270 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Glowing Map</textarea></td>
|
271 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type" style="height: 32px;">Navigational Aid</textarea></td>
|
272 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">15 gold pieces</textarea></td>
|
273 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 49px;">Illuminates in the dark, Self-updating</textarea></td>
|
274 |
+
</tr>
|
275 |
+
<tr>
|
276 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Mystic Lantern</textarea></td>
|
277 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Tool</textarea></td>
|
278 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">10 gold pieces</textarea></td>
|
279 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 48px;">Ever-burning flame, Detects magical auras</textarea></td>
|
280 |
+
</tr>
|
281 |
+
<tr>
|
282 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Waterproof Satchel</textarea></td>
|
283 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Bag</textarea></td>
|
284 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">18 gold pieces</textarea></td>
|
285 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 64px;">Waterproof, Pockets that adjust for extra space</textarea></td>
|
286 |
+
</tr>
|
287 |
+
<tr>
|
288 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Verdant Blade</textarea></td>
|
289 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Sword</textarea></td>
|
290 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">50 gold pieces</textarea></td>
|
291 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 80px;">Chlorophyll-infused edge, Regenerates minor damage over time</textarea></td>
|
292 |
+
</tr>
|
293 |
+
<tr>
|
294 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Barkskin Armor</textarea></td>
|
295 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Light Armor</textarea></td>
|
296 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">40 gold pieces</textarea></td>
|
297 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 80px;">Provides moderate protection, Camouflages in forested areas</textarea></td>
|
298 |
+
</tr>
|
299 |
+
<tr>
|
300 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Elixir of Root Strength</textarea></td>
|
301 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Potion</textarea></td>
|
302 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">25 gold pieces</textarea></td>
|
303 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 63px;">Temporarily grants enhanced strength and resistance</textarea></td>
|
304 |
+
</tr>
|
305 |
+
<tr>
|
306 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-name-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-name-13t" hx-swap="outerHTML" title="Item Name" style="height: 32px;">Seed of Instant Growth</textarea></td>
|
307 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-type-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-type-13t" hx-swap="outerHTML" title="Item Type">Seed</textarea></td>
|
308 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-cost-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-cost-13t" hx-swap="outerHTML" title="Item Cost">30 gold pieces</textarea></td>
|
309 |
+
<td align="center"><textarea class="string-action-description-textarea" id="user-store-item-properties-13" hx-post="/update-stats" hx-trigger="change" hx-target="#user-store-item-properties-13t" hx-swap="outerHTML" title="Item Properties" style="height: 80px;">Grows into a full-sized tree within minutes, Can be used once</textarea></td>
|
310 |
+
</tr>
|
311 |
+
</tbody>
|
312 |
+
</table>
|
313 |
+
</div>
|
314 |
+
</div>
|
315 |
+
</div>
|