Skip to content

Commit

Permalink
remove space split
Browse files Browse the repository at this point in the history
  • Loading branch information
kyupark committed Sep 14, 2012
1 parent 98f8a18 commit 9b149d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lucky.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$(document).ready(function() {
$('em').each(function() {
var text = String($(this).text()).split(' ').split('-').join('+');
var text = String($(this).text()).split('-').join('+');
var url = 'http://www.google.com/search?btnI&q=site:youtube.com+' + text;
$(this).html('<a href="' + url + '">' + $(this).text() + '</a>');
});
$('strong').each(function() {
var text = String($(this).text()).split(' ').split('-').join('+');
var text = String($(this).text()).split('-').join('+');
var url = 'http://www.google.com/search?btnI&q=' + text;
$(this).html('<a href="' + url + '">' + $(this).text() + '</a>');
});
Expand Down

0 comments on commit 9b149d6

Please sign in to comment.