Browse Source

clientWidth isn't working?

pull/11/head
Joe 4 months ago
parent
commit
8dd39e1ee0
Signed by: joe GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      js/longlinks.js

+ 1
- 1
js/longlinks.js View File

@ -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