commento/frontend/js/dashboard-installation.js
Frieder Griesshammer 07cfcc9c17 dashboard.js: add defer to the script tag in installation guide on page
This matches the instructions with the documentation

[amended by @adtac]: Special thanks to @jeffreywyman for their work!
2020-03-19 06:45:42 -04:00

24 lines
531 B
JavaScript

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