Skip to content

Commit

Permalink
unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Jan 17, 2024
1 parent ec5e371 commit d4b3727
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions events.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ function toggleClassById(_id, className) {
function dispatchSearchInputEvent() {
id("search").dispatchEvent(new Event("input", {"bubbles": true}));
}
function wrapSearchbar(before, after) {
id("before").innerHTML = before;
id("after").innerHTML = after;
}
function searchMode() {
clearTimeout(timer);
removeClasses();
Expand All @@ -174,7 +170,6 @@ function searchMode() {
addClassById("sm", "checked");
config["rhyme"] = false;
config["regex"] = false;
wrapSearchbar("<wbr />", "<wbr />");
dispatchSearchInputEvent();
}
function regexMode(togglei, toggletight) {
Expand All @@ -194,10 +189,6 @@ function regexMode(togglei, toggletight) {
toggleClassById("regex-tight", "checked");
config["regex.tight"] = !config["regex.tight"];
}
wrapSearchbar(
"/" + (config["regex.tight"] ? "^" : ""),
(config["regex.tight"] ? "$" : "") + "/" + (config["regex.insensitive"] ? "i" : "")
);
dispatchSearchInputEvent();
}
function rhymeMode(toggle) {
Expand All @@ -209,7 +200,6 @@ function rhymeMode(toggle) {
addClassById("rm", "checked");
config["rhyme"] = true;
config["regex"] = false;
wrapSearchbar("<wbr />", "<wbr />");
if (toggle) {
toggleClassById("rhyme-y", "checked");
config["rhyme.ignorey"] = !config["rhyme.ignorey"];
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ <h1>la xlasisku</h1>
</span>
</p>
<div id="fakebox">
<label id="before" for="search"><wbr /></label>
<input type="text" id="search" name="search" autocomplete="off" spellcheck="false" placeholder="loading" disabled size="1" />
<label id="after" for="search"><wbr /></label>
<span id="clear-wrap">&nbsp;<button id="clear">×</button></span>
</div>
<div id="info"></div>
Expand Down

0 comments on commit d4b3727

Please sign in to comment.