thank-you-tweet-button-004
Version:
Easy-to-use tweet button for saying thank you to @oluwatobiss.
14 lines (13 loc) • 750 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.showError = showError;
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;
}