clientWidth isn't working?

pull/11/head
Joe 2 years ago
parent 660f028c03
commit 8dd39e1ee0
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
  1. 2
      js/longlinks.js

@ -2,7 +2,7 @@
document.addEventListener('DOMContentLoaded', function () {
var link = document.getElementsByTagName('A');
for (var i = 0; i < link.length; i++) {
if (link[i].clientWidth > 460) {
if (link[i].offsetWidth > 460) {
link[i].classList.add('long')
};
}

Loading…
Cancel
Save