Blame view

home.html 8.78 KB
4c1dc6dc9   Kevin Mach   first commit
1
2
  <!DOCTYPE html>
  <html ng-app="flashy">
0b8d7cf4b   Andrew Buss   Moving towards a ...
3
4
  <base href="/app/">
  <head>
8a9a93515   Andrew Buss   mobile!
5
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
0b8a1b605   Andrew Buss   still trying to f...
6
7
    <link rel="stylesheet"
          href="https://ajax.googleapis.com/ajax/libs/angular_material/0.9.0/angular-material.min.css">
c642b3119   Rohan Rangray   Added a tab icon
8
    <link rel="shortcut icon" href="flashy.ico">
742c7cd5f   Andrew Buss   'fixed' autocompl...
9

0cb0637f2   Andrew Buss   refactored css, h...
10
11
    <link rel="stylesheet" href="styles/flashier.css"/>
    <link rel="stylesheet" href="styles/flashy.css"/>
412c2c332   Rohan Rangray   Added manifest.js...
12
    <link rel="manifest" href="manifest.json">
7dc4ba215   Rohan Rangray   Fixed the google ...
13
    <link
9436dc71d   Andrew Buss   remove footer; mo...
14
15
            href='https://fonts.googleapis.com/css?family=Satisfy|Titillium+Web:400,200,200italic,300,600,700,900,700italic,600italic,400italic,300italic'
            rel='stylesheet' type='text/css'>
062259ff3   Rohan Rangray   Changed the <titl...
16
    <title>Flashy</title>
0b8d7cf4b   Andrew Buss   Moving towards a ...
17
  </head>
c7a3eac3f   Andrew Buss   dynamic nav menu too
18
  <body ng-controller="RootController">
0cb0637f2   Andrew Buss   refactored css, h...
19
  <header>
4c3a5e272   Andrew Buss   cleanup; redirect...
20
    <nav>
bd83bd63c   Andrew Buss   tweaks
21
      <div class="nav-wrapper">
ad12ea2cd   Andrew Buss   progress bar on feed
22
23
        <a ng-show="UserService.isLoggedIn()" href="#" data-activates="mobile-demo"
           class="left button-collapse hide-on-med-and-up"><i
c7a3eac3f   Andrew Buss   dynamic nav menu too
24
                class="mdi-navigation-menu"></i></a>
397eaddf7   Masud Rahman   Drop down no long...
25

b12a56132   Andrew Buss   try to fix (hah) ...
26
27
28
29
30
31
32
33
        <!-- User's classes dropdown -->
        <ul id="classDropdown" class="dropdown-content">
          <li ui-sref-active="active" ng-repeat="section in UserService.getUserData().sections">
            <a ui-sref="feed({sectionId:section.id})">{{section.short_name}}</a>
          </li>
          <li class="divider"></li>
          <li><a ui-sref="addclass">Add Class</a></li>
        </ul>
0c65d0c07   Andrew Buss   try to fix behavi...
34
        <ul ng-show="UserService.isLoggedIn()" class="left hide-on-small-and-down">
397eaddf7   Masud Rahman   Drop down no long...
35
36
37
          <li><a style="font-size:20px; font-weight:700;" class="dropdown-button ng-cloak  hide-on-small-and-down"
                 href="#!" id="class-list"
                 data-activates="classDropdown" data-beloworigin="true">{{currentSection.id?currentSection.short_name:"Classes"}}<i
b12a56132   Andrew Buss   try to fix (hah) ...
38
                  class="mdi-navigation-arrow-drop-down right"></i></a></li>
0c65d0c07   Andrew Buss   try to fix behavi...
39
40
41
42
          <li ng-show="currentSection.id" ui-sref-active="active"><a ui-sref="feed({sectionId:currentSection.id})"
                                                                     class="tooltipped"
                                                                     data-position="bottom"
                                                                     data-delay="50" data-tooltip="Feed"><i
4c3a5e272   Andrew Buss   cleanup; redirect...
43
                  class="mdi-action-view-module"></i></a></li>
397eaddf7   Masud Rahman   Drop down no long...
44
          <li ng-show="currentSection.id" ui-sref-active="active" id="class-list"><a ui-sref="deck({sectionId:currentSection.id})"
0c65d0c07   Andrew Buss   try to fix behavi...
45
46
47
                                                                     class="tooltipped"
                                                                     data-position="bottom"
                                                                     data-delay="50" data-tooltip="Deck"><i
4c3a5e272   Andrew Buss   cleanup; redirect...
48
                  class="mdi-action-view-carousel"></i></a></li>
0c65d0c07   Andrew Buss   try to fix behavi...
49
50
51
52
          <li ng-show="currentSection.id" ui-sref-active="active"><a ui-sref="cardlist({sectionId:currentSection.id})"
                                                                     class="tooltipped"
                                                                     data-position="bottom"
                                                                     data-delay="50" data-tooltip="Card List"><i
4c3a5e272   Andrew Buss   cleanup; redirect...
53
54
55
                  class="mdi-action-view-list"></i></a></li>
        </ul>
        <a href="#" class="brand-logo center">Flashy</a>
bd83bd63c   Andrew Buss   tweaks
56
        <ul ng-show="UserService.isLoggedIn()" ng-cloak id="nav-mobile" class="right hide-on-small-and-down">
b12a56132   Andrew Buss   try to fix (hah) ...
57

107013870   Andrew Buss   ui tweaks, check ...
58
59
60
          <li ui-sref-active="active"><a ui-sref="study" class="tooltipped" data-position="bottom" data-delay="50"
                                         data-tooltip="Study">
            <i class="tiny mdi-action-pageview"></i></a></li>
b12a56132   Andrew Buss   try to fix (hah) ...
61
62
63
  
          <!-- Settings Dropdown -->
          <ul id="settingsDropdown" class="dropdown-content">
15b58ef63   Andrew Buss   just use two icon...
64

4c3a5e272   Andrew Buss   cleanup; redirect...
65
          </ul>
15b58ef63   Andrew Buss   just use two icon...
66

107013870   Andrew Buss   ui tweaks, check ...
67
68
69
          <li ui-sref-active="active"><a ui-sref="help"><i class="tiny mdi-action-help tooltipped"
                                                           data-position="bottom"
                                                           data-delay="50" data-tooltip="Help"></i></a></li>
15b58ef63   Andrew Buss   just use two icon...
70
71
72
          <li ui-sref-active="active"><a ui-sref="settings"><i data-position="bottom" data-delay="50"
                                                               data-tooltip="Settings"
                                                               class="mdi-action-settings tooltipped"></i></a></li>
a650201b9   Andrew Buss   don't trust the u...
73
          <li><a ng-click="logout()" ui-sref="login"><i data-position="bottom" data-delay="50" data-tooltip="Logout"
15b58ef63   Andrew Buss   just use two icon...
74
                                     class="mdi-content-forward tooltipped"></i></a></li>
b12a56132   Andrew Buss   try to fix (hah) ...
75

4c3a5e272   Andrew Buss   cleanup; redirect...
76
77
78
        </ul>
  
        <!-- Slide-in side-nav for small screens -->
b485ee35d   Andrew Buss   more tweaks
79
80
        <ul ng-show="UserService.isLoggedIn()" class="side-nav" id="mobile-demo">
          <span ng-show="currentSection.id">
b129e8afd   Rachel Lee   Remove empty tool...
81
            <li ui-sref-active="active"><a ui-sref="feed({sectionId:currentSection.id})">
107013870   Andrew Buss   ui tweaks, check ...
82
83
84
              <i class="mdi-action-view-module left"></i>
              Feed</a>
            </li>
b129e8afd   Rachel Lee   Remove empty tool...
85
            <li ui-sref-active="active"><a ui-sref="deck({sectionId:currentSection.id})">
107013870   Andrew Buss   ui tweaks, check ...
86
87
88
89
              <i class="mdi-action-view-carousel left"> </i>
              Deck
            </a>
            </li>
b129e8afd   Rachel Lee   Remove empty tool...
90
            <li ui-sref-active="active"><a ui-sref="cardlist({sectionId:currentSection.id})">
107013870   Andrew Buss   ui tweaks, check ...
91
92
93
              <i class="mdi-action-view-list left"></i>
              Card List
            </a>
35387f308   Andrew Buss   cleaned up userse...
94
95
96
            </li>
            <hr>
          </span>
4c3a5e272   Andrew Buss   cleanup; redirect...
97
          <!-- Collapsible menu for all the User's classes -->
397eaddf7   Masud Rahman   Drop down no long...
98
          <ul class="collapsible" data-collapsible="accordion" >
4c3a5e272   Andrew Buss   cleanup; redirect...
99
100
            <li class="bold">
              <a class="collapsible-header black-text">
107013870   Andrew Buss   ui tweaks, check ...
101
102
                Classes
                <i class="mdi-navigation-arrow-drop-down right"></i>
4c3a5e272   Andrew Buss   cleanup; redirect...
103
104
105
106
              </a>
            </li>
            <div class="collapsible-body" style="display: block">
              <ul>
b485ee35d   Andrew Buss   more tweaks
107
                <li ui-sref-active="active" ng-repeat="section in UserService.getUserData().sections">
c7a3eac3f   Andrew Buss   dynamic nav menu too
108
                  <a class="class bold" ui-sref="feed({sectionId:section.id})">{{section.short_name}}</a>
4c3a5e272   Andrew Buss   cleanup; redirect...
109
110
                </li>
                <hr>
44ba1fb7b   Kevin Mach   took out the anno...
111
                <li><a ui-sref="addclass"><i class="tiny mdi-content-add">Add Class</i></a></li>
4c3a5e272   Andrew Buss   cleanup; redirect...
112
113
114
115
              </ul>
            </div>
          </ul>
          <li><a ui-sref="study">Study</a></li>
b12a56132   Andrew Buss   try to fix (hah) ...
116
          <li><a ui-sref="settings">Settings</a></li>
a650201b9   Andrew Buss   don't trust the u...
117
          <li><a ng-click="logout()">Logout</a></li>
4c3a5e272   Andrew Buss   cleanup; redirect...
118
119
120
        </ul>
      </div>
    </nav>
4c1dc6dc9   Kevin Mach   first commit
121

0cb0637f2   Andrew Buss   refactored css, h...
122
  </header>
c7a3eac3f   Andrew Buss   dynamic nav menu too
123

e1f309a87   Rohan Rangray   Implemented the D...
124

473d94a92   Andrew Buss   restyle things to...
125
  <!-- Menu Bar -->
9436dc71d   Andrew Buss   remove footer; mo...
126
  <main ui-view></main>
653572099   Kevin Mach   footer is now on ...
127

9436dc71d   Andrew Buss   remove footer; mo...
128
129
130
131
132
133
134
  <!--<footer class="page-footer">-->
  <!--<div class="footer-copyright">-->
  <!--<div class="container">-->
  <!--&copy; 2015 Team Swag-->
  <!--<a class="grey-text text-lighten-4 right" id="contact" href="mailto:halp@flashy.cards">Concerns? Contact us by-->
  <!--email!</a>-->
  <!--</div>-->
b12a56132   Andrew Buss   try to fix (hah) ...
135

9436dc71d   Andrew Buss   remove footer; mo...
136
137
  <!--</div>-->
  <!--</footer>-->
653572099   Kevin Mach   footer is now on ...
138

0cb0637f2   Andrew Buss   refactored css, h...
139
  </body>
80d1e57aa   Andrew Buss   materialized thin...
140
141
142
143
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.14/angular-ui-router.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-cookies.js"></script>
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
807399a02   Andrew Buss   push dialog hopef...
144
  <script type="text/javascript" src="scripts/materialize.js"></script>
240d23139   Masud Rahman   Edited sidebar bu...
145
  <script type="text/javascript" src="scripts/jquery.collapsible.js"></script>
a2c4eb4fd   Melody   Added Angular Mat...
146
147
148
  <script src="https://ajax.googleapis.com/ajax/libs/angular_material/0.9.0/angular-material.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script>
20f4dcac7   Andrew Buss   class name at top...
149
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-resource.min.js"></script>
ee30a48eb   Andrew Buss   further refactori...
150
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-sanitize.js"></script>
6b261ad25   Andrew Buss   don't require log...
151
152
  <script src="static/js/angular-websocket.js"></script>
  <script src="static/js/angular-contenteditable.js"></script>
54c942ddf   Andrew Buss   recovered cardlis...
153
  <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-filter/0.5.4/angular-filter.js"></script>
72759f12a   Masud Rahman   Fixed home.html
154

0b8d7cf4b   Andrew Buss   Moving towards a ...
155
  <script src="config.js"></script>
72759f12a   Masud Rahman   Fixed home.html
156

140291561   Andrew Buss   EMMM VEEEE SEEEE
157
  <script src="scripts/FlashcardFactory.js"></script>
70c2390ab   Andrew Buss   unbreak deck, car...
158
  <script src="scripts/DeckFactory.js"></script>
140291561   Andrew Buss   EMMM VEEEE SEEEE
159

8e8058a82   Rachel Lee   Working on flashc...
160
  <!-- Controllers -->
72759f12a   Masud Rahman   Fixed home.html
161
  <script src="scripts/FeedController.js"></script>
80d1e57aa   Andrew Buss   materialized thin...
162
  <script src="scripts/RootController.js"></script>
032de657c   Kevin Mach   added settings pa...
163
  <script src="scripts/SettingsController.js"></script>
72759f12a   Masud Rahman   Fixed home.html
164
  <script src="scripts/LoginController.js"></script>
3c4c48c96   Kevin Mach   removed errors fo...
165
  <script src="scripts/DeckController.js"></script>
4fc1728b4   Tetranoir   added requestpass...
166
  <script src="scripts/RequestResetController.js"></script>
bbba33088   Andrew Buss   Added addclass st...
167
  <script src="scripts/ClassAddController.js"></script>
e3ac98c22   Rachel Lee   fixed review -> s...
168
  <script src="scripts/StudyController.js"></script>
e2db4a265   Andrew Buss   class add functio...
169
  <script src="scripts/ResetPasswordController.js"></script>
54c942ddf   Andrew Buss   recovered cardlis...
170
  <script src="scripts/CardListController.js"></script>
403520b52   Tetranoir   added verify email
171
  <script src="scripts/VerifyEmailController.js"></script>
b12a56132   Andrew Buss   try to fix (hah) ...
172
  <script src="scripts/HelpController.js"></script>
c3350cb1f   Andrew Buss   refactor common f...
173
  <script src="scripts/CardGridController.js"></script>
8e8058a82   Rachel Lee   Working on flashc...
174
175
  
  <!-- Services -->
80d1e57aa   Andrew Buss   materialized thin...
176
  <script src="scripts/UserService.js"></script>
8e8058a82   Rachel Lee   Working on flashc...
177
178
179
180
181
  
  <!-- Directives -->
  <script src="scripts/FlashcardDirective.js"></script>
  
  <!-- Other -->
742c7cd5f   Andrew Buss   'fixed' autocompl...
182
  <!--<script src="scripts/StudyController.js"></script>-->
e2db4a265   Andrew Buss   class add functio...
183

4c1dc6dc9   Kevin Mach   first commit
184

e18daa4a6   Rachel Lee   Formatting home a...
185
  </html>