gammatools/web/assets/js/createDescriptionSection.js

12 lines
322 B
JavaScript
Raw Normal View History

export function createDescriptionSection(data) {
// Description section
let description = document.createElement('div');
description.className = 'creature_description';
description.innerHTML = `
<h3>Description</h3>
${data.description}
`;
return description;
}