Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (48 sloc) 1.382 kb
<head>
<title>SimpleChat</title>
<meta property="og:title" content="SimpleChat"/>
<meta property="og:url" content="https://sc.meteor.com"/>
<meta property="og:description" content="Simple chat application written in meteor."/>
<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="main">
<h1 id="title">SimpleChat</h1>
{{> register}}
{{> chat}}
</div>
</body>
<template name="register">
{{#unless signed_in}}
<div id="register_window">
<form id="register_form">
<div id="warning"></div>
<label>Username: </label>
<input type="text" id="register" placeholder="Enter Username" autocomplete="off" />
</form>
</div>
{{/unless}}
</template>
<template name="chat">
{{#if signed_in}}
<div id="chat_window">
<div id="users">
{{#each users}}
{{name}}<br />
{{/each}}
</div>
<div id="chat">
{{#each messages}}
<div>
<span class="sidebar"><span class="time">{{formatted_date date}}</span><span class="user">&lt;{{user}}&gt;</span></span>
<span class="msg">{{text}}</span>
<div class='clearfix' />
</div>
{{/each}}
</div>
</div>
<form id="input_form">
<input type="text" id="input" placeholder="Enter Message" autocomplete="off" />
</form>
{{/if}}
</template>
Jump to Line
Something went wrong with that request. Please try again.