-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
50 lines (46 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>借愁哥哥聊天机器人</title>
<link rel="stylesheet" href="./css/index.css">
<script src="./js/jquery-3.5.1.min.js"></script>
<script src="./js/index.js"></script>
<link rel="stylesheet" href="./css/optiscroll.css">
<!-- js版本 -->
<script src="./js/optiscroll.js"></script>
<!-- 或者作为jQuery插件 -->
<script src="./js/jquery.optiscroll.js"></script>
</head>
<body>
<div class="action">
<h3>借愁哥哥</h3>
<!-- 中间聊天部分 -->
<div class="top optiscroll" id="scroll">
<ul class="menu">
<li class="top_left">
<img src="./img/you.jpg" class="left">
<span class="message">借愁哥哥下发的小可爱</span>
</li>
</ul>
<div class="drag_bar" style="display: none;">
<div class="drager ui-draggable ui-draggable-handle" style="display: none; height: 412.628px;"></div>
</div>
</div>
<div class="bottom">
<input type="text" id="text1" placeholder="想要说点什么呢?">
<button class="btn">发送</button>
</div>
</div>
<script>
$(function() {
// 纯js
// var element = document.querySelector('#scroll')
// var myOptiscrollInstance = new Optiscroll(element);
// jQuery插件
$('#scroll').optiscroll()
})
</script>
</body>
</html>