Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to append instantclick bar on div and not only on body #153

Open
kamov opened this issue Mar 12, 2017 · 0 comments
Open

Allow to append instantclick bar on div and not only on body #153

kamov opened this issue Mar 12, 2017 · 0 comments

Comments

@kamov
Copy link

kamov commented Mar 12, 2017

I have a plugin that manipulate DOM and so instantclick bar is moved by this plugin causing some issue.
I hope you can add option to append instantclick bar not only on body but on a specific div, or allow to add it by default in html.

I modify update function in this way:

function update() {
  $barElement.style[$barTransformProperty] = 'translate(' + $barProgress + '%)'
  if (!document.getElementById($barContainer.id)) {
    //document.body.appendChild($barContainer)
      document.getElementById('wrapper').appendChild($barContainer); // Updated
  }
}
@kamov kamov changed the title Allow to append instantclick on div and not only on body Allow to append instantclick bar on div and not only on body Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant