Skip to content

Commit

Permalink
Update functions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lmm214 authored Jan 3, 2020
1 parent 15dc354 commit a4d1109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions breek/assets/media/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

var parse_url = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/;
var location_href = window.location.href.replace(parse_url,'$3');
$('.post-excerpt a:not(:has(img)),.post-content a:not(:has(img)),.author-name a').hover(function() {
$('.post-excerpt a:not(:has(img)),.post-content a:not(:has(img)),.author-name a,#friends a.friend').hover(function() {
var this_href = $(this).attr('href');
var replace_href = this_href.replace(parse_url,'$3');
if ( this_href != replace_href && location_href != replace_href){$(this).attr('target','_blank');}
Expand Down Expand Up @@ -104,4 +104,4 @@

});

})(jQuery);
})(jQuery);

0 comments on commit a4d1109

Please sign in to comment.