|
|
|
|
|
by masklinn
2815 days ago
|
|
> I use it for linking to comments on my site. Users can copy a link to a particular comment, and the link directs people to the appropriate topic and location on the page. That works out of the box, it's a native HTML/browser feature. Why do you pass location.hash to jQuery? |
|
In scenarios where you can’t redesign the html structure or css to give the element more padding, you pretty much have to use javascript to get the window-x position of the element.