Repository navigation
Expand file tree
/
Copy pathInterfaceProj.html
More file actions
218 lines (187 loc) · 6.71 KB
/
Copy pathInterfaceProj.html
File metadata and controls
218 lines (187 loc) · 6.71 KB
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
<head>
<title>interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body class="interface" >
</body>
<template name="main">
{{> header}}
<div class="container">
<div class="container-fluid pull-left" float="left" style="width:55%" flex>
{{> leftcol}}
</div>
<div class="container-fluid pull-right" float="right" style="width:35%" flex>
{{> rightcol}}
</div>
</div>
{{> footer}}
<!--
{{> googleDrive}}-->
</template>
<template name = "header">
<div class="container">
<div class="vc pull-left container-fluid" flex >
<img src='logo.jpg' class="img-rounded" style="width:100px" />
<div class=" vc pull-right" style="background-color:black;filter:alpha(opacity=60);opacity:.6;">
<h1 style="color:white;filter:alpha(opacity=100);opacity:1;">PORTAL</h1>
</div>
<!--<img src='logoname.png' class="img-rounded" flex>-->
</div>
<div class="pull-right container-fluid" flex>
<h3 class="text-center" style="color : white">{{timedis}}</h3>
<h5 class="text-center" style="color : white">Good {{day}}, {{username}}</h5>
</div>
</div>
</template>
<template name="leftcol">
<div class="container-fluid pull-left" >
<div class="container-fluid" >
<ul class="nav nav-tabs nav-justified flex" style="padding: 1px " id="myTab" role="tablist" >
{{#each module}}
{{#if permission this.Permission this.hasTimetableItems}}
<li role="presentation" ><a href="#{{this.CourseCode}}" role="tab" data-toggle="tab" aria-controls="{{this.CourseCode}}">{{this.CourseCode}}</a>
</li>
{{/if}}
{{/each}}
</ul>
<div id="myTabContent" class="tab-content" style="padding:5px ; border-radius: 25px;
border: 2px solid #ffffff">
{{#each module}}
{{#if permission this.Permission this.hasTimetableItems}}
<div role="tabpanel" class="tab-pane fade in" id="{{this.CourseCode}}" style="max-height : 40%">
<p> {{this.CourseCode}} || {{this.CourseName}}</p>
<ul>
{{#each announcement this.ID}}
<li>
{{{this.description}}}
</li>
{{/each}}
</ul>
</div>
{{/if}}
{{/each}}
</div>
</div>
<div class="container-fluid" >
<ul class="nav nav-tabs nav-justified flex" style="padding: 1px " id="myTab" role="tablist" >
{{#each module}}
{{#if permission this.Permission this.hasTimetableItems}}
<li role="presentation" ><a href="#2{{this.CourseCode}}" role="tab" data-toggle="tab" aria-controls="{{this.CourseCode}}">{{this.CourseCode}}</a>
</li>
{{/if}}
{{/each}}
</ul>
<div id="myTabContent" class="tab-content" style="padding:5px; border-radius: 25px;
border: 2px solid #ffffff;">
{{#each module}}
{{#if permission this.Permission this.hasTimetableItems}}
<div role="tabpanel" class="tab-pane fade in" id="2{{this.CourseCode}}">
<p> Files of workbin to be displayed</p>
</div>
{{/if}}
{{/each}}
</div>
</div>
</div>
</template>
<template name = "rightcol">
<div class="panel panel-default" >
<div class="panel-heading" >
<h4 class="panel-title">{{date}} | {{weather2}} </h4>
<img src= "{{icontag}}" align="middle">
</div>
</div>
<div class="panel panel-default">
<div>
{{> calendar}}
</div>
<div class="padding">
{{> todo}}
</div>
</div>
</template>
<template name="googleDrive">
<iframe src="https://drive.google.com/embeddedfolderview?id=0B8cgx-HjKnS0SUVmWnFmNU5vY3c#list" width="800" height="600" frameborder="0"></iframe>
</template>
<!--LOGIN -->
<template name="login">
<div class="text-center container-fluid modal" id="login">
{{> loginButtons}}
<button type="button" class="btn btn-default">IVLE Login </button>
</div>
</template>
<!--Footer -->
<template name="footer">
<footer class="footers">
<div class="container-fluid text-center">
<a href="https://drive.google.com"><img src='deive.png' class="img-rounded" style="width:50px" align="left" /></a>
<a href="https://www.dropbox.com/"><img src='dropbox.png' class="img-rounded" style="width:50px" align="left" /></a>
<a href="http://nuswhispers.com/home/"><img src='nuswispers.png' class="img-rounded" style="width:50px" align="center" /></a>
<a href="https://nusmods.com/"><img src='nusmods.png' class="img-rounded" style="width:50px" align="center"/></a>
<a href="https://outlook.com/u.nus.edu"><img src='nusmail.png' class="img-rounded" style="width:50px" align="right"/></a>
<a href="https://web.whatsapp.com/"><img src='whatsapp.png' class="img-rounded" style="width:50px" align="right" /></a>
<a href="https://web.telegram.com/"><img src='telegram.png' class="img-rounded" style="width:50px" align="right" /></a>
<button><img src='logout.png' class="img-rounded logout" style="width:50px" align="right" /></button>
</div>
</footer>
</template>
<!--Calendar -->
<template name= "calendar1">
<div class="modal" >
{{> calendar}}
</div>
</template>
<!--TODO-->
<template name="todo">
<div class="container">
<header>
<h4>Todo List ({{incompleteCount}})</h4>
<label class="hide-completed">
<input type="checkbox" checked="{{hideCompleted}}" />
Hide Completed Tasks
</label>
{{#if currentUser}}
<form class="new-task form-group">
<lable for="Task">Task</lable>
<input type="text" name="text" placeholder="Type to add new tasks" />
<br>
<lable for="priority"> Priority :</lable>
<select class="form-control" name="priority" id="priority">
<br>
<option value="1">Low</option>
<option value="2">Medium</option>
<option value="3">High</option>
</select>
<!-- <input type="text" name="priority" placeholder="select priority" list="datalist1" autocomplete="off" />
<datalist id="datalist1">
<option value="1">Low</option>
<option value="2">Medium</option>
<option value="3">High</option>
</datalist>-->
<button type="submit"> Submit</button>
</form>
{{/if}}
</header>
<ul>
{{#each tasks}}
{{> task}}
{{/each}}
</ul>
</div>
</template>
<template name="task">
<li class="{{#if checked}}checked{{/if}} {{#if private}}private{{/if}}">
<button class="delete">×</button>
<input type="checkbox" checked="{{checked}}" class="toggle-checked" />
{{#if isOwner}}
<button class="toggle-private">
{{#if private}}
Private
{{else}}
Public
{{/if}}
</button>
{{/if}}
<span class="text"><strong>{{username}}</strong> - {{text}}</span>
</li>
</template>