syncscroll icon indicating copy to clipboard operation
syncscroll copied to clipboard

Use data-syncscroll instead of name

Open jenstornell opened this issue 7 years ago • 1 comments

Are you still maintaining this thing? I had a PHP form that already had name taken. It's not good for syncscroll to use something that is already used by the form.

Around line 51, I change to this:

if (!(name = el.dataset.syncscroll)) {

Other than that it's working great!

By the way, I also changed line 33:

var elems = document.querySelectorAll('[data-syncscroll]');

That way the class does not need to be set.

jenstornell avatar Aug 23 '18 12:08 jenstornell

could you open a pull request? that way others can benefit even if this things isn't maintained anymore

Fuseteam avatar Aug 10 '20 18:08 Fuseteam