Added new default text and default link thumbnails, color fixes for some buttons

This commit is contained in:
Michael House 2022-06-03 06:36:03 -05:00
parent 2e1c102438
commit 058e50add7
14 changed files with 162 additions and 104 deletions

View file

@ -189,12 +189,15 @@ setTimeout(() => markdown('post-text','preview'), 200);
function markdown(first, second) {
var input = document.getElementById(first).value;
var dest = document.getElementById(second);
for (var i = 0; i < dest.children.length; i++) {
dest.removeChild(dest.children[i]);
if(input && dest){
for (var i = 0; i < dest.children.length; i++) {
dest.removeChild(dest.children[i]);
}
document
.getElementById(second)
.appendChild(safeMarkdown(input));
}
document.getElementById(second).appendChild(safeMarkdown(input));
}
function charLimit(form, text) {