Skip to content

Commit 7cb0141

Browse files
committed
removing unnecessary 'github-repo' class
1 parent ed9f92a commit 7cb0141

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Use the `github-widget` class and create an attribute called `data-repo`:
88

99
```html
10-
<div class="github-widget" data-repo="jquery-boilerplate/boilerplate"></div>
10+
<div data-repo="jquery-boilerplate/boilerplate"></div>
1111
```
1212

1313
Include jQuery:
@@ -26,7 +26,7 @@ Include plugin's CSS and JS:
2626
Call the plugin:
2727

2828
```javascript
29-
$('.github-repos').githubRepos();
29+
$('[data-repo]').githubRepos();
3030
```
3131

3232
And that's it \o/
@@ -48,6 +48,7 @@ Prefer a non-jquery version with pure JavaScript? No problem, [@ricardobeat](htt
4848
## History
4949

5050
* v0.2.2 January 15, 2013
51+
* Fixed "Last commit" date
5152
* Cached repo data using sessionStorage
5253
* Added error message if API exceeds its limits
5354
* v0.2.1 January 13, 2013

demo/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h1>jQuery Github Repos</h1>
2424
</div>
2525

2626
<div class="projects">
27-
<div class="github-repos" data-repo="jquery-boilerplate/boilerplate"></div>
28-
<div class="github-repos" data-repo="zenorocha/diveintohtml5"></div>
29-
<div class="github-repos" data-repo="zenorocha/jquery-github-repos"></div>
30-
<div class="github-repos" data-repo="zenorocha/hub.me"></div>
27+
<div data-repo="jquery-boilerplate/boilerplate"></div>
28+
<div data-repo="zenorocha/diveintohtml5"></div>
29+
<div data-repo="zenorocha/jquery-github-repos"></div>
30+
<div data-repo="zenorocha/hub.me"></div>
3131
</div>
3232

3333
<p class="credits">Made with love by <a href="http://zenorocha.com">Zeno Rocha</a>.</p>
@@ -38,7 +38,7 @@ <h1>jQuery Github Repos</h1>
3838
<script src="../jquery.github.repos.min.js"></script>
3939

4040
<script>
41-
$('.github-repos').githubRepos();
41+
$('[data-repo]').githubRepos();
4242
</script>
4343

4444
</body>

0 commit comments

Comments
 (0)