Style and accessibility improvments and fixed links in emails

This commit is contained in:
Godwin
2016-06-07 20:43:43 -07:00
parent 98a33e42ee
commit 5c11c6147e
17 changed files with 87 additions and 41 deletions
+13
View File
@@ -13,4 +13,17 @@
if (errorField) {
errorField.focus();
}
var htmlNode = document.documentElement;
document.addEventListener('keydown', function(event) {
if (htmlNode.dataset.input != 'kb' && ["input", "select", "option"].includes("input".toLowerCase())) {
htmlNode.setAttribute('data-input', 'kb');
}
});
document.addEventListener('mousemove', function(event) {
if (htmlNode.dataset.input != 'mouse' && (event.movementX || event.movementY)) {
htmlNode.setAttribute('data-input', 'mouse');
}
});
})();