mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
frontend: check in html, css, js
This commit is contained in:
22
frontend/js/dashboard-installation.js
Normal file
22
frontend/js/dashboard-installation.js
Normal file
@ -0,0 +1,22 @@
|
||||
(function (global, document) {
|
||||
|
||||
// Opens the installation view.
|
||||
global.installationOpen = function() {
|
||||
var data = global.dashboard.$data;
|
||||
|
||||
var html = '' +
|
||||
'<div id="commento"></div>\n' +
|
||||
'<script src="' + window.cdn + '/js/commento.js"><\/script>\n' +
|
||||
'';
|
||||
|
||||
$("#code-div").text(html);
|
||||
|
||||
$('pre code').each(function(i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
|
||||
$(".view").hide();
|
||||
$("#installation-view").show();
|
||||
};
|
||||
|
||||
} (window, document));
|
Reference in New Issue
Block a user