This repository has been archived by the owner. It is now read-only.
Permalink
Find file Copy path
2cfe0f7 Mar 11, 2014
0 contributors

Users who have contributed to this file

37 lines (37 sloc) 1.36 KB
<!DOCTYPE html>
<html>
<head>
<title>Elfet's Chat</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="<?= $basePath ?>/css/chat.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="<?= $basePath ?>/js/handlebars.js"></script>
<script src="<?= $basePath ?>/js/client.js"></script>
</head>
<body>
<div class="container">
<script id="message" type="text/x-handlebars-template">
<div class="message {{#if my}}my{{/if}}">
<a class="user" href="{{user.profile_url}}" target="_blank"><img src="{{user.pic_square}}" title="{{user.name}}"></a>
{{#if image}}
<div class="text img"
style="background-image: url('{{text}}');"
onclick="window.open('{{text}}');"></div>
{{else}}
<div class="text">{{text}}</div>
{{/if}}
</div>
</script>
</div>
<div class="control">
<form>
<input type="text" name="text" id="text" placeholder="Type message and press Enter" tabindex="1">
</form>
</div>
<script>
var me = <?=json_encode($app['user'])?>;
connect('<?=$app['server.host']?>', '<?=$app['server.port']?>');
</script>
</body>
</html>