Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aikakakah authored Dec 15, 2024
1 parent 512e7e6 commit 136cf3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ document.addEventListener('DOMContentLoaded', () => {
});
});

window.changeFontSize = function() {
const selectElement = document.getElementById('size-select-select');
window.changeHeaderLevel = function() {
const selectElement = document.getElementById('header-select-select');
const selectedValue = selectElement.value;

if (selectedValue) {
insertTag("size=" + selectedValue);
insertTag("head=" + selectedValue);
// Reset the dropdown to the hidden option
selectElement.selectedIndex = 0;
}
Expand Down

0 comments on commit 136cf3b

Please sign in to comment.