|
1 | | -angular.module( 'myApp' ).directive( 'mountainDirective', function (mountainSvc) { |
| 1 | +angular.module( 'myApp' ).directive( 'mountainDirective', function ( mountainSvc ) { |
2 | 2 | var dirDefinition = { |
3 | 3 | restrict: 'E', |
4 | 4 | templateUrl: './html/mountain/mountainTemplate.html', |
@@ -387,23 +387,24 @@ angular.module( 'myApp' ).directive( 'mountainDirective', function (mountainSvc) |
387 | 387 |
|
388 | 388 | // spawn the actual climber pieces that make up one climber |
389 | 389 | node.appendChild( clmbr1 ); |
390 | | - /* |
391 | | - progress.lessons = [ {lesson obj1: name, score}, ] |
392 | | -
|
393 | | -
|
394 | 390 | } |
395 | 391 |
|
396 | | - scope.advanceClimber = function(){ |
397 | | -
|
398 | | - // move the climber based on progress |
399 | | - const newZ = ( 220 + ( Math.floor( Math.floor( 10 - ( 100 * y ) ) / 10 ) ) ); |
400 | | - var climberZ = ( newZ + 20 ); |
401 | | - var clmbr1 = document.createElement( 'i' ); |
402 | | - clmbr1.style.width = '50px'; |
403 | | - clmbr1.style.height = '50px'; |
404 | | - node.appendChild( clmbr1 ); |
405 | | - } |
406 | | - */ |
| 392 | + /* |
| 393 | + progress.lessons = [ {lesson obj1: name, score}, ] |
| 394 | + */ |
| 395 | + |
| 396 | + /* |
| 397 | + scope.advanceClimber = function(){ |
| 398 | +
|
| 399 | + // move the climber based on progress |
| 400 | + const newZ = ( 220 + ( Math.floor( Math.floor( 10 - ( 100 * y ) ) / 10 ) ) ); |
| 401 | + var climberZ = ( newZ + 20 ); |
| 402 | + var clmbr1 = document.createElement( 'i' ); |
| 403 | + clmbr1.style.width = '50px'; |
| 404 | + clmbr1.style.height = '50px'; |
| 405 | + node.appendChild( clmbr1 ); |
| 406 | + } |
| 407 | + */ |
407 | 408 |
|
408 | 409 | ////////////////////////////////// |
409 | 410 | // <------ Mountain ------> // |
|
0 commit comments