make card_multiselect DRY, closes #26
This commit is contained in:
parent
afaa392b2f
commit
10386b1ce9
6 changed files with 311 additions and 310 deletions
|
|
@ -119,7 +119,6 @@ const $$ = selector => Array.from(document.querySelector(selector));
|
|||
*/
|
||||
function processMarqueeElements() {
|
||||
document.querySelectorAll('.marquee-calc').forEach(element => {
|
||||
console.log(element.innerHTML, element.offsetWidth, element.scrollWidth);
|
||||
if (element.offsetWidth >= 148 || element.offsetWidth < element.scrollWidth) {
|
||||
element.innerHTML = '<marquee behavior="scroll" direction="left" scrolldelay="80">' + element.innerHTML + '</marquee>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue