Skip to content

Commit c44cf71

Browse files
committed
renaming plugin
1 parent 1ead7b2 commit c44cf71

File tree

5 files changed

+23
-79
lines changed

5 files changed

+23
-79
lines changed

README.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44

55
<meta charset="UTF-8">
6-
<title>jQuery Github Repos</title>
6+
<title>jQuery Github</title>
77

88
<!-- Plugin CSS -->
99
<link rel="stylesheet" href="js/assets/base.css">
@@ -14,31 +14,31 @@
1414
</head>
1515
<body>
1616

17-
<a href="https://github.com/zenorocha/jquery-github-repos">
17+
<a href="https://github.com/zenorocha/jquery-github">
1818
<img class="github-ribbon" src="img/github-ribbon.png" alt="Fork me on GitHub">
1919
</a>
2020

2121
<div class="title">
22-
<h1>jQuery Github Repos</h1>
23-
<p>A jQuery plugin to display your favorite Github Repositories.<br>For more informations, visit our <a href="https://github.com/zenorocha/jquery-github-repos">repository</a>.</p>
22+
<h1>jQuery Github</h1>
23+
<p>A jQuery plugin to display your favorite Github Repositories.<br>For more informations, visit our <a href="https://github.com/zenorocha/jquery-github">repository</a>.</p>
2424
</div>
2525

2626
<div class="projects">
2727
<div data-repo="jquery-boilerplate/boilerplate"></div>
2828
<div data-repo="zenorocha/diveintohtml5"></div>
29-
<div data-repo="zenorocha/jquery-github-repos"></div>
29+
<div data-repo="zenorocha/jquery-github"></div>
3030
<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>
3434

3535
<img id="github-logo" src="img/github-cat.png" alt="Github Cat" />
3636

37-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
38-
<script src="js/jquery.github.repos.min.js"></script>
37+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
38+
<script src="js/jquery.github.min.js"></script>
3939

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

4444
</body>

js/jquery.github.repos.js renamed to js/jquery.github.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* jQuery Github Repos v0.2.2
2+
* jQuery Github v0.2.2
33
* A jQuery plugin to display your Github Repositories.
4-
* http://git.io/3A1RMg
4+
* http://git.io/WUV4_Q
55
*
66
* Zeno Rocha
77
* MIT License
@@ -21,7 +21,7 @@
2121
// minified (especially when both are regularly referenced in your plugin).
2222

2323
// Create the defaults once
24-
var pluginName = 'githubRepos',
24+
var pluginName = 'github',
2525
document = window.document,
2626
defaults = {
2727
propertyName: "value"
@@ -94,7 +94,7 @@
9494
var date = new Date(repo.pushed_at);
9595
var pushed_at = date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear();
9696

97-
var $widget = $(' \
97+
var $widget = $($.parseHTML(' \
9898
<div class="github-box"> \
9999
<div class="github-box-header"> \
100100
<h3> \
@@ -113,7 +113,7 @@
113113
<a class="repo-download" href="' + repo.url.replace('api.','').replace('repos/','') + '/zipball/master">Download as zip</a> \
114114
</div> \
115115
</div> \
116-
');
116+
'));
117117

118118
self.appendTemplate($widget);
119119

js/jquery.github.min.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.github.repos.min.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)