Skip to content

Commit a689d71

Browse files
feat: Enable uncommon word highlighting by default
This commit updates the uncommon word highlighting feature to be enabled by default when the page loads. Changes: - Modified `index.html` to add the `checked` attribute to the 'enableWordCheck' checkbox. - Modified `js/src/htmlHelper.js` to ensure `refreshPreparedAbstract()` is called during the initial page load sequence, which processes the abstract with the feature enabled by default. This responds to your feedback requesting the feature to be active without requiring an initial click.
1 parent c33d652 commit a689d71

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2>Your Raw Abstract.</h2>
8383
8484
copied from the PDF or LaTeX source!" id="abstractTextarea" class="form-control"></textarea>
8585
<p><div class="control-group"><button type="button" class="btn btn-default" onClick="clearAbstract();">Clear Abstract.</button><label style="margin-left: 10px;">
86-
<input type="checkbox" id="enableWordCheck"> Underline uncommon words
86+
<input type="checkbox" id="enableWordCheck" checked> Underline uncommon words
8787
</label></div></p>
8888
</div>
8989
<div class="col-md-6">

js/src/htmlHelper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ $(function() {
127127
$('#formattedAbstract').selectText();
128128
});
129129
formatAbstractFromURL();
130+
refreshPreparedAbstract(); // Add this new call
130131
});
131132

132133
$('#prepared').hover(

0 commit comments

Comments
 (0)