1
1
<!DOCTYPE html>
2
- < html >
2
+ < html lang =" en " >
3
3
4
4
< head >
5
5
< meta charset ="utf-8 " />
6
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
7
7
< title > Angular Gridster</ title >
8
- < meta name ="description " content ="" />
8
+ < meta name ="description " content ="Angular Gridster " />
9
9
< meta name ="viewport " content ="width=device-width " />
10
10
11
- < link href ="https://cdnjs.cloudflare .com/ajax/libs/twitter- bootstrap/3.0.3 /css/bootstrap.css " rel =" stylesheet ">
11
+ < link rel =" stylesheet " href ="https://cdn.bootcss .com/bootstrap/3.3.7 /css/bootstrap.css ">
12
12
< link rel ="stylesheet " href ="dist/angular-gridster.min.css " />
13
13
< link rel ="stylesheet " href ="demo/common/style.css " />
14
14
15
- < script src ="https://ajax.googleapis .com/ajax/libs/angularjs/1.3.15 /angular.js "> </ script >
16
- < script src ="https://code.angularjs.org/1.2.15 /angular-route.min .js "> </ script >
17
- < script src ="https://cdnjs.cloudflare .com/ajax/libs/ angular-ui-bootstrap/0.10 .0/ui-bootstrap-tpls.min .js "> </ script >
15
+ < script src ="https://cdn.bootcss .com/angular.js/1.6.10 /angular.js "> </ script >
16
+ < script src ="https://cdn.bootcss.com/angular.js/1.6.10 /angular-route.js "> </ script >
17
+ < script src ="https://cdn.bootcss .com/angular-ui-bootstrap/2.5 .0/ui-bootstrap-tpls.js "> </ script >
18
18
19
19
< script src ="src/angular-gridster.js "> </ script >
20
20
21
- < script type ="text/javascript ">
22
- ( function ( ) {
23
- angular . module ( 'app' , [ 'gridster' , 'ui.bootstrap' , 'ngRoute' ] )
24
- . config ( [ '$routeProvider' ,
25
- function ( $routeProvider ) {
26
- $routeProvider
27
- . when ( '/main' , {
28
- templateUrl : 'demo/main/view.html' ,
29
- controller : 'MainCtrl'
30
- } )
31
- . when ( '/dashboard' , {
32
- templateUrl : 'demo/dashboard/view.html' ,
33
- controller : 'DashboardCtrl'
34
- } )
35
- . otherwise ( {
36
- redirectTo : '/main'
37
- } ) ;
38
- }
39
- ] )
40
- . controller ( 'RootCtrl' , function ( $scope ) {
41
- $scope . $on ( '$locationChangeStart' , function ( e , next , current ) {
42
- $scope . page = next . split ( '/' ) . splice ( - 1 ) ;
43
- $scope . styleUrl = 'demo/' + $scope . page + '/style.css'
44
- } ) ;
45
- } ) ;
46
- } ) ( ) ;
47
- </ script >
21
+ < script type ="text/javascript " src ="demo/common/script.js "> </ script >
48
22
49
23
< script src ="demo/main/script.js "> </ script >
50
24
< script src ="demo/dashboard/script.js "> </ script >
59
33
< a class ="navbar-brand " href ="# "> Angular Gridster</ a >
60
34
</ div >
61
35
< ul class ="nav navbar-nav navbar-right ">
62
- < li ng-class ="{active: page == 'main'} "> < a href ="#/main "> Main Demo</ a >
36
+ < li ng-class ="{active: page == 'main'} "> < a href ="#! /main "> Main Demo</ a >
63
37
</ li >
64
- < li ng-class ="{active: page == 'dashboard'} "> < a href ="#/dashboard "> Dashboard Demo</ a >
38
+ < li ng-class ="{active: page == 'dashboard'} "> < a href ="#! /dashboard "> Dashboard Demo</ a >
65
39
</ li >
66
40
< li > < a > |</ a >
67
41
</ li >
76
50
</ div >
77
51
</ body >
78
52
79
- </ html >
53
+ </ html >
0 commit comments