JSFiddle - React, Tailwind, and code Playground
by dananddna
HTML
<!DOCTYPE html>
<html>
<body>
<p>Make a Cover Letter!</p>
<button onclick="myCover()">Try it</button>
<p>Hello, my name is Daniel Newman. <span id="coverFinal"></span> I think that I would be a proficient candidate for this role.</p>
<p>
</p>
<p>I consider myself to be flexible, self-motivated, and always open to critique. More than anything, I would really love to be part of a creative community.</p>
<p>If you have any questions I can be reached at [email protected].</p>
<p>You can view my portfolio at www.danieljoelnewman.com</p>
<p>Thank you,</p>
<p>Daniel Newman </p>
<!-->--------------------------------------------------------------------</-->
<script>
function myCover() {
var company = prompt("Please enter company name", "Back Pocket Studios");
var position = prompt("Please enter position", " an Art Dude");
if (company != null) {
document.getElementById("coverFinal").innerHTML =
"I noticed that " + company + " had an opening for " + position + ".";
}
}
</script>
</body>
</html>