thank-you-tweet-button-003
Version:
Easy-to-use tweet button for saying thank you to @oluwatobiss.
19 lines (18 loc) • 668 B
JavaScript
export function showError() {
const errorContainer = document.createElement("div");
const errorParagraph = document.createElement("p");
const errorParagraphText = document.createTextNode(
"Error: One or more required parameters are missing in 'tweetButtonParameters'.",
);
errorContainer.setAttribute(
"style",
"display: flex; justify-content: center; margin-top: 30px",
);
errorParagraph.setAttribute(
"style",
"background-color: #DC3545; color: #fff; width: 35%; border-radius: 5px; padding: 15px 20px",
);
errorParagraph.appendChild(errorParagraphText);
errorContainer.appendChild(errorParagraph);
return errorContainer;
}