-
Notifications
You must be signed in to change notification settings - Fork 0
/
nimbb.html
172 lines (129 loc) · 4.12 KB
/
nimbb.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<head>
<title>VistaPals</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="dankan" >
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#">VistaPals</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<!-- here comes the important part -->
{{>user_summary}}
</ul>
</div>
</div>
</div>
</div>
<div class="modal hide wide-modal" id="myModal">
{{>player}}
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
{{> topics}}
</div><!--/span-->
<div class="span9">
{{> video_list}}
</div><!--/span-->
</div><!--/row-->
<hr>
<footer>
</footer>
</div><!--/.fluid-container-->
</body>
<template name="user_summary">
{{#if loggedin}}
<a class="btn">
<i class="icon-user"></i>{{user_name}}
</a>
{{else}}
<li class="dropdown" id="login-menu">
<a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
Login
<b class="caret"></b>
</a>
<div class="dropdown-menu">
<form style="margin: 0px" accept-charset="UTF-8" action="javascript:void(0);">
<fieldset class='textbox' style="padding:10px">
<input id="name" style="margin-top: 8px" type="text" placeholder="Username" />
<input style="margin-top: 8px" type="password" placeholder="Passsword" />
<input id="login" class="login btn-primary" name="commit" type="submit" value="Log In" />
</fieldset>
</form>
</div>
</li>
{{/if}}
</template>
<template name="topics">
{{#if show}}
<div id="topics" class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Topics</li>
{{#each topics}}
<li class="topic {{selected}}"><a href="javascript:void(0);">{{name}}</a></li>
{{/each}}
</ul>
</div>
<div id="createTopic">
<input type="text" id="new-topic" placeholder="New topic" />
</div>
{{/if}}
</template>
<template name="video_list">
{{#if show}}
<div class="well">
<div id="items-view" class = "row-fluid">
<ul id="video_list" class="nav nav-list span10">
{{#each videos}}
{{> video}}
{{/each}}
</ul>
</div>
<div class="row-fluid">
<p><input type="button" class="record btn btn-primary btn-danger btn-larg" value="Record" /></p>
</div>
</div>
{{/if}}
</template>
<template name="video">
<li class="video well message">
{{datetime}} {{user_name}} <button class="btn btn-primary video_play_button">Play</button>
</li>
</template>
<template name="player">
{{#if show}}
<div class="modal-header">
<button type="button" class="close close_player" data-dismiss="modal">×</button>
<h3>Video Player</h3>
</div>
<div class="modal-body wide-modal-body">
<div class="row-fluid">
<div class="span8">
<object id="nimbb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480" codebase= "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="http://player.nimbb.com/nimbb.swf?mode=record&nologo=1&simplepage=1&key=2ede7186b4&lang=en" />
<param name="allowScriptAccess" value="always" />
<embed name="nimbb" src="http://player.nimbb.com/nimbb.swf?mode=record&nologo=1&simplepage=1&key=2ede7186b4&lang=en" width="640" height="480" allowScriptAccess="always" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash">
</embed>
</object>
</div>
<div class="span4">
<ul id="question_list">
{{#each questions}}
{{> question}}
{{/each}}
</ul>
</div>
</div>
</div>
</div>
{{/if}}
</template>
<template name="question">
<li class="question">
{{this}}
</li>
</template>