Skip to content

Commit d71c140

Browse files
committed
feat: standardizes the list of footer references
1 parent 7a581c0 commit d71c140

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

assets/script/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,17 @@ body.querySelector('form').onreset = function() {
244244
behavior: 'smooth'
245245
});
246246

247-
};
247+
};
248+
249+
250+
for (let text of footer.querySelectorAll('form > div > label > input[type="text"]')) {
251+
252+
text.onblur = function() { // Standardize the message
253+
254+
this.value = this.value.trim();
255+
256+
this.value = this.value.split(',').map(e => e.trim()).filter(e => e).join(', ');
257+
258+
};
259+
260+
}

0 commit comments

Comments
 (0)