-
Notifications
You must be signed in to change notification settings - Fork 6
/
primabylon.html
73 lines (65 loc) · 1.87 KB
/
primabylon.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
<head>
<title>primabylon</title>
</head>
<body>
{{> github}}
{{> hello}}
</body>
<template name="github">
<a href="https://github.com/deemkeen/primabylon"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
</template>
<template name="hello">
<div class="container">
<div class="fluid-row">
<legend>GoogleTranslate Your Thoughts for Everyone!</legend>
{{#unless chatUser}} {{> setuser}} {{/unless}}
{{#if chatUser}} {{> chat}} {{/if}}
</div>
</div>
</template>
<template name="setuser">
<div class="input-append">
<div class="span3">
<label>Username:</label>
<input type="text" name="username">
</div>
<div class="span3">
<label>Language:</label>
<select id="userlang">
<option value="zh-CN">Chinese</option>
<option value="da">Danish</option>
<option selected value="en">English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="pt">Portuguese</option>
</select>
<a class="btn btn-primary" id="btn-sess">Let's Talk!</a>
</div>
</div>
</template>
<template name="chat">
<div class="fluid-row">
<div class="span6" id="chatbox">
{{> line}}
</div>
</div>
<div class="fluid-row">
<div class="span6">
<label><b>Your Message </b>[{{userLang}}]:</label>
<input type="text" class="input-xlarge" id="mymessage">
</div>
</div>
</template>
<template name="line">
<div id="outer">
<div id="textlines">
{{#each MessageList}}
<pre>[{{time}}] {{user}}: {{text}} <span class="badge badge-info">{{origin}}</span></pre>
{{/each}}
</div>
</div>
</template>