This commit is contained in:
jingquan huang 2019-12-19 22:22:04 +08:00
commit a4ac4db373
2 changed files with 20 additions and 10 deletions

View File

@ -140,17 +140,15 @@
if( array[i].input.indexOf(value) > -1 ){
flag = true;
answer = '<div class="rotWord"><span></span><p id="member">'+array[i].output+'</p></div>';
continue;
}
}
if(flag){
setTimeout(function(){
$(".b_body").append(answer);
$(".b_body").scrollTop(10000000);
text.val('');
},500);
}else{
ajax(args);
return;
}
}
ajax(args);
$(".b_body").scrollTop(10000000);
text.val('');
}

View File

@ -127,7 +127,18 @@
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
<script type="text/javascript" src="./js/demo.js"></script>
<script>
$(document).ready(function () {
//回车
$(document).keydown(function(event)
{
if(event.keyCode==13 && $(".search-input-item.prov").is(":focus"))
{
var name = $(".search-input-item.prov").val();
$(".fixed-left").addClass("collpased").css({left:"0px"});
init(name);
}
});
var graphContainer = document.getElementById('mainGraph');
var myChartGraph = echarts.init(graphContainer);
@ -476,8 +487,9 @@
</script>
<script type="text/javascript">
// window.init = init;
$(document).ready(function () {
$('.slider_one_big_picture').EasySlides({
'autoplay': true,
'stepbystep': false,