4
4
< link rel ="stylesheet " href ="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css " />
5
5
< link rel ="stylesheet " href ="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css " />
6
6
< link rel ="stylesheet " href ="http://node-os.com/css/default.css " />
7
- <!-- START: ANGULAR DEPENDENCY -->
8
- < script type ="text/javascript " src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js "> </ script >
9
- < script type ="text/javascript " src ="/blog/api.js " > </ script >
7
+ < script type ="text/javascript " src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js "> </ script >
8
+ < script type ="text/javascript " src ="api.min.js " > </ script >
10
9
< style >
11
10
# articles img {max-width : 100% }
12
11
</ style >
13
- <!-- END: ANGULAR DEPENDENCY -->
14
12
</ head >
15
13
< body >
16
14
< header class ="navbar navbar-default navbar-fixed-top " role ="navigation ">
@@ -58,18 +56,13 @@ <h3 class="title">{{error.name}}</h3>
58
56
< div class ="col-sm-8 col-sm-offset-2 ">
59
57
< header class ="{{item.state}} ">
60
58
< h3 class ="title ">
61
- < a href ="http://node-os.com/blog/ article#{{item.number}} ">
59
+ < a href ="article.html #{{item.number}} ">
62
60
{{item.title}}
63
61
</ a >
64
62
</ h3 >
65
63
< a href ="{{item.html_url}} "> View on Github</ a >
66
64
</ header >
67
65
< div class ="content " ng-bind-html ="item.bodyHTML | to_trusted "> </ div >
68
- < footer >
69
- < a href ="http://node-os.com/blog/{{item.number}} " class ="comments ">
70
- There are {{item.comments}} comments.
71
- </ a >
72
- </ footer >
73
66
</ div >
74
67
</ article >
75
68
</ div >
@@ -129,6 +122,8 @@ <h3 class="footer-title">Share</h3>
129
122
</ div >
130
123
</ footer >
131
124
125
+ < script type ="text/javascript " src ="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js "> </ script >
126
+ < script type ="text/javascript " src ="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js " > </ script >
132
127
<!-- START: BIND DATA TO VIEW -->
133
128
< script type ="text/javascript ">
134
129
@@ -174,7 +169,7 @@ <h3 class="footer-title">Share</h3>
174
169
document . querySelector ( ".four-zero-three .content" ) . innerHTML ( "You've authenticated!" ) ;
175
170
} ) ;
176
171
} ) ;
177
- var hash = url . parse ( document . location ) . hash ;
172
+ var hash = document . location . toString ( ) . split ( "#" ) [ 1 ] ;
178
173
NodeOsBlog . controller ( 'BlogSingleCtrl' , function ( $scope , $http ) {
179
174
$scope . uriPath = "/NodeOS/NodeOS/issues/" + hash ;
180
175
$scope . blog = [ ] ;
@@ -214,7 +209,7 @@ <h3 class="footer-title">Share</h3>
214
209
}
215
210
} ) ;
216
211
} ) ;
217
- NodeOsBlog . controller ( 'BlogListCtrl ' , function ( $scope , $http ) {
212
+ NodeOsBlog . controller ( 'CommentListCtrl ' , function ( $scope , $http ) {
218
213
$scope . uriPath = "/NodeOS/NodeOS/issues/" + hash + "/comments" ;
219
214
$scope . blog = [ ] ;
220
215
$scope . parseMarkdown = function ( item , next ) {
@@ -257,6 +252,5 @@ <h3 class="footer-title">Share</h3>
257
252
} ) ;
258
253
</ script >
259
254
<!-- END: BIND DATA TO VIEW -->
260
- < script type ="text/javascript " src ="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js " > </ script >
261
255
</ body >
262
256
</ html >
0 commit comments