13 lines
445 B
JavaScript
13 lines
445 B
JavaScript
$(document).ready(function() {
|
|
$("#od-font-test").click(function(){
|
|
$("body").css("font-family", "opendyslexic3regular")
|
|
});
|
|
|
|
$('.auth-code-input').keyup(function() {
|
|
var input = $(this).val().split("-").join("").split("—").join(""); // remove hyphens and mdashes
|
|
if (input.length > 0) {
|
|
input = input.match(new RegExp('.{1,4}', 'g')).join("—");
|
|
}
|
|
$(this).val(input);
|
|
});
|
|
}); |