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

Inline content #20

Closed
ronnsson opened this issue Jan 3, 2016 · 3 comments
Closed

Inline content #20

ronnsson opened this issue Jan 3, 2016 · 3 comments

Comments

@ronnsson
Copy link

ronnsson commented Jan 3, 2016

Hey!
Great plugin! I just had one question however. I want to use the inline function for a couple of different explanatory textfields. The ID messes with this however since they are being used on the same page. Do you have any pointers here?

Cheers,
Ronny

@jsor
Copy link
Owner

jsor commented Jan 4, 2016

Not sure what the actual problem is since lity doesn't duplicate the inline content. Could you maybe setup a reproducible test case on jsfiddle or similar to illustrate the problem?

@ronnsson
Copy link
Author

ronnsson commented Jan 7, 2016

I'm having a bit of trouble running the fiddle with lity at all but you can see the markup at least.
https://jsfiddle.net/dmLdohdo/

@jsor
Copy link
Owner

jsor commented Jan 11, 2016

Ok, i see now. Can't you just use different id's?

<a href="#inline-1" data-lity>
  <p>i</p>
</a>
<div id="inline-1" class="lity-hide">
  <p>Test1</p>
</div>

<a href="#inline-2" data-lity>
  <p>i</p>
</a>
<div id="inline-2" class="lity-hide">
  <p>Test2</p>
</div>

@jsor jsor closed this as completed Jan 29, 2016
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

2 participants