-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
4191 lines (3666 loc) · 265 KB
/
index.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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!-- CSP support mode (required for Windows Universal apps): https://docs.angularjs.org/api/ng/directive/ngCsp -->
<html lang="en" ng-app="app" ng-csp>
<head>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<!-- JS dependencies (order matters!) -->
<script src="scripts/platformOverrides.js"></script>
<script src="lib/angular/angular.js"></script>
<script src="lib/angular/angular-animate.min.js"></script>
<script src="lib/angular/angular-sanitize.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
<!-- CSS dependencies -->
<link rel="stylesheet" href="lib/onsen/css/onsenui.css" />
<link rel="stylesheet" href="lib/onsen/css/onsen-css-components.css" />
<!-- CSP support mode (required for Windows Universal apps) -->
<link rel="stylesheet" href="lib/angular/angular-csp.css" />
<link rel="stylesheet" href="css/BracketDash.css" />
<link rel="stylesheet" href="css/mobile-activity.css" />
<link rel="stylesheet" href="lib/angular/ng-animation.css" />
<link rel="stylesheet" href="css/cropit.css" />
<!-- -- ------------- App init --------------- -->
<title>BracketDash</title>
<script src="cordova.js"></script>
<script src="scripts/FileTransfer.js"></script>
<script src="scripts/FileTransferError.js"></script>
<script src="scripts/jquery.js"></script>
<script src="scripts/BracketDash.js"></script>
<script src="scripts/index.js"></script>
<!--<script src="scripts/transloadit.js"></script>-->
<script src="scripts/transloadit.jquery.js"></script>
<script src="scripts/cropit.js"></script>
</head>
<body id="body" style="visibility:hidden;" ng-controller="BracketDashController as bd">
<div id="divOverlay" class="ng-hide slide-right"></div>
<video id="vid" src="" class="cropit-image-input" style="visibility:hidden;" controls oncanplay="angular.element(this).scope().checkduration()"></video>
<ons-modal var="modloading" ng-show="isloading">
<ons-icon icon="ion-load-c" style="color:#FFF" spin="true"></ons-icon>
<br>
<br><span style="color:#FFF"> Loading Please wait.</span>
<br>
</ons-modal>
<script type="text/ons-template" id="dialog.html">
<ons-dialog cancelable ons-prehide="bd.closevideo($event)" style="width:100%; max-width:500px;">
<!--<span style="color:#FFF">
<video width="320" height="240" controls>
<source src="{{isplaying}}" type="video/mp4">
</video>
</span>-->
<iframe style="margin: 0px; padding: 0px; border: medium none; display: block;width:100%; max-width:500px;min-height:300px" allowfullscreen="" id="iframe"
frameborder="0"></iframe>
<div class="tab-bar" style="z-index:1000;width:100%; max-width:500px;" ng-if="isplaying == uploadedurl">
<label class="tab-bar__item btnaccept" ng-click="confirmupload('finish')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-check"></i>
<div class="tab-bar__label"><span>{{uploadcreateactivity? 'Add Activity' : 'Add Response' }}</span></div>
</button>
</label>
<label class="tab-bar__item btndecline" ng-click="confirmupload('delete')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-times"></i>
<div class="tab-bar__label">Delete</div>
</button>
</label>
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogpreview.html">
<ons-dialog ons-prehide="bd.closevideo($event)" style="min-height:200px">
<!--<span style="color:#FFF">
<video width="320" height="240" controls>
<source src="{{isplaying}}" type="video/mp4">
</video>
</span>-->
<iframe style="margin: 0px; padding: 0px; border: medium none; display: block;" allowfullscreen="" id="iframepreview"
frameborder="0"></iframe>
<div class="tab-bar" style="z-index:1000" ng-if="isplaying == uploadedurl">
<label class="tab-bar__item btnaccept" ng-click="confirmupload('finish')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-check"></i>
<div class="tab-bar__label"><span>{{uploadcreateactivity? 'Add Activity' : uploadcreateresponse? 'Add Response' : 'Add Progress' }}</span></div>
</button>
</label>
<label class="tab-bar__item btndecline" ng-click="confirmupload('delete')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-times"></i>
<div class="tab-bar__label">Delete</div>
</button>
</label>
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogprofilepic.html">
<ons-dialog cancelable ons-postshow="showcropit($event)">
<!--<div>
<img id="image" src="{{bd.userinfo.Avatar_link}}" style="max-width:100%">
<button ng-click="getCroppedCanvas()" type="button" class="btn btn-primary">
<span class="docs-tooltip" data-toggle="tooltip" title="">
Get Cropped Canvas
</span>
</button>
{{croppeddata}}
</div>-->
<div class="upload-picture-wrapper">
<div class="upload-profile-photo-header">Upload Profile Photo</div>
<div class="image-editor" id="image-editor">
<div class="cropit-preview cropit-image-loading" style="position: relative; width: 150px; height: 150px;">
<div class="cropit-preview-background-container" style="position: absolute; z-index: 0; top: -10px; right: -10px; bottom: -10px; left: -10px; overflow: hidden;">
<img class="cropit-preview-background" alt="" style="position: relative; left: 10px; top: 10px; transform-origin: left top 0px; will-change: transform;">
</div>
<div class="cropit-preview-image-container" style="position: absolute; overflow: hidden; left: 0px; top: 0px; width: 100%; height: 100%;">
<img class="cropit-preview-image" alt="" style="transform-origin: left top 0px; will-change: transform;">
</div>
</div>
<div class="resize-image-wrapper">
<div class="image-size-label">Resize image</div>
<input type="range" class="cropit-image-zoom-input" min="0" max="1" step="0.01">
</div><div class="rotate-image-buttons">
<div class="rotate-ccw"><i class="fa fa-undo"></i></div><div class="rotate-cw"><i class="fa fa-repeat"></i></div>
</div>
<button ng-if="version44" ng-click="selectprofilepic()" style="height:30px;">Choose File</button>
<a ng-if="!version44" style="cursor: pointer !important;" ng-click="triggerimageupload()" class="upload">Select Image</a>
<input type="file" class="cropit-image-input" id="inputprofileimg" accept="image/*"><button class="export">Save</button><button class="cancel pull-right" ng-click="dialogprofilepic.hide()">Cancel</button>
</div>
<!--<div>
<img id="image" src="picture.jpg">
</div><button ng-click="getCroppedCanvas()"> Save </button>-->
</div>
<div class="tab-bar" style="z-index:1000" ng-if="isplaying == uploadedurl">
<label class="tab-bar__item btnaccept" ng-click="confirmupload('finish')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-check"></i>
<div class="tab-bar__label"><span>{{uploadcreateactivity? 'Add Activity' : 'Add Response' }}</span></div>
</button>
</label>
<label class="tab-bar__item btndecline" ng-click="confirmupload('delete')">
<input type="radio" name="tab-bar-a">
<button class="tab-bar__button">
<i class="tab-bar__icon fa fa-times"></i>
<div class="tab-bar__label">Delete</div>
</button>
</label>
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialoguserselect.html">
<ons-dialog cancelable>
<ons-list>
<ons-list-header>
<div style="width:80%;display:inline;float:left;">
<input type="text" class="text-input" ng-model="searchuserquery.q" style="width:80%;float:right;display:inline;" placeholder="search for users">
</div>
<div style="width:20%;float:right;">
<button class="ng-hide" ng-click="searchuser(searchuserquery.q)"><ons-icon icon="fa-search"></ons-icon></button>
</div>
</ons-list-header>
<div ng-if="NewActivity.type == 'battle'">
<ons-list class="userlist" modifier="inset">
<ons-list-item value="{{ user.Username }}" ng-repeat="user in NewActivity.contestants" modifier="tappable">
<label class="checkbox checkbox--noborder">
<input type="checkbox" ng-model="user.selected" ng-change="checkuser($event,user)">
<div style="float:left;width:20%" class="checkbox__checkmark checkbox--noborder__checkmark"></div>
<div style="float:left; width:80%; max-width:80%;">
<div style="float:left;max-width:40px"> <img src="{{user.Avatar_link}}" class="avatar"></div>
<div style="max-width:60%;float:left;padding-top:5px;">
{{user.Fullname}}<br />
<span class="subtext"> {{user.Username}}</span>
</div>
</div>
</label>
</ons-list-item>
<ons-list-item value="{{ user.Username }}" ng-if="NewActivity.contestants.length ==0" modifier="tappable">
<div class="subtext">
No user selected
</div>
</ons-list-item>
</ons-list>
</div>
<div ng-if="NewActivity.type == 'bracket' ">
<ons-list class="userlist" modifier="inset">
<ons-list-item value="{{ NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Username }}" modifier="tappable"
ng-if="NewActivity.type == 'bracket' && NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Username.length >0 ">
<label class="checkbox checkbox--noborder">
<input type="checkbox" ng-model="NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].selected" ng-change="checkuser($event,user)">
<div style="float:left;width:20%" class="checkbox__checkmark checkbox--noborder__checkmark"></div>
<div style="float:left; width:80%; max-width:80%;">
<div style="float:left;max-width:40px"> <img src="{{NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Avatar_link}}" class="avatar"></div>
<div style="max-width:60%;float:left;padding-top:5px;">
{{NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Fullname}}
<br /> <span class="subtext"> {{NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Username}}</span>
</div>
</div>
</label>
</ons-list-item>
<ons-list-item value="{{ user.Username }}" ng-if="NewActivity.type == 'bracket' && NewActivity.branches[currentbranchuser.branch_no].contestants[currentbranchuser.userindex].Username.length ==0" modifier="tappable">
<div class="subtext">
No user selected
</div>
</ons-list-item>
</ons-list>
<hr />
</div>
</ons-list>
<hr style="height: 2px;background-color: gray;" />
<ons-list class="userlist" modifier="inset">
<ons-list-item value="{{ user.Username }}" ng-repeat="user in usersearchresult" modifier="tappable">
<label class="checkbox" style="width:100%">
<input type="checkbox" ng-model="user.selected" class="checkbox_input" ng-change="checkuser($event,user)">
<div style="float:left;width:17%" class="checkbox__checkmark "></div>
<div style="float:left; width:83%; max-width:80%; margin-top:-5px">
<div style="float:left;max-width:40px"> <img src="{{user.Avatar_link}}" class="avatar"></div>
<div style="max-width:60%;float:left;padding-top:5px;">
{{user.Fullname}}<br />
<span class="subtext"> {{user.Username}}</span>
</div>
</div>
</label>
</ons-list-item>
<ons-list-item value="{{ user.Username }}" ng-if="usersearchresult.length ==0" modifier="tappable">
<div class="subtext">
No search results.
</div>
</ons-list-item>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogcategory.html">
<ons-dialog cancelable>
<ons-list>
<ons-list-header>Select Category</ons-list-header>
<ons-list-item modifier="tappable" ng-repeat="option in cats">
<label class="radio-button radio-button--list-item">
<input type="radio" name="a" ng-model="NewActivity.category" value="{{ option }}" ng-click="dialogcategory.hide($event)">
<div class="radio-button__checkmark radio-button--list-item__checkmark"></div>
{{ option }}
</label>
</ons-list-item>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogduration.html">
<ons-dialog cancelable>
<ons-list style="max-height:300px">
<ons-list-header>Select Duration</ons-list-header>
<ons-list-item>
<div style="float:left">
<ons-icon id="icncancelsearch" icon="fa-angle-left" ng-click="setdurationtype(-1)" size="28px"
fixed-width="false">
</div>
<div style="float:left;width:92%" class="centered">{{durationtype}}</div>
<div style="float:right">
<ons-icon id="icncancelsearch" icon="fa-angle-right" ng-click="setdurationtype(1)" size="28px"
fixed-width="false">
</div>
</ons-list-item>
<ons-list-item modifier="tappable" class="centered" ng-repeat="number in selectdurationnumber" ng-click="setduration(number)">
<label class="radio-button radio-button--list-item centered">
<input type="radio" name="a" ng-model="durationnumber" value="{{ number }}">
<div class="radio-button__checkmark radio-button--list-item__checkmark "></div>
{{ number }}
</label>
</ons-list-item>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogusertomessage.html">
<ons-dialog cancelable>
<ons-list>
<ons-list-header>
<div style="width:80%;display:inline;float:left;">
<input type="text" class="text-input" ng-model="searchuserquery.q" style="width:80%;float:right;display:inline;" placeholder="search for users">
</div>
<div style="width:20%;float:right;">
<button class="ng-hide" ng-click="searchuser(searchuserquery.q)"><ons-icon icon="fa-search"></ons-icon></button>
</div>
</ons-list-header>
<ons-list class="userlist" ng-if="compose.to.length > 0" modifier="inset">
<ons-list-item value="{{ user.Username }}" ng-repeat="user in compose.to" modifier="tappable">
<label class="checkbox checkbox--noborder">
<input type="checkbox" ng-model="user.selected" ng-change="addusertomessage($event,user)">
<div style="float:left;width:20%" class="checkbox__checkmark checkbox--noborder__checkmark"></div>
<div style="float:left; width:80%; max-width:80%;">
<div style="float:left;max-width:40px"> <img src="{{user.Avatar_link}}" class="avatar"></div>
<div style="max-width:60%;float:left;padding-top:5px;">
{{user.Fullname}}<br />
<span class="subtext"> {{user.Username}}</span>
</div>
</div>
</label>
</ons-list-item>
</ons-list>
<hr />
<ons-list class="userlist" modifier="inset" ng-if="usersearchresult.length > 0">
<ons-list-item value="{{ user.Username }}" ng-repeat="user in usersearchresult" modifier="tappable">
<label class="checkbox">
<input type="checkbox" class="chekbox_input" ng-model="user.selected" ng-change="addusertomessage($event,user)">
<div style="float:left;width:17%" class="checkbox__checkmark "></div>
<div style="float:left; width:83%; max-width:80%; margin-top:-5px">
<div style="float:left;max-width:40px"> <img src="{{user.Avatar_link}}" class="avatar"></div>
<div style="max-width:60%;float:left;padding-top:5px">
{{user.Fullname}}<br />
<span class="subtext"> {{user.Username}}</span>
</div>
</div>
</label>
</ons-list-item>
</ons-list>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogvisibility.html">
<ons-dialog cancelable>
<ons-list>
<ons-list-header>Select Visibility</ons-list-header>
<ons-list-item modifier="tappable" ng-repeat="option in visibilityoptions">
<label class="radio-button radio-button--list-item">
<input type="radio" name="a" ng-model="NewActivity.visibility" value="{{ option }}" ng-click="dialogvisibility.hide($event)">
<div class="radio-button__checkmark radio-button--list-item__checkmark"></div>
{{ option }}
</label>
</ons-list-item>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogbranchlength.html">
<ons-dialog cancelable>
<ons-list>
<ons-list-header>
Select the number of contestants
</ons-list-header>
<ons-list-item style="min-height:50px" modifier="tappable">
<ons-list-item>
<ons-list-item style="min-height:50px" modifier="tappable" ng-repeat="len in branchlength">
<label class="radio-button radio-button--list-item">
<input type="radio" name="a" ng-model="NewActivity.branchlength" value="{{ len }}">
<div class="radio-button__checkmark radio-button--list-item__checkmark"></div>
{{ len }}
</label>
</ons-list-item>
</ons-list>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogpassword.html">
<ons-dialog cancelable>
<div class="account-settings-wrapper">
<div class="header">
Please enter your password to confirm.
</div>
<form novalidate="novalidate" class="edit-email-form">
<br><br><input type="password" class="text-input--underbar txtsignup" name="password" placeholder="" ng-model="changesettings.confirmpassword">
<br><br>
<ons-button modifier="large" class="login-button btnsecond" style="width:80%;"
ng-click="changesetting()">Confirm</ons-button>
</form>
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogcomment.html">
<ons-dialog cancelable ons-prehide="bd.hidecomments(currentfeed.activity_id)">
<div class="commentcontainer" ng-show="currentfeed.activity_id">
<div class="tab-bar tab-bar--top">
<label class="tab-bar__item">
<input type="radio" name="tab-bar-c" ng-model="currentfeed.mode" value="1" checked="checked">
<button class="tab-bar__button">
<div class="tab-bar__label">Comments</div>
</button>
</label>
<label ng-show="bd.isloggedin" class="tab-bar__item" ng-if="currentfeed.activity_host_info.username != bd.userinfo.Username">
<input type="radio" name="tab-bar-c" ng-model="currentfeed.mode" value="2">
<button class="tab-bar__button">
<div class="tab-bar__label">Report</div>
</button>
</label>
<label class="tab-bar__item" ng-show="currentfeed.activity_type=='challenge' && bd.isloggedin && currentfeed.contestants_info.challenge.contestant_username != bd.userinfo.Username && !userresponded(currentfeed.contestants_info)">
<input type="radio" name="tab-bar-c" ng-model="currentfeed.mode" value="3">
<button class="tab-bar__button">
<div class="tab-bar__label">Respond</div>
</button>
</label>
<label class="tab-bar__item" ng-if="currentfeed.activity_host_info.username == bd.userinfo.Username">
<input type="radio" name="tab-bar-c" ng-model="currentfeed.mode" value="4">
<button class="tab-bar__button">
<div class="tab-bar__label">Delete</div>
</button>
</label>
<label class="tab-bar__item" ng-if="currentfeed.activity_host_info.username == bd.userinfo.Username && currentfeed.activity_status=='expired'
&& currentfeed.activity_type=='bracket' && currentfeed.contestants_info.length >2 && currentfeed.next_round_status !='launched'">
<input type="radio" name="tab-bar-c" ng-model="currentfeed.mode" value="5">
<button class="tab-bar__button">
<div class="tab-bar__label" style="font-size:small;">Launch Next</div>
</button>
</label>
</div>
<ons-scroller style="height: 70%; width: 100%">
<div ng-show="currentfeed.mode ==1" ng-attr-id="{{'comments' + currentfeed.activity_id}}">
<div class="options-content-wrapper">
<div>
<div>
<!--<ons-col class="smallcolumn" ><div class="comment-input-avatar comment-avatar">
<img class="avatar" src="{{bd.userinfo.Avatar_link
}}">
</div>
</ons-col>-->
<div class="error" ng-if="commentempty">Please enter a comment.</div>
<div style="text-align: center;">
<textarea data-id="5" ng-model="newcomment.text" class="text-input"
required style="width:95%;height:70px;" placeholder="comment..."></textarea>
</div>
<div style="margin-left:10px">
<div style="text-align: center;"><button ng-show="bd.isloggedin" class="btnwide button button--material btnprimary " ng-click="savecomment()">Post</button></div>
</div>
<div style="text-align: center;">
<button ng-show="!bd.isloggedin" class="btnwide button button--material btnprimary" ng-click="requestlogin()">Login & Post</button>
</div>
</div>
</div>
<div class="comment-section-wrapper" style="max-height: 200px;">
<div class="comment-wrapper">
<div ng-repeat="comment in currentfeed.comments.obj" style="width:100%">
<div class="comment-avatar" style="float:left">
<img class="avatar" src="{{comment.avatar}}">
</div>
<div style="float:left">
<div class="commentoor">
<span style="font-size: 10px;">{{comment.username}}</span>
<span style="font-size: 10px;" class="comment-date subtext">{{comment.date}}</span>
</div>
</div>
<div style="position:relative;">
<div class="comment-text-wrapper" style="padding-top:15px;">
<div class="comment-text">{{comment.comment}}</div>
</div>
<div class="report-comment" ng-if="comment.username != bd.userinfo.Username" ng-click="reportcomment(comment.comment_id)" data-comment-id="3"><ons-icon icon="fa-bolt"></ons-icon></div>
<div class="report-comment" ng-if="comment.username == bd.userinfo.Username" ng-click="deletecomment(comment.comment_id)" data-comment-id="3"><ons-icon icon="fa-minus-circle"></ons-icon></div>
</div>
</div>
<div style="text-align:center; margin-top:20px;" ng-if="currentfeed.comments.hasmore">
<ons-button class="btnhollow btnload" ng-click="bd.getcomments(currentfeed.activity_id,commentslimit+10)">load more</ons-button>
</div>
</div>
</div>
</div>
</div>
<div ng-show="currentfeed.mode ==2" ng-attr-id="{{'reports' + currentfeed.activity_id}}">
<div class="comment-input-wrapper">
<!--<ons-row>
<ons-col class="smallcolumn">
<div class="comment-input-avatar comment-avatar">
<img class="avatar" src="{{bd.userinfo.Avatar_link}}">
</div>
</ons-col>
<ons-col>
<textarea data-id="5" ng-model="newreport.text" class="comment-input" placeholder="explain what is wrong with this activity..."></textarea>
</ons-col>
</ons-row>-->
<div style="width:100%;text-align:center;">
<br /><br />
<button class="button button--material btnprimary btnwide" ng-click="savereport(currentfeed.activity_id)">Report</button>
<br />
</div>
</div>
</div>
<div ng-show="currentfeed.mode ==3" ng-attr-id="{{'reports' + currentfeed.activity_id}}">
<div class="comment-input-wrapper">
<div class="container" ng-if="currentfeed.activity_status=='expired' && currentfeed.activity_status=='expired'">
<br /> It is not possible to add response to this activity because it has expired.<br /><br />
</div>
<div class="container" ng-if="currentfeed.contestants_info.response && currentfeed.contestants_info.response.length>9">
<br /> It is not possible to add response to this activity because it has reached the maximum number of responses.
<br /><br />
</div>
<div class="container" style="width:100%; text-align:center" ng-show="isuploading !=1 && currentfeed.activity_status!='expired' &&((currentfeed.contestants_info.response && currentfeed.contestants_info.response.length <10) || !currentfeed.contestants_info.response)">
<br /><Br />
<div ng-if="!version44" style="width: 100%;" id="upload-form">
<input type="file" accept="video/*" class="cropit-image-input" id="inputuploadresponse" onchange="angular.element(this).scope().setFiles(this,false,true,'response')" />
<a id="btnuploadresponse" class="button button--material btnsecond btnwide"
style="cursor: pointer !important;" ng-click="triggerresponseupload()">
Select Video<span style="font-size:x-small"> (Max 5 minutes.)</span>
</a><br /><br />
</div>
<button ng-if="version44 && !file" ng-click="selectfile('response',currentfeed.activity_id)"
class="button button--material btnsecond btnwide">
Choose File & Save<span style="font-size:x-small"> (Max 5 minutes.)</span>
</button>
<button ng-show="file && uploadbutton && validvideo" class="button button--material btnprimary btnwide trim-button" ng-click="addresponse(currentfeed.activity_id)">Upload {{file}}</button>
<button ng-show="file && !uploadbutton" class="button btnsmall">{{file}}</button>
</div>
<div class="container" ng-show="isuploading ==1">
There is an upload in progress please come back later.
</div>
</div>
</div>
<div ng-show="currentfeed.mode ==4" ng-attr-id="{{'reports' + currentfeed.activity_id}}">
<div class="centered">
<br />
Are you sure you want to delete '{{currentfeed.activity_title}}'? <br /><br />
<ons-button class="button--material btnprimary btnwide" ng-click="bd.deleteactivity(currentfeed.activity_id)">Delete</ons-button>
</div>
</div>
<div ng-show="currentfeed.mode ==5">
<div class="centered">
<br>
Are you sure you want to launch next round for '{{currentfeed.activity_title}}'?
<br><br>
<ons-button class="button--material btnprimary btnwide" ng-click="bd.launchnextround(currentfeed.activity_id)">Launch next round</ons-button>
<br>
</div>
</div>
</ons-scroller>
</div>
<script>
</script>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialoginprogress.html">
<ons-dialog cancelable>
<div class="commentcontainer" ng-show="currentprogressfeed.activity_id">
<div class="tab-bar tab-bar--top">
<label class="tab-bar__item" ng-if="currentprogressfeed.activity_host_info.username == bd.userinfo.Username">
<input type="radio" name="tab-bar-c" ng-model="currentprogressfeed.mode" value="1" checked="checked">
<button class="tab-bar__button">
<div class="tab-bar__label">Launch</div>
</button>
</label>
<label ng-show="bd.isloggedin" class="tab-bar__item" ng-if="currentprogressfeed.activity_host_info.username != bd.userinfo.Username">
<input type="radio" name="tab-bar-c" ng-model="currentprogressfeed.mode" value="2">
<button class="tab-bar__button">
<div class="tab-bar__label">Quit</div>
</button>
</label>
<label class="tab-bar__item" ng-if="currentprogressfeed.activity_host_info.username == bd.userinfo.Username && 1==2">
<input type="radio" name="tab-bar-c" ng-model="currentprogressfeed.mode" value="3">
<button class="tab-bar__button">
<div class="tab-bar__label">Edit</div>
</button>
</label>
<label class="tab-bar__item" ng-if="currentprogressfeed.activity_host_info.username == bd.userinfo.Username">
<input type="radio" name="tab-bar-c" ng-model="currentprogressfeed.mode" value="4">
<button class="tab-bar__button">
<div class="tab-bar__label">Delete</div>
</button>
</label>
</div>
<ons-scroller style="height: 70%; width: 100%">
<div ng-show="currentprogressfeed.mode ==1">
<div class="options-content-wrapper">
<div class="comment-input-wrapper">
<div ng-show="currentprogressfeed.progress_state=='ready'">
All contestants have uploaded their video.
This activity is ready for launch!
</div>
<div ng-show="currentprogressfeed.progress_state!='ready'">
All contestants have not uploaded their video yet.
This activity is not ready for launch!
</div>
<br />
<ons-botton ng-disabled="currentprogressfeed.progress_state!='ready'" class="button button--material btnsecond btnwide centered" modified="small" ng-click="bd.launchactivity(currentprogressfeed.activity_id)">
<div style="text-align:center">Launch</div>
</ons-botton>
<br />
<br />
</div>
</div>
</div>
<div ng-show="currentprogressfeed.mode ==2">
<div class="options-content-wrapper">
<div class="comment-input-wrapper">
<div>
Do you really wish to quit this activity?<br />
Keep in mind this action cannot be undone!
<br />
<ons-botton class="button button--material btnsecond btnwide centered" modified="small" ng-click="quitactivity(currentcon.activity_id)">
<div style="text-align:center">Quit</div>
</ons-botton>
<br />
<br />
</div>
</div>
</div>
</div>
<div ng-show="currentprogressfeed.mode ==3">
</div>
<div ng-show="currentprogressfeed.mode ==4" ng-attr-id="{{'reports' + currentprogressfeed.activity_id}}">
<br />
<div class="centered">
Are you sure you want to delete '{{currentprogressfeed.activity_title}}'
<br /><br /> <ons-button class="button button--material btnprimary btnwide centered" ng-click="bd.deleteactivity(currentprogressfeed.activity_id)">Delete</ons-button>
</div>
</div>
</ons-scroller>
</div>
<script>
</script>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogvidoptions.html">
<ons-dialog cancelable>
<div class="commentcontainer" ng-show="currentcon.video_id">
<div class="tab-bar tab-bar--top">
<label class="tab-bar__item">
<input type="radio" name="tab-bar-c" ng-if="currentcon.mode ==1"
ng-model="currentvid.mode" value="1" checked="checked">
<button class="tab-bar__button">
<div class="tab-bar__label">Report Video</div>
</button>
</label>
<label ng-show="bd.isloggedin" class="tab-bar__item" ng-if="currentcon.mode ==2">
<input type="radio" name="tab-bar-c" ng-model="currentcon.mode" value="2">
<button class="tab-bar__button">
<div class="tab-bar__label">Quit</div>
</button>
</label>
</div>
<ons-scroller style="height: 70%; width: 100%">
<div ng-show="currentcon.mode ==1" class="centered">
<br /><br />
<button class="button button--material btnprimary btnwide centered" modified="small" ng-click="reportvideo()">
<div style="text-align:center">Report Video</div>
</button>
<br />
<br />
</div>
<div ng-show="currentcon.mode ==2" class="centered">
<br /><br />
<button class="button button--material btnprimary btnwide centered" modified="small" ng-click="quitactivity(currentcon.activity_id)">
<div style="text-align:center">Quit Activity</div>
</button>
<br />
<br />
</div>
</ons-scroller>
</div>
<script>
</script>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogvidoptionsinprogress.html">
<ons-dialog cancelable>
<div class="commentcontainer" ng-show="currentconinprogress.contestant_username">
<div class="tab-bar tab-bar--top">
<label class="tab-bar__item">
<input type="radio" name="tab-bar-c" ng-if="currentcon.contestant_username != self.userinfo.Username"
ng-model="currentconinprogress.mode" value="1" checked="checked">
<button class="tab-bar__button">
<div class="tab-bar__label">Replace User</div>
</button>
</label>
</div>
<ons-scroller style="height: 70%; width: 100%">
<div ng-show="currentcon.mode ==1" class="centered">
<br />
<ons-botton class="button button--material btnsecond btnwide centered" modified="small" ng-click="reportvideo()">
<div style="text-align:center">Report Video</div>
</ons-botton>
<br />
<br />
</div>
</ons-scroller>
</div>
<script>
</script>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialoglogintocontinue.html">
<ons-dialog cancelable ons-posthide="resetloginmode()">
<div ng-if="logintocontinue == ''">
<ons-row>
<ons-col><button ng-click="setloginmode('login')" class="button button--outline">Login</button></ons-col>
<ons-col><button ng-click="setloginmode('register')" class="button button--outline">Register</button></ons-col>
</ons-row>
</div>
<div ng-if="logintocontinue == 'login'">
<div class="login-form">
<div class="error" ng-if="loginvalidation.status==false">{{loginvalidation.reason}}</div>
<input type="email" class="text-input--underbar" ng-model="loginobj.loginemail" placeholder="Email">
<input type="password" class="text-input--underbar" ng-model="loginobj.loginpassword" placeholder="Password">
<br><br>
<ons-button modifier="large" ng-disabled="loginvalidation.emailstatus < 1 || loginvalidation.passwordstatus < 1" class="login-button" ng-click="login()">Log In</ons-button>
<br><br>
<ons-button modifier="quiet" ng-click="setloginmode('forgot')" class="forgot-password">Forgot password?</ons-button>
<ons-button modifier="quiet" ng-click="setloginmode('register')" class="forgot-password">Register</ons-button>
</div>
</div>
<div ng-if="logintocontinue == 'forgot'">
<div class="login-form">
<input type="email" class="text-input--underbar" ng-model="forgotemail.email" placeholder="Email">
<br><br>
<ons-button modifier="large" class="login-button" ng-click="forgotpassword()">Send Reset Link</ons-button>
<br><br>
</div>
</div>
<div ng-if="logintocontinue == 'register'">
<div class="login-form">
<div class="error" ng-if="registervalidation.emailstatus<0 || registervalidation.usernamestatus <0 || registervalidation.passwordstatus <0 || registervalidation.passwordconfirmstatus <0 ">{{registervalidation.reason}}</div>
<input type="text" class="text-input--underbar txtsignup" ng-model="newuser.registerfullname" placeholder="Full Name">
<input type="text" class="text-input--underbar txtsignup" ng-model="newuser.registerusername" placeholder="Username">
<ons-icon icon="ion-load-c" class="checkmail" ng-if="checkingusername" spin="true"></ons-icon>
<input type="email" class="text-input--underbar" ng-model="newuser.registeremail" placeholder="Email">
<ons-icon icon="ion-load-c" class="checkmail" ng-if="checkingemail" spin="true"></ons-icon>
<input type="password" class="text-input--underbar" ng-blur="validatepassword()" ng-model="newuser.registerpassword" placeholder="Select Password">
<input type="password" class="text-input--underbar" ng-blur="validatepasswordconfirm()" ng-model="newuser.registerpasswordconfirm" placeholder="Confirm Password">
<label class="checkbox" style=" float: left; font-size:13px;">
<input ng-model="newuser.accepttermstatus" type="checkbox">
<div class="checkbox__checkmark"></div>
I agree to <a href="javascript:;" ng-click="dialogterms.show()">terms and conditions</a>.
</label>
<br><br>
<ons-button modifier="large" class="login-button" ng-disabled="registervalidation.emailstatus<1 || registervalidation.usernamestatus <1 || registervalidation.passwordstatus <1 || registervalidation.passwordconfirmstatus <1|| !newuser.accepttermstatus" ng-click="register()">Sign Up</ons-button>
<br><br>
</div>
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="invitationdialog.html">
<ons-dialog cancelable>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogaddlink.html">
<ons-dialog cancelable>
<div class="centered">
<input type="text" class="text-input--underbar" required style="width:95%"
placeholder="www.yourlink.com" ng-model="newlink.name" value="">
<br /><Br />
<ons-botton class="button button--material btnsecond btnwide centered" modified="small" ng-click="addlink()">
Add Link
</ons-botton>
<br />
</div>
</ons-dialog>
</script>
<script type="text/ons-template" id="dialogterms.html">
<ons-dialog cancelable>
<ons-scroller class="terms-content-wrapper" style="max-height: 250px; width: 100%">
<div class="header">
Terms and Conditions Agreement
</div>
<div class="terms-content" style="padding:3px;">
<p class="terms-last-modified-date">This document was last modified July 28th, 2015</p>
<p>Please read these terms and conditions in their entirety before initiating use of the BracketDash Web Application (officially referred to as the App. By using or accessing the App in any way, viewing or browsing the App, or adding your own content to the App, you are agreeing to be bound by these Terms and Conditions.</p>
<h4>Intellectual Property</h4>
The App and all of its original content are the sole property of BracketDash and are, as such, fully protected by the appropriate copyright laws, both domestic and international. Infringement on these rights will result in permanent termination of the account. Legal prosecution may follow pending review, in accordance to applicable laws.
Original content, such as songs, poems, or performances, uploaded to the site will remain property of the user who created it. BracketDash retains the right to host and share the video, but intellectual property remains the right of the user in accordance with governing laws.
<h4>Content Agreements</h4>
• Do not engage in or submit any illegal activity to this site.<br>
• Do not engage in or submit any dangerous, harmful or violent acts to this site.<br>
• Do not engage in or submit any forms of cyber bullying or harassment to this site, be it to other users or to the App creators. <br>
• Do not submit any explicit, adult or pornographic material of any kind to this site.<br>
• We are not responsible for any harm or damages related to any individual user.
<h4>Termination</h4>
BraketDash reserves the right to terminate your access to the App, without any advance notice, for any reason. Additionally, violation of any of the above content Agreements‚ will result in immediate and permanent termination of access. Legal prosecution may follow pending review, in accordance to applicable laws.
<h4>Outside Links</h4>
Braketdash may contain links to other websites or apps. The App does not maintain control over these links, and will accept no responsibility for activities performed on these third party sites or their services. The App strongly suggests users read any terms and conditions, along with privacy agreements, of any sites linked through BracketDash.
<h4>Governing Law</h4>
BracketDash is governed in accordance with the laws of Texas, United States of America.
<h4>Changes to This Agreement</h4>
BracketDash reserves the right to modify these Terms and Conditions at any time, with or without notice. It is the user's responsibility to review the Terms and Conditions. Your decision to continue to visit and make use of the App after such changes have been made constitutes your formal acceptance of the new Terms and Conditions. Therefore, we suggest users review the Terms and Conditions for changes, and terminate their use if they no longer agree.
<h4>Contact Us</h4>
If you have any questions about this Agreement, please feel free to contact us at <b>[email protected]</b>
<br><br>
</div>
</div>
</ons-dialog>
</script>
<!-- Cordova reference -->
<!-- -->
<ons-toolbar fixed-style style="z-index:1000">
<div class="left">
<ons-toolbar-button ng-click="menu.toggle()">
<ons-icon icon="ion-navicon" size="28px" fixed-width="false"></ons-icon>
</ons-toolbar-button>
</div>
<div class="center" id="logo"><img ng-click="bd.setMainPage('page1.html', {closeMenu: true},'Home')" ng-show="bd.showlogo()" class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAtCAYAAADV2ImkAAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5W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2OeFkVQbdXM6xbVDbwvDUb0uZ4E81B4DTL4i7Bq5bK9Ne4SpZ4KlABwhb01GDR+Vpvyfa91dvQ5A7g9CbwNcYABknmYe5EGYVCOS4xyrvnOx7DyIUGphwUWq3+Enrf6lRvGqimzm+fc9h+x2L10JvrumIEP8pMBfBoaaQayj7OYu5cmJl/5l4IlDYgVnx0wx+K11g7e/dp6bASS81EEsxwStz8MdECQ8uvQI+cIB5SNsUymRuAz9oSVudrzdyYXe0F+scI3jnSisz5roYqb9bjH/rCJ3aLA4kyhC0OQyns+snkGkM+rJL5z6/qOlw+3bLUhtz+8HIF0PgzPweeqRgRh2KITi0iqH27mAgxUCOdIcVgJYxgpmRiW424kICPXRV0XYfEnQxsW0KZDQKGH8QJ34H1n9iR5IilWlm3b+PC2DCybOqI5f4XImHwYfCMwdj56Oi5rRurgWvBCfUUpRF5OHGDe0VmirMbs3DF1NsfXGDwBZJxYnxamjWkDqE4nDkJ8C0+ABAUqrNkuprICC/BygD2Q0YBtHwGW6vw6z7vSN3LPKCUTiqhDFFXSugS75k2i4Ev8TOQnwVAsBhrwcwt9jxtjVEuzXb5AmBDoJEvdRiW7AOfwdmIqz0Dbyu51k9bCvRjhV6RClEXafOtI8ZFUTQPICcjFSOIKrQHzuUZwIvYhS+JeIQ+TQWvfLovfU1WHTDyPoVWJLYFisD8NTIB8m1ak18I8w4SqoF9v4LoG7zxlDb7TIWR0ejjBjgOW9XxkuP+GI3krtHIu0io3CatA0FytcJXRANtrtC28VbrgDfdBkDWsfhcfFTnj8BVJwz3hxD0maw7C1PtRwX0JReq6EbHMxt5isnX3po4Bp7z6JbTwYW9Q23Dtvf9eqfT3iUFwP3j1A9j1vNqH1XsCh7UrGIHtoMPKUileEUlnHKEDOIDBrsYX2x0YczAL053WFFVSNnk/icu7kAzvzo1t3Nf13AP4jpkJLZp+awYFOqulx73+D/Hg4ThSZmcuAAAAAElFTkSuQmCC"></div>
<div class="right" style="position:relative;">
<div id="searchinput" style="width:160px;height:25px;" ng-show="bd.issearching" class="slide-right">
<div style="position:relative; height:95%;">
<input type="text" id="txtsearch" ng-model="searchquery.q" style="width:140px; height:100%;" class="searchinput text-input--underbar" />
<ons-icon id="icncancelsearch" icon="fa-search" ng-click="bd.search" size="18px"
style="width:20px;position:absolute;right:-20px; vertical-align:baseline;top:4px" fixed-width="false">
</ons-icon>
</div>
</div>
<ons-toolbar-button id="searchicon">
<div style="display:inline-block;">
<ons-gesture-detector style="display:block;">
<div style="display:inline-block;">
<ons-icon id="mysearchicon" ng-attr-icon="{{!bd.issearching? 'fa-search' : 'ion-close'}}"
slide-toggle="#searchinput" size="24px" fixed-width="false" ng-click="bd.clicksearch()">
</ons-icon>
</div>
</ons-gesture-detector>
</div>
</ons-toolbar-button>
</div>
</ons-toolbar>
<ons-sliding-menu menu-page="menu.html" side="left"
var="menu" type="reveal" max-slide-distance="260px" swipeable="true">
</ons-sliding-menu>
<ons-bottom-toolbar id="confirmationtoolbar" class="slide-right" ng-click="resendconfirmation()" ng-show="bd.userinfo.email_confirmation == 0 && showemailconfirmation">
<ons-gesture-detector ng-swipeleft="hideemailconfirmation()" ng-swiperight="hideemailconfirmation()">
<div style="text-align: center; line-height: 15px; font-size:11px; padding:3px"> In order to secure your account, please confirm your email.</div>
</ons-gesture-detector>
</ons-bottom-toolbar>
<ons-template id="menu.html">
<ons-page modifier="menu-page">
<ons-toolbar modifier="transparent"></ons-toolbar>
<ons-list class="menu-list">
<ons-list-item ng-if="bd.isloggedin" modifier="chevron" class="menu-item">
<!--<ons-icon icon="minus-square-o" ng-show="bd.accountexpand"></ons-icon>
<ons-icon icon="plus-square-o" ng-show="!bd.accountexpand"></ons-icon>-->
<ons-row>
<ons-col width="25%">
<img src="{{bd.userinfo.Avatar_link
}}" id="myprofilepic" ng-click="showdialogprofilepic()" class="avatar">
<canvas id="myCanvas" />
<input type="file" id="base645" />
</ons-col>
<ons-col ng-click="bd.expandaccount()">
{{bd.userinfo.Fullname}}
</ons-col>
</ons-list-item>
<ons-list ng-show="bd.accountexpand && bd.isloggedin" class="menu-list submenu">
<ons-list-item class="menu-item" ng-click="getprofile(bd.userinfo.Username,true,1)">
<ons-icon icon="fa-user" size="18px"></ons-icon>
Bio
</ons-list-item>
<ons-list-item class="menu-item" ng-click="getprofile(bd.userinfo.Username,true,2)">
<ons-icon size="18px" icon="fa-group"></ons-icon>
Audience
</ons-list-item>
<ons-list-item class="menu-item" ng-click="bd.setMainPage('NewActivity.html', {closeMenu: true},'New Activity')">