-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (83 loc) · 4.64 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
<!DOCTYPE html>
<!--ng-app : Directive to auto-bootstrap angular application -->
<html lang="es" ng-app="application">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Angular App</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- AngularJs core -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular.js"></script>
<!-- resource module -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular-resource.js"></script>
<!-- animation module -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular-animate.js"></script>
<!-- ui-router module: SPA advanced routing framework. SPAs with hierarchical tree of states -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.3.1/angular-ui-router.js"></script>
<!-- main module -->
<script type="text/javascript" src="app/application.js"></script>
<!-- Folder structure according to concerns -->
<!-- Post scripts -->
<script type="text/javascript" src="app/post/Posts.js"></script>
<script type="text/javascript" src="app/post/PostsCtrl.js"></script>
<script type="text/javascript" src="app/post/PostItemCtrl.js"></script>
<!-- photo scripts -->
<script type="text/javascript" src="app/photos/PhotoCtrl.js"></script>
<script type="text/javascript" src="app/photos/photoService.js"></script>
<!-- Repository scripts -->
<script type="text/javascript" src="app/repository/RepositoryListCtrl.js"></script>
<script type="text/javascript" src="app/repository/repositoryService.js"></script>
<!-- common functions and utilities -->
<!-- static values -->
<script type="text/javascript" src="app/shared/constants.js"></script>
<!-- directive -->
<script type="text/javascript" src="app/shared/progressbar/progressbar.js"></script>
<!-- special functions: http interceptor -->
<script type="text/javascript" src="app/shared/interceptors.js"></script>
</head>
<body>
<!-- custom directive in action -->
<div class="modal fade" tabindex="-1" role="dialog" progressbar></div>
<div class="container-fluid">
<!-- navigation bar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<!-- button for small devices -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Demo - Angular app</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<!-- responsive menu -->
<ul class="nav navbar-nav">
<!-- ui-sref-active adds a css class when element is selected -->
<!-- ui-sref sets the route -->
<li ui-sref-active="active"><a ui-sref="posts">posts</a></li>
<li ui-sref-active="active"><a ui-sref="photos">Photos</a></li>
<li ui-sref-active="active"><a ui-sref="repositories">Repositories</a></li>
</ul>
</div>
</div>
</nav>
<div class="row-fluid">
<!-- ui-view is an ui.router attribute that defines the place where routes or states will be placed -->
<div class="col-sm-12 col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2" ui-view autoscroll="true">
<!-- This content will be "replaced" when a state is active -->
<h1 class="page-header">Dashboard</h1>
</div>
</div>
</div>
</body>
</html>