Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8377112

Browse files
authored
Recommend cdnjs for hosting
So people stop hot-linking to me ... !
1 parent e534f4e commit 8377112

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ or with [Bower](http://bower.io/):
2323

2424
`bower install jquery-modal`
2525

26-
or the good old fashioned way of including the scripts & styles manually:
26+
or use the hosted version from [cdnjs](https://cdnjs.com/libraries/jquery-modal):
2727

2828
```html
29-
<script src="jquery.modal.min.js" type="text/javascript" charset="utf-8"></script>
30-
<link rel="stylesheet" href="jquery.modal.css" type="text/css" media="screen" />
31-
```
29+
<!-- Remember to include jQuery :) -->
30+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
3231

33-
_(You'll obviously need to include jQuery as well)._
32+
<!-- jQuery Modal -->
33+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.8.2/jquery.modal.min.js"></script>
34+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.8.2/jquery.modal.min.css" />
35+
```
3436

3537
**Using Rails?** Check out the [jquery-modal-rails plugin](https://github.com/dei79/jquery-modal-rails)!
3638

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /