07cfcc9c17
This matches the instructions with the documentation [amended by @adtac]: Special thanks to @jeffreywyman for their work!
24 lines
531 B
JavaScript
24 lines
531 B
JavaScript
(function (global, document) {
|
|
"use strict";
|
|
|
|
(document);
|
|
|
|
// Opens the installation view.
|
|
global.installationOpen = function() {
|
|
var html = "" +
|
|
"<script defer src=\"" + global.cdn + "/js/commento.js\"><\/script>\n" +
|
|
"<div id=\"commento\"></div>\n" +
|
|
"";
|
|
|
|
$("#code-div").text(html);
|
|
|
|
$("pre code").each(function(i, block) {
|
|
hljs.highlightBlock(block);
|
|
});
|
|
|
|
$(".view").hide();
|
|
$("#installation-view").show();
|
|
};
|
|
|
|
} (window.commento, document));
|