()
| 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; |
no test coverage detected
searching dependent graphs…