fix: duplicate _a function removed, markdown rendering restored
This commit is contained in:
4
app.py
4
app.py
@ -275,10 +275,6 @@ function _md(s){
|
|||||||
s=s.replace(/\n/g,'<br>');
|
s=s.replace(/\n/g,'<br>');
|
||||||
return '<p>'+s+'</p>';
|
return '<p>'+s+'</p>';
|
||||||
}
|
}
|
||||||
function _a(r,t){var d=document.createElement("div");d.className="msg "+r;
|
|
||||||
var b=document.createElement("div");b.className="bb";b.textContent=t;
|
|
||||||
d.appendChild(b);document.getElementById("cht").appendChild(d);
|
|
||||||
document.getElementById("cht").scrollTop=document.getElementById("cht").scrollHeight;}
|
|
||||||
function _e(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");}
|
function _e(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");}
|
||||||
function _lc(){var x=new XMLHttpRequest();x.open("GET","/convs",true);
|
function _lc(){var x=new XMLHttpRequest();x.open("GET","/convs",true);
|
||||||
x.onload=function(){if(x.status!=200)return;var d=JSON.parse(x.responseText),h="";
|
x.onload=function(){if(x.status!=200)return;var d=JSON.parse(x.responseText),h="";
|
||||||
|
|||||||
Reference in New Issue
Block a user