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 = "" +
|
|
|
|
"<div id=\"commento\"></div>\n" +
|
|
|
|
"<script src=\"" + window.commentoCdn + "/js/commento.js\"><\/script>\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));
|