MCPcopy
hub / github.com/dirk1983/deepseek / draw

Function draw

js/chat.js:184–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 });
183
184 function draw() {
185 $.get("getpicture.php", function (data) {
186 layer.close(loading);
187 layer.msg("处理成功!");
188 answer = randomString(16);
189 $("#article-wrapper").append('<li class="article-title" id="q' + answer + '"><pre></pre></li>');
190 for (var j = 0; j < prompt.length; j++) {
191 $("#q" + answer).children('pre').text($("#q" + answer).children('pre').text() + prompt[j]);
192 }
193 $("#article-wrapper").append('<li class="article-content" id="' + answer + '"><img onload="document.getElementById(\'article-wrapper\').scrollTop=100000;" src="pictureproxy.php?url=' + encodeURIComponent(data.data[0].url) + '"></li>');
194 $("#kw-target").val("");
195 $("#kw-target").attr("disabled", false);
196 autoresize();
197 $("#ai-btn").html('<i class="iconfont icon-wuguan"></i>发送');
198 if (!isMobile()) $("#kw-target").focus();
199 }, "json");
200 }
201 function streaming() {
202 var es = new EventSource("stream.php");
203 var isstarted = true;

Callers 1

send_postFunction · 0.85

Calls 4

randomStringFunction · 0.85
autoresizeFunction · 0.85
isMobileFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…