2018-06-04 00:06:17 +08:00
|
|
|
(function (global, document) {
|
2018-06-24 10:01:21 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
(document);
|
2018-06-04 00:06:17 +08:00
|
|
|
|
|
|
|
// Opens the installation view.
|
|
|
|
global.installationOpen = function() {
|
2018-06-24 10:01:21 +08:00
|
|
|
var html = "" +
|
2019-04-07 17:44:59 +08:00
|
|
|
"<script defer src=\"" + global.cdn + "/js/commento.js\"><\/script>\n" +
|
2018-06-24 10:01:21 +08:00
|
|
|
"<div id=\"commento\"></div>\n" +
|
|
|
|
"";
|
2018-06-04 00:06:17 +08:00
|
|
|
|
|
|
|
$("#code-div").text(html);
|
|
|
|
|
2018-06-24 10:01:21 +08:00
|
|
|
$("pre code").each(function(i, block) {
|
2018-06-04 00:06:17 +08:00
|
|
|
hljs.highlightBlock(block);
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".view").hide();
|
|
|
|
$("#installation-view").show();
|
|
|
|
};
|
|
|
|
|
2018-12-20 13:48:43 +08:00
|
|
|
} (window.commento, document));
|