forked from erwintoni/gb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissuer.html
246 lines (218 loc) · 9.65 KB
/
issuer.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
<html>
<head>
<meta charset="utf-8">
<title>Grade Badge</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
}
</style>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-responsive.css" rel="stylesheet">
<!--style type="text/css">
.thumbnail > img {
}
.thumbnails > li {
float : left;
}
</style -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div id="fb-root"></div>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" onclick="a.screen('title')">GradeBadge</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="./">Member Page</a></li>
<li><a href="#" onclick="a.screen('groups')">My Groups</a></li>
<li id="name"></li>
<li id="login" style="display:none;"></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div id="loading" class="container" style="display:block;">
<div id="loading_bar" class="progress progress-striped active">
<div class="bar" style="width: 0%;"></div>
</div>
</div>
<div id="login" class="container" style="display:none;"></div>
<!-- Profile Page-->
<div id="profile" class="container" style="display:none;">
<ul id="profile_profile" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Title Page-->
<div id="title" class="container" style="display:none;">
Welcome, this is Issuer page.
<!-- script>a.screen('groups');</script -->
<button onclick="a.screen('groups')" class="btn btn-primary">View My Groups</button>
<br/><br/>
<ul id="profile_title" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Groups Page -->
<div id="groups" class="container" style="display:none;">
<h2>Group List I manage:</h2>
<a href="#addGroupModal" role="button" class="btn" data-toggle="modal">Add New Group</a>
<button id="groups_refresh" class="btn btn-primary" onclick="a.refresh()" type="button"><i class="icon-refresh icon-white"></i>Refresh</button>
<br/><br/>
<ul id="groups_list" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Group Badges Page -->
<div id="groupBadges" class="container" style="display:none;">
<div id="groupname_b"></div>
<p>Badges List </p>
<a href="#addBadgeModal" role="button" class="btn" data-toggle="modal"><i class="icon-plus-sign icon-white"></i>Add New Badge</a>
<button id="group_badges_refresh" class="btn btn-primary" onclick="a.refresh()" type="button"><i class="icon-refresh icon-white"></i> Refresh</button>
<button id="group_badges_back" class="btn btn-primary" onclick="a.screen('groups')" type="button">Back</button>
<br/><br/>
<ul id="group_badges_list" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Group Members Page -->
<div id="groupMembers" class="container" style="display:none;">
<div id="groupname_m"></div>
<p>Members List </p>
<button id="group_badges_refresh" class="btn btn-primary" onclick="a.fbPostGroup(a.v.currGroup)" type="button"><i class="icon-bullhorn icon-white"></i> Invite Friends</button>
<button id="group_badges_refresh" class="btn btn-primary" onclick="a.refresh()" type="button"><i class="icon-refresh icon-white"></i> Refresh</button>
<button id="group_badges_back" class="btn btn-primary" onclick="a.screen('groups')" type="button">Back</button>
<br/><br/>
<ul id="group_members_list" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Badge Members Page -->
<div id="badgeMembers" class="container" style="display:none;">
<div id="badgename"></div>
<p>Member List </p>
<a href="#addBadgeModal" role="button" class="btn" data-toggle="modal">Invite New Member</a>
<button id="group_badges_refresh" class="btn btn-primary" onclick="a.refresh()" type="button"><i class="icon-refresh icon-white"></i> Refresh</button>
<button id="group_badges_back" class="btn btn-primary" onclick="a.screen('groupBadges')" type="button">Back to Badge</button>
<button id="group_badges_back" class="btn btn-primary" onclick="a.screen('groups')" type="button">Back to Group</button>
<br/><br/>
<ul id="badge_members_list" class="thumbnails">
<!-- auto generated -->
</ul>
</div>
<!-- Add Group Modal-->
<div id="addGroupModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Add New Group</h3>
</div>
<div class="modal-body">
<p>Group Name = <input type="text" id="gname"></p>
<p>Group Description = <input type="text" id="gdesc"></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button id="saveGroup" data-dismiss="modal" onclick="a.c.saveNewGroup()" class="btn btn-primary">Save changes</button>
</div>
</div>
<!-- Inivite Member Modal-->
<div id="inviteMemberModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Invite Friend to Group</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button id="saveGroup" data-dismiss="modal" onclick="a.c.saveNewGroup()" class="btn btn-primary">Save changes</button>
</div>
</div>
<!-- Add Badge Modal-->
<div id="addBadgeModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Add New Badge</h3>
</div>
<div class="modal-body">
<p>Badge Name = <input type="text" id="bname"></p>
<p>Badge Description = <input type="text" id="bdesc"></p>
<p>Badge Picture = <input type="text" id="bpict"></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button id="saveBadge" data-dismiss="modal" onclick="a.c.saveNewBadge()" class="btn btn-primary">Save changes</button>
</div>
</div>
<!-- Login Modal-->
<div id="loginModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Facebook Login</h3>
</div>
<div class="modal-body">
<button class="btn btn-primary" type="button" onclick="a.fbLogin()">Facebook Login</button>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<footer style="text-align: center">
<p>© Grade Badge 2013</p>
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!-- -->
<script>
(function() {
var n = 2;
window.fbAsyncInit = function() {
if (--n === 0) {
// TODO : How to get FB_APP_ID value from client side
//a.fbInit('466760923387961');
a.fbInit('FB_APP_ID');
}
};
}());
(function(d) {
var ref = d.getElementsByTagName('script')[0],
fbJs = d.createElement('script'),
aJs = d.createElement('script');
fbJs.id = 'facebook-jssdk';
fbJs.async = true;
fbJs.src = '//connect.facebook.net/en_US/all.js';
aJs.async = true;
aJs.src = 'app.js';
ref.parentNode.insertBefore(fbJs, ref);
ref.parentNode.insertBefore(aJs, ref);
}(document));
var progress = setInterval(function() {
var $bar = $('.bar');
if ($bar.width()==400) {
clearInterval(progress);
$('.progress').removeClass('active');
} else {
$bar.width($bar.width()+40);
}
$bar.text($bar.width()/4 + "%");
}, 200);
</script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
</body>
</html>