commento/frontend/js/dashboard-installation.js

24 lines
531 B
JavaScript
Raw Permalink Normal View History

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