mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Remove jQuery from docs/repo.
Some of the snippets need to be updated later.
This commit is contained in:
@@ -264,9 +264,9 @@ Navbar links must have resolvable id targets. For example, a `<a href="#home">ho
|
||||
{% include callout.html content=callout type="danger" %}
|
||||
|
||||
{% capture callout %}
|
||||
#### Non-`:visible` target elements ignored
|
||||
#### Non-visible target elements ignored
|
||||
|
||||
Target elements that are not [`:visible` according to jQuery](https://api.jquery.com/visible-selector/) will be ignored and their corresponding nav items will never be highlighted.
|
||||
Target elements that are not visible will be ignored and their corresponding nav items will never be highlighted.
|
||||
{% endcapture %}
|
||||
{% include callout.html content=callout type="info" %}
|
||||
|
||||
@@ -310,7 +310,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
|
||||
<td>method</td>
|
||||
<td>string</td>
|
||||
<td>auto</td>
|
||||
<td>Finds which section the spied element is in. <code>auto</code> will choose the best method get scroll coordinates. <code>offset</code> will use jQuery offset method to get scroll coordinates. <code>position</code> will use jQuery position method to get scroll coordinates.</td>
|
||||
<td>Finds which section the spied element is in. <code>auto</code> will choose the best method get scroll coordinates. <code>offset</code> will use the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect"><code>Element.getBoundingClientRect()</code></a> method to get scroll coordinates. <code>position</code> will use the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop"><code>HTMLElement.offsetTop</code></a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft"><code>HTMLElement.offsetLeft</code></a> properties to get scroll coordinates.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>target</td>
|
||||
|
||||
Reference in New Issue
Block a user