File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 < style type ="text/css ">
1111
12- /* Add "click" styles because newer releases in AngularJS don't seem to add the HREF value. */
12+ /* Add "click" styles because newer releases of AngularJS don't seem to add the HREF value. */
1313 a [ ng-click ] {
1414 cursor : pointer ;
1515 text-decoration : underline ;
@@ -141,12 +141,12 @@ <h1>
141141
142142 var now = ( new Date ( ) ) . getTime ( ) ;
143143
144- // Update the "?v=" value of each photo .
144+ // Update all SRC attribute to point to "1.jpg" .
145145 for ( var i = 0 ; i < $scope . photos . length ; i ++ ) {
146146
147147 var photo = $scope . photos [ i ] ;
148148
149- photo . src = photo . src . replace ( / \d + $ / , now ) ;
149+ photo . src = photo . src . replace ( / \d \. / i , "1." ) ;
150150
151151 }
152152
@@ -346,6 +346,10 @@ <h1>
346346 // be rendered.
347347 function checkImages ( ) {
348348
349+ // Log here so we can see how often this
350+ // gets called during page activity.
351+ console . log ( "Checking for visible images..." ) ;
352+
349353 var visible = [ ] ;
350354 var hidden = [ ] ;
351355
You can’t perform that action at this time.
0 commit comments