|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
TimelineJS - ver. 2015-02-17-22-18-48 - 2015-02-17 |
|
|
|
TimelineJS - ver. 2015-02-26-21-41-00 - 2015-02-26 |
|
|
|
Copyright (c) 2012-2013 Northwestern University |
|
|
|
Copyright (c) 2012-2013 Northwestern University |
|
|
|
a project of the Northwestern University Knight Lab, originally created by Zach Wise |
|
|
|
a project of the Northwestern University Knight Lab, originally created by Zach Wise |
|
|
|
https://github.com/NUKnightLab/TimelineJS
|
|
|
|
https://github.com/NUKnightLab/TimelineJS
|
|
|
@ -2025,12 +2025,16 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') { |
|
|
|
return text.replace(exp, "<a href='$1' target='_blank'>$3</a>"); |
|
|
|
return text.replace(exp, "<a href='$1' target='_blank'>$3</a>"); |
|
|
|
} |
|
|
|
} |
|
|
|
// Email addresses
|
|
|
|
// Email addresses
|
|
|
|
var emailAddressPattern = /([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)/gim; |
|
|
|
var emailAddressPattern = /([a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)/gim; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var twitterHandlePattern = /(@([\w]+))/g;
|
|
|
|
var twitterHandlePattern = /\B@([\w-]+)/gm; |
|
|
|
var twitterHandlePattern = /\B@([\w-]+)/gm; |
|
|
|
var twitterSearchPattern = /(#([\w]+))/g; |
|
|
|
var twitterSearchPattern = /(#([\w]+))/g; |
|
|
|
|
|
|
|
|
|
|
|
return text |
|
|
|
return text |
|
|
|
|
|
|
|
//.replace(urlPattern, "<a target='_blank' href='$&' onclick='void(0)'>$&</a>")
|
|
|
|
|
|
|
|
.replace(url_pattern, url_replace) |
|
|
|
|
|
|
|
.replace(pseudoUrlPattern, "$1<a target='_blank' class='hyphenate' onclick='void(0)' href='http://$2'>$2</a>") |
|
|
|
.replace(emailAddressPattern, "<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>") |
|
|
|
.replace(emailAddressPattern, "<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>") |
|
|
|
.replace(twitterHandlePattern, "<a href='http://twitter.com/$1' target='_blank' onclick='void(0)'>@$1</a>"); |
|
|
|
.replace(twitterHandlePattern, "<a href='http://twitter.com/$1' target='_blank' onclick='void(0)'>@$1</a>"); |
|
|
|
|
|
|
|
|
|
|
|