-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
136 lines (116 loc) · 4.36 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<META http-equiv="X-UA-Compatible" content="IE=9">
<title>Cheat-Chat-Bot</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- adding users -->
<div class="ui">
<div class="left-menu">
<form action="#" class="search">
<input placeholder="search..." type="search" name="" id="searchSupport">
<input type="submit" value="">
</form>
<menu class="list-friends" id="flfs">
<li class="Linux">
<img width="50" height="50" src="img/linux.jpg">
<div class="info">
<div class="user">Linux</div>
<div class="status on"> online</div>
</div>
</li>
<li class="Python">
<img width="50" height="50" src="img/python.jpg">
<div class="info">
<div class="user">Python</div>
<div class="status on"> online</div>
</div>
</li>
</menu>
</div>
<div class="chat">
<div class="top">
<div class="Linux Avatar">
<div class="avatar">
<img width="50" height="50" src="img/linux.jpg">
</div>
<div class="info">
<div class="name">Linux</div>
<div class="count">Helsinki, Linus Torvalds</div>
</div>
<i class="fa fa-star"></i>
</div>
<div class="Python Avatar">
<div class="avatar">
<img width="50" height="50" src="img/python.jpg">
</div>
<div class="info">
<div class="name">Python</div>
<div class="count">Guido van Rossum</div>
</div>
<i class="fa fa-star"></i>
</div>
</div>
<ul class="messages linux">
<li class="friend-with-a-SVAGina">
<div class="head">
<span class="time">10:13 AM, Today</span>
<span class="name">User</span>
</div>
<div class="message">Hello, Need help with Linux Terminal Commands!?</div>
</li>
</ul>
<ul class="messages python">
<li class="friend-with-a-SVAGina">
<div class="head">
<span class="time">10:13 AM, Today</span>
<span class="name">User</span>
</div>
<div class="message">Hello, Need help with Python Terminal Commands!?</div>
</li>
</ul>
<div class="write-form">
<textarea placeholder="Type your message" name="e" id="texxt" rows="2"></textarea>
<i class="fa fa-picture-o"></i>
<i class="fa fa-file-o"></i>
<span class="send">Send</span>
</div>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/nicescroll/3.5.4/jquery.nicescroll.js'></script>
<script src="js/index.js"></script>
<script src="js/jayant.js"></script>
<script type="text/javascript">
// //This code covers the on click event
// var ul = document.getElementById("flfs"); // Parent
// ul.addEventListener('click', function(e) {
// console.log(e.target.textContent);
// if (e.target.textContent == "Python"){
// var ConversationArraytestlinux = document.getElementsByClassName('testlinux');
// ConversationArraytestlinux[0].style.display = 'none';
// var ConversationArraytestpython = document.getElementsByClassName('testpython');
// ConversationArraytestpython[0].style.display = 'block';
// var ConversationArrayPython = document.getElementsByClassName('python');
// ConversationArrayPython[0].style.display = 'block';
// var ConversationArrayLinux = document.getElementsByClassName('linux');
// ConversationArrayLinux[0].style.display = 'none';
// }else if (e.target.textContent == "Linux") {
// var ConversationArraytestpython = document.getElementsByClassName('testpython');
// ConversationArraytestpython[0].style.display = 'none';
// var ConversationArraytestlinux = document.getElementsByClassName('testlinux');
// ConversationArraytestlinux[0].style.display = 'block';
// var ConversationArrayPython = document.getElementsByClassName('python');
// ConversationArrayPython[0].style.display = 'none';
// var ConversationArrayLinux = document.getElementsByClassName('linux');
// ConversationArrayLinux[0].style.display = 'block';
// }
// });
</script>
</body>
</html>