-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (130 loc) · 6.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>尚恩智能机器人</title>
<link rel="stylesheet" href="css/index.css">
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
</head>
<body style="overflow: hidden" onkeydown="onKeyDown(document.getElementById('search').value)" >
<div id="container">
<div class="header">
<div class="logo logo-text">智能机器人</div>
</div>
<div class="main">
<!--lside-->
<div class="lside">
<div class="chat-box" >
<div class="jspScrollable" style="overflow: auto" tabindex="0">
<div class="jspContainer">
<div class="jspPane" id="jspPane" style="width: 100%;">
<div class="rctCtn chtCtn lft" >
<div class="chtMsg chtMsg-greeting">
<div id="talk">
<div class="robot" style="margin-top: 20px;">
<div class="chat">
<div class="robot-icon" style="width:46px;height: 46px;"></div>
<div class="robot-response">
<div class="robot-chat">
主人你好,有什么需要吗?
</div>
</div>
<span class="robot-talk-cor"></span>
</div>
</div>
<!--<div class="me">-->
<!--<div class="i-talk">-->
<!--<div class="me-chat">我</div>-->
<!--<div class="content">测试一下</div>-->
<!--<span class="i-talk-cor"></span>-->
<!--</div>-->
<!--</div>-->
</div>
</div>
<div>
<a id="msg_end" name="1" href="#1"> </a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="hot-number">
热门问题:
<div id="ecs" class="hot-item">ecs</div>
<div id="yuming" class="hot-item">域名</div>
<div id="beian" class="hot-item">备案</div>
<div id="youxiang" class="hot-item">邮箱</div>
<div class="btn" id="btn1">
<a href="javascript:">隐藏反馈功能</a>
<a href="javascript:">清空记录</a>
</div>
</div>
<!--<div class="send-box">-->
<!--<div class="input-box" autocomplate="off" >-->
<!--<input type="text" id="input" class="input ui-autocomplate-input" placeholder="主人,您还想问些什么?" autocomplete="off" autofocus>-->
<!--</div>-->
<!--<div id="send-btn" class="send-btn">-->
<!--<span onclick="sendMessage(document.getElementById('input').value)">发送</span>-->
<!--</div>-->
<!--</div>-->
<div class="ask-area">
<div class="input-area">
<ul class="input-tip">
<textarea id="search" autocomplete="off" disableautocomplete placeholder="主人,您有什么想问的吗?" autofocus></textarea>
</ul>
</div>
<button class="send-btn" onclick="sendMessage(document.getElementById('search').value)">
发送
</button>
</div>
</div>
<!--lside-->
<div class="rigt-side">
<div class="question">
<div class="title">常见问题</div>
<ul class="list">
<li><a href="#"><span>1</span>天涯论坛是什么</a></li>
<li><a href="#"><span>2</span>天涯论坛是什么</a></li>
<li><a href="#"><span>3</span>天涯论坛是什么</a></li>
<li><a href="#"><span>4</span>天涯论坛是什么</a></li>
<li><a href="#"><span>5</span>天涯论坛是什么</a></li>
<li><a href="#"><span>6</span>天涯论坛是什么</a></li>
</ul>
</div>
<div class="question">
<div class="title">智能推荐</div>
<ul class="list">
<li><a href="#"><span>1</span>天涯论坛是什么</a></li>
<li><a href="#"><span>2</span>天涯论坛是什么</a></li>
<li><a href="#"><span>3</span>天涯论坛是什么</a></li>
<li><a href="#"><span>4</span>天涯论坛是什么</a></li>
<li><a href="#"><span>5</span>天涯论坛是什么</a></li>
<li><a href="#"><span>6</span>天涯论坛是什么</a></li>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/index.js"></script>
<script>
$(function(){
$('#btn1').find('a').eq(0).attr('onOff','1');
$('#btn1').find('a').eq(0).click(function(){
if($(this).attr('onOff')==1){
$(this).html("显示反馈功能");
$('.judge').css('display','none');
$(this).attr('onOff','2');
}else{
$(this).html("隐藏反馈功能");
$('.judge').css('display','block');
$(this).attr('onOff','1');
}
});
$('#btn1').find('a').eq(1).click(function(){
$('#talk').html('<div class="robot" style="margin-top: 20px;"><div class="chat"><div class="robot-icon" style="width:46px;height: 46px;"></div><div class="robot-response"><div class="robot-chat">主人你好,有什么需要吗?</div></div><span class="robot-talk-cor"></span></div></div>');
});
})
</script>
</body>
</html>