-
Notifications
You must be signed in to change notification settings - Fork 0
/
story.html
274 lines (244 loc) · 6.79 KB
/
story.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<head>
<title>story</title>
<script type="text/javascript" src="include/scrollTo.js"> </script>
</head>
<body>
<div id="question">
<div id="questionbox">
Start Topic
<hr/>
<input type="text" name="question" placeholder="enter ur ques"> <br/>
<input type="button" value="cancel"> <input id="start" type="button" value="Start Topic">
</div>
</div>
<div id="login">
username : <input type="text" id="username"> </br>
password : <input type="password" id="password"> </br>
<input type="button" id="loginbutton" value="Login">
<input type="button" value="Cancel" onClick="{$('#login').hide()}">
<input type="button" value="Sign Up" onClick="{$('#login').hide(); $('#signup').show()}">
</div>
<div id="signup">
username : <input type="text" id="usernamesignup"> </br>
password : <input type="password" id="passwordsignup"> </br>
email : <input type="text" id="emailsignup"> </br>
<input type="button" id="signupbutton" value="Sign Up"> <input type="button" value="Cancel" onClick="{$('#signup').hide()}">
</div>
<div style="z-index:10; position: absolute; height: 100%; width: 100%; display: none;">
<input type="file" id="source">
<input type="button" id="file">
</div>
<div id="main">
<div id="header">
<li> Anonkun </li>
<li> Live Stories </li>
<li case="stories"> Stories </li>
<li case="forum"> Forums </li>
<li> About </li>
<li id="account"> {{loginButtons}} </li>
<li id="startanewstory" case="forum"> Start a new story </li>
</div>
<div id="content">
{{> page}}
</div>
</div>
</body>
<template name="page">
{{#if current}}
{{> forum}}
{{/if}}
{{#if story}}
{{> storyPage}}
{{/if}}
{{#if new}}
{{> newStory}}
{{/if}}
</template>
<template name="newStory">
{{#each newStor}}
<div id="options"> {{> options}} </div>
<div id="story">{{> editStory}} </div>
<div id="chat"> {{> editchat}}</div>
{{/each}}
</template>
<template name="editStory">
<img src="{{thumb}}">
<br/>
<div id="content">
<div id="wrapcontent">
{{#each chapter}}
{{content}}
{{/each}}
</div>
<div id="chapter">
<input type="text" id="edit-title" value="{{title}}" style="width: 90%;">
<input type="text" id="edit-tag" value="{{tag}}" style="width: 90%;">
Enter Chapter Name : <input id="chapter-name" type="text" name="chapter-name"> <br>
Enter Chapter Content : <textarea id="chapter-content" type="text" name="chapter-content" style="height: 100px; width: 55%;"> </textarea> <br>
<input type="button" value="Add">
</div>
</div>
</template>
<template name="storyPage">
{{#if currentStory}}
{{> thisStory}}
{{else}}
{{> stories}}
{{/if}}
</template>
<template name="forum">
<div id="forum-left">
<input type="button" value="Start new Topic"> <br/>
topics <br/>
{{> question}}
</div>
<div id="forum-chat">
{{> forumchat}}
</div>
<div id="forum-right">
Share <br/>
Twitter <br/>
Facebook <br/>
</div>
</template>
<template name="question">
{{#each ques}}
<dl> {{name}} </dl>
{{/each}}
</template>
<template name="forumchat">
<div id="forumchatwrapper">
<div id="chats">
{{#each chats}}
{{name}} : {{message}} <br/>
{{/each}}
</div>
</div>
<div>
<input type="text" palaceholder="enter your chat">
</div>
</template>
<template name="stories">
<br/>
<div id="category">
<li> Boards </li>
{{> storiesCategory}}
</div>
<div id="storyContent">
<div id="listStories">
{{> storyList}}
</div>
<div id="numberStories">
{{> storyNumber}}
</div>
</div>
</template>
<template name="storyList">
{{#each story}}
<li class="storyClass">
<a href="#" class="href">
<img src="{{thumb}}"/>
<div class="storyShort">
<h3> {{title}} </h3>
<p> {{tag}}... </p>
<div>
by : {{author}} <br/>
{{category}}
</div>
</div>
<div class="storyFooter"> Like ({{like}}) T ({{len}}) words</div>
</a>
</li>
{{/each}}
</template>
<template name="storyNumber">
{{#each number}}
<li class="storyNum"> {{this.no}} </li>
{{/each}}
</template>
<template name="storiesCategory">
{{#each category}}
<li> {{name}} </li>
{{/each}}
</template>
<template name="account">
<font>
{{#if username}}
{{> username}}
{{else}}
Login
{{/if}}
</font>
</template>
<template name="username">
{{#each user}}
{{name}}
{{/each}}
</template>
<template name="thisStory">
{{#each store}}
<div id="options"> {{> options}} </div>
<div id="story">{{> currentStory}} </div>
<div id="chat"> {{> chat}}</div>
{{/each}}
</template>
<template name="currentStory">
<img src="{{thumb}}">
<br/>
<div id="content">
<div id="wrapcontent">
{{#each chapter}}
{{{content}}}
{{/each}}
</div>
</div>
</template>
<template name="options">
{{> chapter}}
<dl> Focus </dl>
<dl id="like"> Like ({{like}}) </dl>
<dl> Subscribe </dl>
<dl> Darken Background </dl>
<dl> Facebook </dl>
<dl> Twitter </dl>
</template>
<template name="chapter">
{{#each chapters}}
<dl> {{name}} </dl>
{{/each}}
</template>
<template name="chat">
Story is offline. <br/>
<div id="information">
{{author}} <br/>
{{date}} <br/>
{{category}}
</div>
Open Activities
<div id="chatbox"> {{> chatbox}} </div>
</template>
<template name="editchat">
Story is offline. <br/>
{{> information}}
Open Activities
<div id="chatbox"> {{> chatbox}} </div>
</template>
<template name="information">
<div id="information">
{{author}} <br/>
{{date}} <br/>
<input type="text" value="{{category}}">
</div>
</template>
<template name="chatbox">
<div id="chatwrapper">
<div id="chats">
{{#each chats}}
{{name}} : {{message}} <br/>
{{/each}}
</div>
</div>
<div>
<input type="text" palaceholder="enter your chat">
</div>
</template>