-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (69 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>豆瓣一刻</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<!--build:css ./public/css/main.css -->
<link rel="stylesheet/less" href="./public/less/main.less">
<!-- endbuild -->
<!-- build:remove -->
<!-- 引入less.js可以直接修改less并渲染css 必须在服务器环境下-->
<script src="./public/libs/less.js"></script>
<!-- endbuild -->
</head>
<body ng-app="Yike">
<div class="viewport">
<!-- 侧边导航 -->
<div ng-class="{navs: true, collapse: collapsed}" ng-controller="NavController">
<dl>
<dt class="login">
<div class="avatar">
<img src="./public/images/avatar.png" alt="">
</div>
<span>登录</span>
</dt>
<dd ng-class="{active: index == key}" ng-repeat="(key, nav) in navs">
<a href="{{nav.link}}" ng-click="toggle()" class="{{nav.icon}}">
<span>{{nav.text}}</span>
</a>
</dd>
</dl>
<div class="extra">
<a href="javascript:;" class="icon-image">夜晚</a>
<a href="javascript:;" class="icon-download">离线</a>
</div>
</div>
<div class="container">
<!-- 头部 -->
<div ng-class="{header: true, collapse: collapsed}">
<a href="javascript:;" ng-click="toggle()" class="menu icon-menu"></a>
<h2>{{title}}</h2>
<a href="javascript:;" class="search icon-search"></a>
</div>
<!-- 主体 -->
<div ng-class="{body: true, collapse: collapsed}">
<div loading class="loading" ng-hide="loaded" src="./public/images/loading.gif"></div>
<!-- 占位符 -->
<div ng-view></div>
</div>
</div>
</div>
<!-- build:remove -->
<!-- <script src="./public/libs/toggle.js"></script> -->
<!-- endbuild -->
<!-- build:js ./libs/angular.min.js -->
<script src="./bower_components/angular/angular.js"></script>
<script src="./bower_components/angular-route/angular-route.js"></script>
<!-- endbuild -->
<!-- build:js ./scripts/app.js -->
<!-- AngularJS入口 -->
<script src="./scripts/app.js"></script>
<!-- 控制器模块 -->
<script src="./scripts/controllers.js"></script>
<!-- 指令模块 -->
<script src="./scripts/directives.js"></script>
<!--endbuild -->
</body>
</html>