-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeteorchat.html
More file actions
35 lines (31 loc) · 812 Bytes
/
meteorchat.html
File metadata and controls
35 lines (31 loc) · 812 Bytes
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
<head>
<title>meteorchat</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/assets/css/bootstrap-responsive.min.css" rel="stylesheet">
</head>
<body>
{{loginButtons align="right"}}
<div class="container">
<h3>messages</h3>
{{#if currentUser}}
<div class="messages-container">
{{> messages}}
</div>
<div class="input-container">
{{> input}}
</div>
{{/if}}
</div>
</body>
<template name="input">
<input type="text" id="message" placeholder="say something..." />
<input type="button" class="btn success send" value="send">
</template>
<template name="messages">
<h1>{{greeting}}</h1>
{{#each messages}}
<p style="background-color: {{color}}" class="message">
<strong>{{name}}</strong> - {{message}}
</p>
{{/each}}
</template>