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 ){ if( array[i].input.indexOf(value) > -1 ){
flag = true; flag = true;
answer = '<div class="rotWord"><span></span><p id="member">'+array[i].output+'</p></div>'; answer = '<div class="rotWord"><span></span><p id="member">'+array[i].output+'</p></div>';
continue;
}
}
if(flag){
setTimeout(function(){ setTimeout(function(){
$(".b_body").append(answer); $(".b_body").append(answer);
$(".b_body").scrollTop(10000000); $(".b_body").scrollTop(10000000);
text.val('');
},500); },500);
}else{ return;
ajax(args);
} }
}
ajax(args);
$(".b_body").scrollTop(10000000); $(".b_body").scrollTop(10000000);
text.val(''); 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/jquery.easy_slides.js"></script>
<script type="text/javascript" src="./js/demo.js"></script> <script type="text/javascript" src="./js/demo.js"></script>
<script> <script>
$(document).ready(function () { $(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 graphContainer = document.getElementById('mainGraph');
var myChartGraph = echarts.init(graphContainer); var myChartGraph = echarts.init(graphContainer);
@ -476,8 +487,9 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
// window.init = init;
$(document).ready(function () { $(document).ready(function () {
$('.slider_one_big_picture').EasySlides({ $('.slider_one_big_picture').EasySlides({
'autoplay': true, 'autoplay': true,
'stepbystep': false, 'stepbystep': false,