Skip to content

Commit 63d5589

Browse files
committed
Fix #8: Documentation doesn't mention embedding from jsDelivr.
1 parent 2db15b8 commit 63d5589

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ This fork of the original leanModal contains many fixes and improvements, and as
1919
- Improvement: Names functions more clearly to avoid conflicts.
2020
- Improvement: Added official minified version.
2121

22+
### Installation
23+
24+
Include after jQuery, preferably from jsDelivr:
25+
26+
```html
27+
<script src="https://cdn.jsdelivr.net/gh/eustasy/jQuery.leanModal2@2/jQuery.leanModal2.min.js"></script>
28+
```
29+
2230
### Usage
2331

2432
Add a trigger element with a `data-modal-id` attribute pointing to the `id` of the modal element, then initialise leanModal on the trigger's selector.

‎index.html‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ <h1>jQuery.leanModal2</h1>
4949
</header>
5050
<hr class="section-breaker">
5151

52+
<div class="section-guide grid">
53+
54+
<section class="whole">
55+
<h2>Installation</h2>
56+
<p>Include after jQuery, preferably from jsDelivr:</p>
57+
<textarea class="code rounded" readonly><script src="https://cdn.jsdelivr.net/gh/eustasy/jQuery.leanModal2@2/jQuery.leanModal2.min.js"></script></textarea>
58+
</section>
59+
60+
</div>
61+
62+
<hr class="section-breaker">
63+
5264
<div class="section-guide grid">
5365

5466
<section class="whole">

0 commit comments

Comments
 (0)