forked from uditalias/chat-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
138 lines (121 loc) · 5.29 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
<!DOCTYPE html>
<html>
<head>
<title>Multi-Room Chat Application — made by Udi Talias</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css' />
<link href="/styles/animate.css" rel="stylesheet" type="text/css" />
<link href="/styles/style.css" rel="stylesheet" type="text/css" />
<link href="/styles/avgrund.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="avgrund-contents">
<header>
<h1>Multi-Room Chat Application <sup>{info}</sup></h1>
<h3>with node.js and socket.io — made by <a href="http://udidu.blogspot.com" target="_blank">Udi Talias</a></h3>
<a href="https://uditalias.github.com/chat-nodejs/"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
</header>
<div class="pr center wrapper">
<div class="cf pr chat animate">
<div class="pa chat-shadow">
<div class="content animate bounceInDown">Click <div class="big-button-green start">Start</div> to begin...</div>
</div>
<div class="cf chat-top">
<div class="fl chat-left">
<div class="chat-messages">
<ul></ul>
</div>
</div>
<div class="fl chat-right">
<div class="chat-clients">
<div class="cf title">
<div class="fl">Users</div>
</div>
<ul></ul>
</div>
<div class="chat-rooms">
<div class="cf title">
<div class="fl">Rooms</div>
<div class="fr title-button">+</div>
</div>
<ul class="pr"></ul>
</div>
</div>
</div>
<div class="cf chat-bottom">
<div class="fl chat-input">
<input type="text" placeholder="compose message..." />
</div>
<div class="fl chat-submit">
<button>Send →</button>
</div>
</div>
</div>
<div class="pa info animate">
<h2>About this Project</h2>
<div class="image">
<img alt="" src="http://0.gravatar.com/avatar/838347acc4c97bfc938a2dac4043bd2a" />
</div>
<div class="text">
This project created by Udi Talias</br>
as part of a Node.js & Socket.io tutorial.<br />
You can read the full tutorial <a href="http://udidu.blogspot.com/2012/11/chat-evolution-nodejs-and-socketio.html">here</a>.
<br/><br />
<img alt="github" class="git-icon" src="/images/github.png" /><br/><br/>
Get the code for this project from <a href="https://uditalias.github.com/chat-nodejs" target="_blank">github</a>
</div>
</div>
</div>
</div>
<aside id="nickname-popup" class="popup animate avgrund-popup">
<div class="title">Enter a nickname</div>
<div class="content">Please select a nickname, up to 15 characters</div>
<div class="input"><input type="text" maxlength="15" placeholder="nickname..." /></div>
<div class="big-button-green small begin">— Begin —</div>
</aside>
<aside id="addroom-popup" class="popup animate avgrund-popup">
<div class="title">Enter a room name</div>
<div class="content">Room name up to 10 characters</div>
<div class="input"><input type="text" maxlength="10" placeholder="room name..." /></div>
<div class="big-button-green small create">Create →</div>
</aside>
<div class="avgrund-cover"></div>
<footer>
<div class="share">
<a href="https://twitter.com/share" class="twitter-share-button" data-size="large">Tweet</a>
<div class="g-plusone" data-href="http://chatjs.io:8080/"></div>
</div>
</footer>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="/scripts/avgrund.js"></script>
<script type="text/javascript" src="/scripts/chat.io.js"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script type="text/javascript">
$('h1 sup').on('click', function () {
if($('.chat').hasClass('bounceOutRight')){
$('.chat').removeClass('bounceOutRight');
$('.chat').addClass('bounceInLeft');
$('.info').removeClass('bounceInLeft');
$('.info').addClass('bounceOutRight');
window.setTimeout(function(){
$('.chat').removeClass('bounceInLeft');
}, 1500);
} else {
$('.chat').removeClass('bounceInLeft');
$('.chat').addClass('bounceOutRight');
$('.info').removeClass('bounceOutRight');
$('.info').addClass('bounceInLeft');
}
});
</script>
</body>
</html>