mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
r
This commit is contained in:
parent
2120bfae07
commit
e9f5ba937e
2 changed files with 1072 additions and 1 deletions
1069
searx/webapp.py
1069
searx/webapp.py
File diff suppressed because one or more lines are too long
|
@ -1365,6 +1365,7 @@ function modal_open(url, num)
|
||||||
if (done) return;
|
if (done) return;
|
||||||
const text = new TextDecoder('utf-8').decode(value);
|
const text = new TextDecoder('utf-8').decode(value);
|
||||||
text.trim().split('\n').forEach(function(v) {
|
text.trim().split('\n').forEach(function(v) {
|
||||||
|
try{document.querySelector("#chat_talk").scrollTop = document.querySelector("#chat_talk").scrollHeight}catch(e){}
|
||||||
result = ''
|
result = ''
|
||||||
if(v.length>6) result = v.slice(6);
|
if(v.length>6) result = v.slice(6);
|
||||||
if(result == "[DONE]")
|
if(result == "[DONE]")
|
||||||
|
@ -1698,6 +1699,7 @@ prev_chat = prev_chat+'<div class="chat_question">'+document.querySelector("#pro
|
||||||
if (done) return;
|
if (done) return;
|
||||||
const text = new TextDecoder('utf-8').decode(value);
|
const text = new TextDecoder('utf-8').decode(value);
|
||||||
text.trim().split('\n').forEach(function(v) {
|
text.trim().split('\n').forEach(function(v) {
|
||||||
|
try{document.querySelector("#chat_talk").scrollTop = document.querySelector("#chat_talk").scrollHeight}catch(e){}
|
||||||
result = ''
|
result = ''
|
||||||
if(v.length>6) result = v.slice(6);
|
if(v.length>6) result = v.slice(6);
|
||||||
if(result == "[DONE]")
|
if(result == "[DONE]")
|
||||||
|
@ -1834,6 +1836,7 @@ prev_chat = prev_chat+'<div class="chat_question">'+document.querySelector("#pro
|
||||||
if (done) return;
|
if (done) return;
|
||||||
const text = new TextDecoder('utf-8').decode(value);
|
const text = new TextDecoder('utf-8').decode(value);
|
||||||
text.trim().split('\n').forEach(function(v) {
|
text.trim().split('\n').forEach(function(v) {
|
||||||
|
try{document.querySelector("#chat_talk").scrollTop = document.querySelector("#chat_talk").scrollHeight}catch(e){}
|
||||||
result = ''
|
result = ''
|
||||||
if(v.length>6) result = v.slice(6);
|
if(v.length>6) result = v.slice(6);
|
||||||
if(result == "[DONE]")
|
if(result == "[DONE]")
|
||||||
|
@ -1924,6 +1927,7 @@ prev_chat = prev_chat+'<div class="chat_question">'+document.querySelector("#pro
|
||||||
if (done) return;
|
if (done) return;
|
||||||
const text = new TextDecoder('utf-8').decode(value);
|
const text = new TextDecoder('utf-8').decode(value);
|
||||||
text.trim().split('\n').forEach(function(v) {
|
text.trim().split('\n').forEach(function(v) {
|
||||||
|
try{document.querySelector("#chat_talk").scrollTop = document.querySelector("#chat_talk").scrollHeight}catch(e){}
|
||||||
result = ''
|
result = ''
|
||||||
if(v.length>6) result = v.slice(6);
|
if(v.length>6) result = v.slice(6);
|
||||||
if(result == "[DONE]")
|
if(result == "[DONE]")
|
||||||
|
|
Loading…
Add table
Reference in a new issue