Skip to content

Commit

Permalink
Merge pull request #13 from Noodlebox1/experimental
Browse files Browse the repository at this point in the history
Merged experimental with gh-pages to add support for icons in the javascript
  • Loading branch information
Noodlebox1 authored Sep 24, 2024
2 parents 308c96c + 0c1dbb7 commit 326b9dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ function toggleSpellcheck() {
// Toggle spellcheck attribute
if (isSpellcheckEnabled) {
textArea.setAttribute('spellcheck', 'false');
link.textContent = 'Enable Spellcheck';
} else {
textArea.setAttribute('spellcheck', 'true');
link.textContent = 'Disable Spellcheck';
}

// Toggle link styling
Expand Down Expand Up @@ -43,3 +41,4 @@ document.getElementById('downloadBtn').addEventListener('click', function() {
document.body.removeChild(a);
URL.revokeObjectURL(url);
});

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

<body>
<div class="controls">
<div class="spellcheckToggle"><a id="toggleLink" class="toggle-link" onclick="toggleSpellcheck()"><img src="assets/spellcheck_dark.svg" width="24" height=24></a>
<div class="spellcheckToggle"><a id="toggleLink" class="toggle-link" onclick="toggleSpellcheck()"><img src="assets/spellcheck_dark.svg" width="24" height=24 alt="Toggle spellcheck"></a>
<br>
<br>
<a id="downloadBtn"><img src="assets/download_dark.svg" width="24" height="24"></a>
<a id="downloadBtn"><img src="assets/download_dark.svg" width="24" height="24" alt="Download"></a>
</div>
</div>
<div class="wordCount"><span id="wordCount">0</span> words</div>
Expand Down

0 comments on commit 326b9dc

Please sign in to comment.