mirror of https://github.com/embarklabs/embark.git
fix: add missing linkjuice built
We lost this when we moved the site into the monorepo because all `dist` folders were ignored. Co-Authored-By: PascalPrecht <pascal.precht@googlemail.com>
This commit is contained in:
parent
2f2c0eefbf
commit
b5db6857a8
|
@ -2,4 +2,5 @@ public
|
|||
db.json
|
||||
debug.log
|
||||
!/yarn.lock
|
||||
!themes/embark/source/js/linkjuice/dist
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
/*! linkjuice v1.0.1 | (c) 2016 @toddmotto | https://github.com/toddmotto/linkjuice */
|
||||
!function(e,n){if("function"==typeof define&&define.amd)define(["exports"],n);else if("undefined"!=typeof exports)n(exports);else{var t={exports:{}};n(t.exports),e.linkjuice=t.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});{var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=void 0,o=void 0,r=void 0,i=function(e,n){return'\n <a class="linkjuice" id="'+e.id+'">\n <span class="linkjuice-icon">'+n+"</span>"+e.innerHTML+"\n </a>"},u=function(e){return'<a href="#'+e.id+'">'+e.innerHTML+"</a>"},c=function(e,n){return e.id?(e.innerHTML=n(e,r),void 0):(console.warn("No ID for element",e),void 0)},f=function(e,n,t){for(var o=t;--e>=0;)Array.isArray(o[o.length-1])||o.push([]),o=o[o.length-1];o.push(n)},s=function(e){var n=/^H[1-6]$/,t=[];return e.filter(function(e){return!n.test(e.tagName)}).length>0?(console.warn("Nested table of contents is only possible with regular header tags"),t):(e.forEach(function(e){return f(parseInt(e.tagName.substr(1),10)-1,e,t)}),t)},l=function d(e,n){var t=e.map(function(e){return Array.isArray(e)?d(e,n):"<li>"+n(e)+"</li>"}).join("");return"<ul>"+t+"</ul>"},a=function(e,f){var a=f.contentFn,d=void 0===a?i:a,p=f.icon,y=void 0===p?"#":p,v=f.selectors,m=void 0===v?["h2","h3","h4","h5","h6"]:v,h=f.tableOfContents,b=void 0===h?!1:h;if(t=document.querySelector(e)){if(r=y,o=Array.prototype.slice.call(t.querySelectorAll(m.join(","))),"object"===("undefined"==typeof b?"undefined":n(b))&&null!==b){var g=document.querySelector(b.selector);if(!g)return console.warn("No table of contents element found for the specified selector"),void 0;var S=b.nested===!0?s(o):o,j="function"==typeof b.contentFn?b.contentFn:u;g.innerHTML=l(S,j)}o.map(function(e){return c(e,d)})}};e.init=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,n)}}});
|
||||
|
Loading…
Reference in New Issue