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