|
@@ -3,5 +3,15 @@
|
|
var codes = document.getElementsByTagName('code');
|
|
var codes = document.getElementsByTagName('code');
|
|
if (codes.length > 0) {
|
|
if (codes.length > 0) {
|
|
console.log("We have code!");
|
|
console.log("We have code!");
|
|
|
|
+ var css = document.createElement("link");
|
|
|
|
+ css.setAttribute("rel", "stylesheet");
|
|
|
|
+ css.setAttribute("type", "text/css");
|
|
|
|
+ css.setAttribute("href", "https://d2xxklvztqk0jd.cloudfront.net/css/sunburst.js");
|
|
|
|
+ document.getElementsByTagName("head")[0].appendChild(css);
|
|
|
|
+ var js = document.createElement('script'); s.type = 'text/javascript';
|
|
|
|
+ js.setAttribute("async", true);
|
|
|
|
+ js.onload = function() { hljs.initHighlight(); };
|
|
|
|
+ js.setAttribute("src", "https://d2xxklvztqk0jd.cloudfront.net/js/highlight.js");
|
|
|
|
+ document.getElementsByTagName('script')[0].parentNode.insertBefore(js, t);
|
|
}
|
|
}
|
|
})(window);
|
|
})(window);
|