11<!DOCTYPE html>
2- < html >
2+ < html lang =" en " >
33
44< head >
55 < meta charset ="utf-8 " />
66 < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
77 < title > Angular Gridster</ title >
8- < meta name ="description " content ="" />
8+ < meta name ="description " content ="Angular Gridster " />
99 < meta name ="viewport " content ="width=device-width " />
1010
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 ">
1212 < link rel ="stylesheet " href ="dist/angular-gridster.min.css " />
1313 < link rel ="stylesheet " href ="demo/common/style.css " />
1414
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 >
1818
1919 < script src ="src/angular-gridster.js "> </ script >
2020
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 >
4822
4923 < script src ="demo/main/script.js "> </ script >
5024 < script src ="demo/dashboard/script.js "> </ script >
5933 < a class ="navbar-brand " href ="# "> Angular Gridster</ a >
6034 </ div >
6135 < 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 >
6337 </ 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 >
6539 </ li >
6640 < li > < a > |</ a >
6741 </ li >
7650 </ div >
7751</ body >
7852
79- </ html >
53+ </ html >
0 commit comments