frontend: add option to not use Source Sans Pro

Closes https://gitlab.com/commento/commento/issues/136
This commit is contained in:
Adhityaa Chandrasekar
2019-05-01 18:10:07 -04:00
parent 409af7f205
commit 5b6d31ce31
3 changed files with 15 additions and 3 deletions

View File

@@ -64,6 +64,7 @@
var cdn = "[[[.CdnPrefix]]]";
var root = null;
var cssOverride;
var noFonts;
var autoInit;
var isAuthenticated = false;
var comments = [];
@@ -1769,6 +1770,8 @@
if (ID_ROOT === undefined) {
ID_ROOT = "commento";
}
noFonts = attrGet(scripts[i], "data-no-fonts");
}
}
}
@@ -1813,13 +1816,16 @@
var footer = footerLoad();
cssLoad(cdn + "/css/commento.css", "window.commento.loadCssOverride()");
if (noFonts !== "true") {
classAdd(root, "root-font");
}
selfGet(function() {
commentsGet(function() {
modToolsCreate();
rootCreate(function() {
commentsRender();
append(root, footer);
attrSet(root, "style", "");
nameWidthFix();
loadHash();
global.allShow();