// the two possible header heights. It requires some variable duplication
// but it's a reasonable compromise given the constraints...
import cssVars from 'css-vars-ponyfill';
+
cssVars({});
return el.scrollTop;
}
+document.addEventListener('DOMContentLoaded', function () {
+ var links = document.links;
+
+ for (var i = 0, linksLength = links.length; i < linksLength; i++) {
+ var link = links[i];
+ if (!link.target && link.hostname !== window.location.hostname) {
+ link.target = '_blank';
+ }
+ }
+});
+
document.addEventListener('scroll', function () {
checkScroll();
}, {passive: true});