Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove space split

  • Loading branch information...
commit 9b149d63596349b66ac69374b45b5174ed4a9ed6 1 parent 98f8a18
Kyu Park authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lucky.js
4 lucky.js
View
@@ -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>');
});
Please sign in to comment.
Something went wrong with that request. Please try again.