/*! * AnchorJS - v0.3.1 - 2015-03-06 * https://github.com/bryanbraun/anchorjs * Copyright (c) 2015 Bryan Braun; Licensed MIT */ function addAnchors(e){"use strict";if(e){if("string"!=typeof e)throw new Error("AnchorJS accepts only strings; you used a "+typeof e)}else e="h1, h2, h3, h4, h5, h6";var t=document.querySelectorAll(e);if(0===t.length)return!1;for(var r=document.querySelectorAll("[id]"),n=[].map.call(r,function(e){return e.id}),i=0;iAnchor link for: '+u+'';t[i].innerHTML+=p}}