Skip to content

Commit

Permalink
✨ feat: Show cover letter in textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairJibran committed Nov 7, 2024
1 parent 0423d3e commit 1860760
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addon/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ function showCoverLetter(coverLetter) {
const div = document.createElement("div");
div.innerHTML = `<div class="mt-2">
<p>Cover Letter:</p>
<p class="font-monospace">${coverLetter}</p>
</div>`;

const clArea = document.createElement("textarea");
clArea.value = coverLetter;
clArea.rows = 10;
clArea.style.width = "100%";
clArea.style.resize = "none";

const mainDiv = document.getElementById("popup");
mainDiv.appendChild(div);
mainDiv.appendChild(clArea);
}

generateCLButton.addEventListener("click", async function () {
Expand Down

0 comments on commit 1860760

Please sign in to comment.