Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
replace behavior for event
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 8, 2015
1 parent 1beb4fe commit 43bf742
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/js/src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ $ ->
$('#profile-resume').text window.profile_resume if window.profile_resume

if Uno.is 'device', 'desktop'
$(document.links).filter ->
@hostname != window.location.hostname
.attr 'target', '_blank'
$('a').not('[href*="mailto:"]').click ->
if this.href.indexOf(location.hostname) is -1
window.open $(this).attr 'href'
false

if Uno.is 'page', 'post'
$('main').readingTime readingTimeTarget: '.post.reading-time > span'
Expand Down

0 comments on commit 43bf742

Please sign in to comment.