Permalink
Browse files

update link in widget

  • Loading branch information...
1 parent b2fbc69 commit f06bd122ea047181e4297f49a44c8350489d15cd @siuying committed Apr 27, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 public/javascripts/widget/seinfeld-badge.js
  2. +3 −3 views/widget.haml
@@ -6,7 +6,7 @@
$streaks,
$progressed,
$x;
- $.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fcalendaraboutnothing.com%2F~" + username + "%22%20and%20xpath%3D%27%2F%2Fdiv%27&format=xml&callback=?", function (data){
+ $.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fopensource.reality.hk%2F~" + username + "%22%20and%20xpath%3D%27%2F%2Fdiv%27&format=xml&callback=?", function (data){
$table = $(data.results[2]);
$streaks = $("<div class=\"streaks\"/>").append(data.results[5]).append(data.results[6]);
$table.find("thead th:contains('Month')").remove()
@@ -17,7 +17,7 @@
$x = $('<div class="xmarksthespot"/>').css({
"height": $progressed.height(),
"width": $progressed.width()
- }).append('<img src="http://calendaraboutnothing.com/images/x_1.png" height="80%" width="50%">');
+ }).append('<img src="http://opensource.reality.hk/images/x_1.png" height="80%" width="50%">');
$progressed.append($x);
});
$seinfeld.append($streaks).append('<p class="pimpage"><a href="https://github.com/lachlanhardy/seinfeld-badge">Want your own badge?</a></p>');
View
@@ -19,19 +19,19 @@
%p
%textarea
:preserve
- <link rel="stylesheet" href="http://calendaraboutnothing.com/styles/widget/seinfeld-badge.css" media="screen, projection" type="text/css">
+ <link rel="stylesheet" href="http://opensource.reality.hk/styles/widget/seinfeld-badge.css" media="screen, projection" type="text/css">
<div class="seinfeld-badge user-#{@user.login}">
<h2>I like open software</h2>
- <p><a href="http://calendaraboutnothing.com/~#{@user.login}" rel="me">Calendar About Nothing</a> tracks my public contributions on <A href="https://github.com/#{@user.login}">GitHub</a>.</p>
+ <p><a href="http://opensource.reality.hk/~#{@user.login}" rel="me">Calendar About Nothing</a> tracks my public contributions on <A href="https://github.com/#{@user.login}">GitHub</a>.</p>
</div> <!-- .seinfeld-badge .user-#{@user.login} -->
<!-- Using Google's CDN for JS -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<!-- // jQuery hosting -->
<!-- Adding Seinfeld CAN Badge -->
- <script src="http://calendaraboutnothing.com/javascripts/widget/seinfeld-badge.js" type="text/javascript"></script>
+ <script src="http://opensource.reality.hk/javascripts/widget/seinfeld-badge.js" type="text/javascript"></script>
<!-- // Seinfeld badge-->
%p

0 comments on commit f06bd12

Please sign in to comment.