Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2018-05-03 09:06:51 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-05-03 09:06:51 +0300
commit562953c4ae612fa1de4261a858db858222aa3e7c (patch)
treea35f64bd808acc9d3ef176ed18151077932c5b7e
parent16d1d3278872d03fe8e0ad87eb1c8bffb6dd4a55 (diff)
fix: In code block, no language is specified, console show error #51
-rw-r--r--src/js/highlight.js4
-rw-r--r--static/dist/jane.min.js2
-rw-r--r--static/dist/jane.min.js.map2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/js/highlight.js b/src/js/highlight.js
index f8f27e7..d27ed8c 100644
--- a/src/js/highlight.js
+++ b/src/js/highlight.js
@@ -6,7 +6,9 @@ export default function () {
document.querySelectorAll('.chroma>table')
.forEach((element) => {
const sub = element.querySelector('code[data-lang]');
- element.setAttribute('data-lang', mapLang(sub.getAttribute('data-lang')));
+ if (sub !== null) {
+ element.setAttribute('data-lang', mapLang(sub.getAttribute('data-lang')));
+ }
});
}
diff --git a/static/dist/jane.min.js b/static/dist/jane.min.js
index a823514..1dc89e5 100644
--- a/static/dist/jane.min.js
+++ b/static/dist/jane.min.js
@@ -1,2 +1,2 @@
-!function(e){var t={};function n(o){if(t[o])return t[o].exports;var c=t[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n(1);var o=u(n(2)),c=u(n(3)),i=u(n(4)),l=u(n(5)),r=u(n(6)),a=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}$(document).ready(function(){(0,o.default)(),(0,c.default)(),(0,i.default)(),(0,l.default)(),(0,r.default)()}),(0,a.default)()},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=$("#back-to-top");$(window).scroll(function(){$(window).scrollTop()>100?e.fadeIn(1e3):e.fadeOut(1e3)}),e.click(function(){$("body,html").animate({scrollTop:0})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=$("#mobile-navbar"),t=$(".mobile-navbar-icon"),n=new Slideout({panel:document.getElementById("mobile-panel"),menu:document.getElementById("mobile-menu"),padding:180,tolerance:70});n.disableTouch(),t.click(function(){n.toggle()}),n.on("beforeopen",function(){e.addClass("fixed-open"),t.addClass("icon-click").removeClass("icon-out")}),n.on("beforeclose",function(){e.removeClass("fixed-open"),t.addClass("icon-out").removeClass("icon-click")}),$("#mobile-panel").on("touchend",function(){n.isOpen()&&t.click()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t=document.getElementById("post-toc");null!==t&&(null===document.getElementById("TableOfContents")?t.parentNode.removeChild(t):(e=$("#post-toc")).length&&$(window).width()>=1080&&$(window).scroll(function(){$(window).scrollTop()>100?e.fadeIn(1e3):e.fadeOut(100)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=document.getElementsByClassName("post-content")[0];if(e)for(var t=1;t<=4;t++)o(t,e)};var o=function(e,t){for(var n,o,c=t.getElementsByTagName("h"+e),i=0;i<c.length;i++){var l=c[i];l.className="post-content-header",void 0!==l.id&&""!==l.id&&l.appendChild((n=l.id,o=void 0,(o=document.createElement("a")).className="header-link",o.href="#"+n,o.innerHTML='<svg viewBox="0 0 16 10" version="1.1" width="24" height="24"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg>',o))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){$(".footnote-ref").each(function(){var e=$(this).children("a").attr("href").substr(1),t=$(document.getElementById(e)).clone(),n=$("<span>",{class:"fn-content"}),o=$("<span>",{class:"fn-text"});t.find(".footnote-return").remove(),$(this).append(n.append(o.html(t.html())))});var e=function(){var e=$(".fn-content").removeAttr("style");$(window).width()<640?e.css("width",$(window).width()/2):e.css("width",340),e.each(function(){var e=$(this).children(".fn-text").outerWidth();$(this).css({width:e,"margin-left":e/-2})})};e(),$(window).resize(e())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){document.querySelectorAll(".chroma>table").forEach(function(e){var t,n=e.querySelector("code[data-lang]");e.setAttribute("data-lang",{coffeescript:"CoffeeScript",cpp:"C++",cs:"C#",css:"CSS",html:"HTML",http:"HTTP",js:"JavaScript",json:"JSON",objectivec:"Objective-C",php:"PHP",sql:"SQL",toml:"TOML",ts:"TypeScript",typescript:"TypeScript",xml:"XML",yaml:"YAML"}[t=n.getAttribute("data-lang")]||t)})}}]);
+!function(e){var t={};function n(o){if(t[o])return t[o].exports;var c=t[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n(1);var o=u(n(2)),c=u(n(3)),i=u(n(4)),l=u(n(5)),r=u(n(6)),a=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}$(document).ready(function(){(0,o.default)(),(0,c.default)(),(0,i.default)(),(0,l.default)(),(0,r.default)()}),(0,a.default)()},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=$("#back-to-top");$(window).scroll(function(){$(window).scrollTop()>100?e.fadeIn(1e3):e.fadeOut(1e3)}),e.click(function(){$("body,html").animate({scrollTop:0})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=$("#mobile-navbar"),t=$(".mobile-navbar-icon"),n=new Slideout({panel:document.getElementById("mobile-panel"),menu:document.getElementById("mobile-menu"),padding:180,tolerance:70});n.disableTouch(),t.click(function(){n.toggle()}),n.on("beforeopen",function(){e.addClass("fixed-open"),t.addClass("icon-click").removeClass("icon-out")}),n.on("beforeclose",function(){e.removeClass("fixed-open"),t.addClass("icon-out").removeClass("icon-click")}),$("#mobile-panel").on("touchend",function(){n.isOpen()&&t.click()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t=document.getElementById("post-toc");null!==t&&(null===document.getElementById("TableOfContents")?t.parentNode.removeChild(t):(e=$("#post-toc")).length&&$(window).width()>=1080&&$(window).scroll(function(){$(window).scrollTop()>100?e.fadeIn(1e3):e.fadeOut(100)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=document.getElementsByClassName("post-content")[0];if(e)for(var t=1;t<=4;t++)o(t,e)};var o=function(e,t){for(var n,o,c=t.getElementsByTagName("h"+e),i=0;i<c.length;i++){var l=c[i];l.className="post-content-header",void 0!==l.id&&""!==l.id&&l.appendChild((n=l.id,o=void 0,(o=document.createElement("a")).className="header-link",o.href="#"+n,o.innerHTML='<svg viewBox="0 0 16 10" version="1.1" width="24" height="24"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg>',o))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){$(".footnote-ref").each(function(){var e=$(this).children("a").attr("href").substr(1),t=$(document.getElementById(e)).clone(),n=$("<span>",{class:"fn-content"}),o=$("<span>",{class:"fn-text"});t.find(".footnote-return").remove(),$(this).append(n.append(o.html(t.html())))});var e=function(){var e=$(".fn-content").removeAttr("style");$(window).width()<640?e.css("width",$(window).width()/2):e.css("width",340),e.each(function(){var e=$(this).children(".fn-text").outerWidth();$(this).css({width:e,"margin-left":e/-2})})};e(),$(window).resize(e())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){document.querySelectorAll(".chroma>table").forEach(function(e){var t,n=e.querySelector("code[data-lang]");null!==n&&e.setAttribute("data-lang",{coffeescript:"CoffeeScript",cpp:"C++",cs:"C#",css:"CSS",html:"HTML",http:"HTTP",js:"JavaScript",json:"JSON",objectivec:"Objective-C",php:"PHP",sql:"SQL",toml:"TOML",ts:"TypeScript",typescript:"TypeScript",xml:"XML",yaml:"YAML"}[t=n.getAttribute("data-lang")]||t)})}}]);
//# sourceMappingURL=jane.min.js.map \ No newline at end of file
diff --git a/static/dist/jane.min.js.map b/static/dist/jane.min.js.map
index 748d1a5..99ae079 100644
--- a/static/dist/jane.min.js.map
+++ b/static/dist/jane.min.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap c66714a482a52df07c63","webpack:///./js/main.js","webpack:///./js/backToTop.js","webpack:///./js/mobileNavbar.js","webpack:///./js/toc.js","webpack:///./js/headerAnchor.js","webpack:///./js/footnoteTooltip.js","webpack:///./js/highlight.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","$","document","ready","_backToTop2","default","_mobileNavbar2","_toc2","_headerAnchor2","_footnoteTooltip2","_highlight2","$backToTop","window","scroll","scrollTop","fadeIn","fadeOut","click","animate","$mobileNav","$mobileNavIcon","slideout","Slideout","panel","getElementById","menu","padding","tolerance","disableTouch","toggle","on","addClass","removeClass","isOpen","$toc","tocContainer","parentNode","removeChild","length","width","contentBlock","getElementsByClassName","level","linkifyAnchors","containingElement","id","anchor","headers","getElementsByTagName","h","header","className","appendChild","createElement","href","innerHTML","each","this","children","attr","substr","footnote","clone","outer_wrapper","class","inner_wrapper","find","remove","append","html","position","content","removeAttr","css","outerWidth","margin-left","resize","querySelectorAll","forEach","element","sub","querySelector","setAttribute","coffeescript","cpp","cs","http","js","json","objectivec","php","sql","toml","ts","typescript","xml","yaml","getAttribute"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ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BF,EAAQf,KAAK,WACX,IAAIjB,EAAQtC,EAAEwD,MAAMC,SAAS,YAAYgB,aACzCzE,EAAEwD,MAAMgB,KACNlC,MAASA,EACToC,cAAepC,GAAS,OAI9B+B,IACArE,EAAEW,QAAQgE,OAAON,+FC1BJ,WACbpE,SAAS2E,iBAAiB,iBACvBC,QAAQ,SAACC,GACR,IAKW9F,EALL+F,EAAMD,EAAQE,cAAc,mBAClCF,EAAQG,aAAa,aAMvBC,aAAc,eACdC,IAAK,MACLC,GAAI,KACJZ,IAAK,MACLJ,KAAM,OACNiB,KAAM,OACNC,GAAI,aACJC,KAAM,OACNC,WAAY,cACZC,IAAK,MACLC,IAAK,MACLC,KAAM,OACNC,GAAI,aACJC,WAAY,aACZC,IAAK,MACLC,KAAM,QAjBO/G,EAJ+B+F,EAAIiB,aAAa,eAsBpDhH","file":"jane.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c66714a482a52df07c63","import '../css/style.scss';\n\nimport backToTop from './backToTop';\nimport mobileNavbar from './mobileNavbar';\nimport toc from './toc';\nimport headerAnchor from './headerAnchor';\nimport fnTooltip from './footnoteTooltip';\nimport highlight from './highlight';\n\n\n$(document).ready(function () {\n backToTop();\n mobileNavbar();\n toc();\n headerAnchor();\n fnTooltip();\n});\n\nhighlight();\n\n\n\n// WEBPACK FOOTER //\n// ./js/main.js","/**\n * back to top\n */\n\nexport default function () {\n const $backToTop = $('#back-to-top');\n\n $(window).scroll(function () {\n if ($(window).scrollTop() > 100) {\n $backToTop.fadeIn(1000);\n } else {\n $backToTop.fadeOut(1000);\n }\n })\n\n $backToTop.click(function () {\n $('body,html').animate({ scrollTop: 0 });\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/backToTop.js","/**\n * mobile Navbar\n */\n\nexport default function () {\n const $mobileNav = $('#mobile-navbar');\n const $mobileNavIcon = $('.mobile-navbar-icon');\n const slideout = new Slideout({\n 'panel': document.getElementById('mobile-panel'),\n 'menu': document.getElementById('mobile-menu'),\n 'padding': 180,\n 'tolerance': 70\n })\n slideout.disableTouch()\n\n $mobileNavIcon.click(function () {\n slideout.toggle()\n })\n\n slideout.on('beforeopen', function () {\n $mobileNav.addClass('fixed-open')\n $mobileNavIcon.addClass('icon-click').removeClass('icon-out')\n })\n\n slideout.on('beforeclose', function () {\n $mobileNav.removeClass('fixed-open')\n $mobileNavIcon.addClass('icon-out').removeClass('icon-click')\n })\n\n $('#mobile-panel').on('touchend', function () {\n slideout.isOpen() && $mobileNavIcon.click()\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/mobileNavbar.js","/**\n * Table of Content fix\n */\n\nfunction initToc() {\n const $toc = $('#post-toc');\n if ($toc.length && $(window).width() >= 1080) {\n $(window).scroll(function () {\n if ($(window).scrollTop() > 100) {\n $toc.fadeIn(1000);\n } else {\n $toc.fadeOut(100);\n }\n });\n }\n}\n\nexport default function () {\n const tocContainer = document.getElementById('post-toc');\n if (tocContainer !== null) {\n const toc = document.getElementById('TableOfContents');\n if (toc === null) {\n // if global config 'toc = true', but there are no headings\n tocContainer.parentNode.removeChild(tocContainer);\n } else {\n initToc();\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/toc.js","/**\n* Anchor for post content header\n**/\n\nvar anchorForId = function (id) {\n var anchor = document.createElement(\"a\");\n anchor.className = \"header-link\";\n anchor.href = \"#\" + id;\n anchor.innerHTML = '<svg viewBox=\"0 0 16 10\" version=\"1.1\" width=\"24\" height=\"24\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg>';\n return anchor;\n};\n\nvar linkifyAnchors = function (level, containingElement) {\n var headers = containingElement.getElementsByTagName(\"h\" + level);\n for (var h = 0; h < headers.length; h++) {\n var header = headers[h];\n header.className = \"post-content-header\";\n\n if (typeof header.id !== \"undefined\" && header.id !== \"\") {\n // insert header-link before the header\n header.appendChild(anchorForId(header.id));\n }\n }\n};\n\n\nexport default function () {\n var contentBlock = document.getElementsByClassName(\"post-content\")[0];\n if (!contentBlock) {\n return;\n }\n\n for (var level = 1; level <= 4; level++) {\n linkifyAnchors(level, contentBlock);\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// ./js/headerAnchor.js","/**\n * footnote tooltip\n */\n\nexport default function () {\n $(\".footnote-ref\").each(function () {\n var id = $(this).children(\"a\").attr(\"href\").substr(1),\n footnote = $(document.getElementById(id)).clone(),\n outer_wrapper = $(\"<span>\", { \"class\": \"fn-content\" }),\n inner_wrapper = $(\"<span>\", { \"class\": \"fn-text\" });\n footnote.find(\".footnote-return\").remove();\n $(this).append(outer_wrapper.append(inner_wrapper.html(footnote.html())));\n });\n\n // fix tooltip position & width\n var position = function () {\n var content = $(\".fn-content\").removeAttr(\"style\");\n if ($(window).width() < 640)\n content.css(\"width\", $(window).width() / 2);\n else\n content.css(\"width\", 340); // default value\n content.each(function () {\n var width = $(this).children(\".fn-text\").outerWidth();\n $(this).css({\n \"width\": width,\n \"margin-left\": width / -2\n });\n });\n }\n position();\n $(window).resize(position());\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/footnoteTooltip.js","/**\n * highlight\n */\n\nexport default function () {\n document.querySelectorAll('.chroma>table')\n .forEach((element) => {\n const sub = element.querySelector('code[data-lang]');\n element.setAttribute('data-lang', mapLang(sub.getAttribute('data-lang')));\n });\n}\n\nfunction mapLang(name) {\n return {\n coffeescript: 'CoffeeScript',\n cpp: 'C++',\n cs: 'C#',\n css: 'CSS',\n html: 'HTML',\n http: 'HTTP',\n js: 'JavaScript',\n json: 'JSON',\n objectivec: 'Objective-C',\n php: 'PHP',\n sql: 'SQL',\n toml: 'TOML',\n ts: 'TypeScript',\n typescript: 'TypeScript',\n xml: 'XML',\n yaml: 'YAML',\n }[name] || name;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/highlight.js"],"sourceRoot":""} \ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/bootstrap 5fe8d82a8e3457d04601","webpack:///./js/main.js","webpack:///./js/backToTop.js","webpack:///./js/mobileNavbar.js","webpack:///./js/toc.js","webpack:///./js/headerAnchor.js","webpack:///./js/footnoteTooltip.js","webpack:///./js/highlight.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","$","document","ready","_backToTop2","default","_mobileNavbar2","_toc2","_headerAnchor2","_footnoteTooltip2","_highlight2","$backToTop","window","scroll","scrollTop","fadeIn","fadeOut","click","animate","$mobileNav","$mobileNavIcon","slideout","Slideout","panel","getElementById","menu","padding","tolerance","disableTouch","toggle","on","addClass","removeClass","isOpen","$toc","tocContainer","parentNode","removeChild","length","width","contentBlock","getElementsByClassName","level","linkifyAnchors","containingElement","id","anchor","headers","getElementsByTagName","h","header","className","appendChild","createElement","href","innerHTML","each","this","children","attr","substr","footnote","clone","outer_wrapper","class","inner_wrapper","find","remove","append","html","position","content","removeAttr","css","outerWidth","margin-left","resize","querySelectorAll","forEach","element","sub","querySelector","setAttribute","coffeescript","cpp","cs","http","js","json","objectivec","php","sql","toml","ts","typescript","xml","yaml","getAttribute"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,c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AAU,GAEzCgC,EAAQE,IAAI,QAAS,KACvBF,EAAQf,KAAK,WACX,IAAIjB,EAAQtC,EAAEwD,MAAMC,SAAS,YAAYgB,aACzCzE,EAAEwD,MAAMgB,KACNlC,MAASA,EACToC,cAAepC,GAAS,OAI9B+B,IACArE,EAAEW,QAAQgE,OAAON,+FC1BJ,WACbpE,SAAS2E,iBAAiB,iBACvBC,QAAQ,SAACC,GACR,IAOW9F,EAPL+F,EAAMD,EAAQE,cAAc,mBACtB,OAARD,GACFD,EAAQG,aAAa,aAOzBC,aAAc,eACdC,IAAK,MACLC,GAAI,KACJZ,IAAK,MACLJ,KAAM,OACNiB,KAAM,OACNC,GAAI,aACJC,KAAM,OACNC,WAAY,cACZC,IAAK,MACLC,IAAK,MACLC,KAAM,OACNC,GAAI,aACJC,WAAY,aACZC,IAAK,MACLC,KAAM,QAjBO/G,EALiC+F,EAAIiB,aAAa,eAuBtDhH","file":"jane.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 5fe8d82a8e3457d04601","import '../css/style.scss';\n\nimport backToTop from './backToTop';\nimport mobileNavbar from './mobileNavbar';\nimport toc from './toc';\nimport headerAnchor from './headerAnchor';\nimport fnTooltip from './footnoteTooltip';\nimport highlight from './highlight';\n\n\n$(document).ready(function () {\n backToTop();\n mobileNavbar();\n toc();\n headerAnchor();\n fnTooltip();\n});\n\nhighlight();\n\n\n\n// WEBPACK FOOTER //\n// ./js/main.js","/**\n * back to top\n */\n\nexport default function () {\n const $backToTop = $('#back-to-top');\n\n $(window).scroll(function () {\n if ($(window).scrollTop() > 100) {\n $backToTop.fadeIn(1000);\n } else {\n $backToTop.fadeOut(1000);\n }\n })\n\n $backToTop.click(function () {\n $('body,html').animate({ scrollTop: 0 });\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/backToTop.js","/**\n * mobile Navbar\n */\n\nexport default function () {\n const $mobileNav = $('#mobile-navbar');\n const $mobileNavIcon = $('.mobile-navbar-icon');\n const slideout = new Slideout({\n 'panel': document.getElementById('mobile-panel'),\n 'menu': document.getElementById('mobile-menu'),\n 'padding': 180,\n 'tolerance': 70\n })\n slideout.disableTouch()\n\n $mobileNavIcon.click(function () {\n slideout.toggle()\n })\n\n slideout.on('beforeopen', function () {\n $mobileNav.addClass('fixed-open')\n $mobileNavIcon.addClass('icon-click').removeClass('icon-out')\n })\n\n slideout.on('beforeclose', function () {\n $mobileNav.removeClass('fixed-open')\n $mobileNavIcon.addClass('icon-out').removeClass('icon-click')\n })\n\n $('#mobile-panel').on('touchend', function () {\n slideout.isOpen() && $mobileNavIcon.click()\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/mobileNavbar.js","/**\n * Table of Content fix\n */\n\nfunction initToc() {\n const $toc = $('#post-toc');\n if ($toc.length && $(window).width() >= 1080) {\n $(window).scroll(function () {\n if ($(window).scrollTop() > 100) {\n $toc.fadeIn(1000);\n } else {\n $toc.fadeOut(100);\n }\n });\n }\n}\n\nexport default function () {\n const tocContainer = document.getElementById('post-toc');\n if (tocContainer !== null) {\n const toc = document.getElementById('TableOfContents');\n if (toc === null) {\n // if global config 'toc = true', but there are no headings\n tocContainer.parentNode.removeChild(tocContainer);\n } else {\n initToc();\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/toc.js","/**\n* Anchor for post content header\n**/\n\nvar anchorForId = function (id) {\n var anchor = document.createElement(\"a\");\n anchor.className = \"header-link\";\n anchor.href = \"#\" + id;\n anchor.innerHTML = '<svg viewBox=\"0 0 16 10\" version=\"1.1\" width=\"24\" height=\"24\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg>';\n return anchor;\n};\n\nvar linkifyAnchors = function (level, containingElement) {\n var headers = containingElement.getElementsByTagName(\"h\" + level);\n for (var h = 0; h < headers.length; h++) {\n var header = headers[h];\n header.className = \"post-content-header\";\n\n if (typeof header.id !== \"undefined\" && header.id !== \"\") {\n // insert header-link before the header\n header.appendChild(anchorForId(header.id));\n }\n }\n};\n\n\nexport default function () {\n var contentBlock = document.getElementsByClassName(\"post-content\")[0];\n if (!contentBlock) {\n return;\n }\n\n for (var level = 1; level <= 4; level++) {\n linkifyAnchors(level, contentBlock);\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// ./js/headerAnchor.js","/**\n * footnote tooltip\n */\n\nexport default function () {\n $(\".footnote-ref\").each(function () {\n var id = $(this).children(\"a\").attr(\"href\").substr(1),\n footnote = $(document.getElementById(id)).clone(),\n outer_wrapper = $(\"<span>\", { \"class\": \"fn-content\" }),\n inner_wrapper = $(\"<span>\", { \"class\": \"fn-text\" });\n footnote.find(\".footnote-return\").remove();\n $(this).append(outer_wrapper.append(inner_wrapper.html(footnote.html())));\n });\n\n // fix tooltip position & width\n var position = function () {\n var content = $(\".fn-content\").removeAttr(\"style\");\n if ($(window).width() < 640)\n content.css(\"width\", $(window).width() / 2);\n else\n content.css(\"width\", 340); // default value\n content.each(function () {\n var width = $(this).children(\".fn-text\").outerWidth();\n $(this).css({\n \"width\": width,\n \"margin-left\": width / -2\n });\n });\n }\n position();\n $(window).resize(position());\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/footnoteTooltip.js","/**\n * highlight\n */\n\nexport default function () {\n document.querySelectorAll('.chroma>table')\n .forEach((element) => {\n const sub = element.querySelector('code[data-lang]');\n if (sub !== null) {\n element.setAttribute('data-lang', mapLang(sub.getAttribute('data-lang')));\n }\n });\n}\n\nfunction mapLang(name) {\n return {\n coffeescript: 'CoffeeScript',\n cpp: 'C++',\n cs: 'C#',\n css: 'CSS',\n html: 'HTML',\n http: 'HTTP',\n js: 'JavaScript',\n json: 'JSON',\n objectivec: 'Objective-C',\n php: 'PHP',\n sql: 'SQL',\n toml: 'TOML',\n ts: 'TypeScript',\n typescript: 'TypeScript',\n xml: 'XML',\n yaml: 'YAML',\n }[name] || name;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./js/highlight.js"],"sourceRoot":""} \ No newline at end of file