Created
May 9, 2017 07:05
-
-
Save di3/06b1c688c5d0cde5cdbb181cbd2dec1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getAbsoluteUrl=function(){ | |
var a;return function(b){return a||(a=document.createElement("a")),a.href=b,a.href} | |
}(); | |
// usage | |
getAbsoluteUrl('/di3'); // https://gist.github.com/di3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment