File tree Expand file tree Collapse file tree 5 files changed +41
-35
lines changed Expand file tree Collapse file tree 5 files changed +41
-35
lines changed Original file line number Diff line number Diff line change 1- body {
2-     margin :  0  auto;
3-     width :  500px  ;
4- }
5- 
61li .result {
72    width :  300px  ;
83}
94
105.green {
11-     background-color :  green ;
6+     background-color :  # dff0d8 
127}
138
149.red {
15-     background-color :  red ;
10+     background-color :  # f2dede 
1611}
Original file line number Diff line number Diff line change 11<!DOCTYPE html>  
22< html  ng-app ="typeCoercion "> 
33< head > 
4-      < title > AngularJS Intensiv Workshop -  Type Coercion</ title > 
4+   < title > Type Coercion by AngularJS.DE </ title > 
55</ head > 
66
77< link  href ="bower_components/bootstrap/docs/assets/css/bootstrap.css " media ="all " rel ="stylesheet " type ="text/css "> 
1010< link  href ="css/tasks.css " media ="all " rel ="stylesheet " type ="text/css "> 
1111< body > 
1212
13+ < div  class ="container "> 
14+   < h1  class ="page-header "> Tasks: Type Coercion</ h1 > 
15+   < main  ng-view > </ main > 
1316
14- < h1 > Aufgaben zu Type Coercion</ h1 > 
15- < main  ng-view > </ main > 
17+ </ div > 
1618
1719< script  src ="bower_components/google-code-prettify/src/prettify.js "> </ script > 
1820
Original file line number Diff line number Diff line change 11< h2 > 
2-     Aufgabenbeschreibung 
2+   Description 
33</ h2 > 
44
5- < a  href ="#/1 "> Los gehts </ a > 
5+ < a  href ="#/1 "  class =" btn btn-info " > Start </ a > 
Original file line number Diff line number Diff line change 1- < h2 > 
2-     Summary
3- </ h2 > 
4- < ul > 
5-     < li  class ="result " ng-class ="{'red': (task | eval) != results[$index], 'green':(task | eval) == results[$index] } " ng-repeat ="task in tasks "> 
6-         < span  ng-bind ="task "> </ span > 
7-         Antwort: < span  ng-bind ="results[$index] "> </ span > 
8-         < span > Korrekt : {{ task | eval }}</ span > 
9-     </ li > 
10- </ ul > 
1+ < h2 > Result</ h2 > 
112
3+ 
4+ < table  class ="table "> 
5+   < tr > 
6+     < th > Task</ th > 
7+     < th > Your Answer</ th > 
8+     < th > Correct Answer</ th > 
9+   </ tr > 
10+   < tr  class ="result " ng-class ="{'red': (task | eval) != results[$index], 'success':(task | eval) == results[$index] } " ng-repeat ="task in tasks "> 
11+ 
12+     < td  ng-bind ="task "> </ td > 
13+     < td  ng-bind ="results[$index] "> </ td > 
14+     < td  ng-bind ="task | eval "> </ td > 
15+   </ tr > 
16+ 
17+ </ table > 
Original file line number Diff line number Diff line change 1- < section > 
1+ < p > 
2+   Task
3+   < span  class ="taskId " ng-bind ="taskId "> </ span > 
4+   of
5+   < span  class ="sumTasks " ng-bind ="sumTasks "> </ span > 
6+ </ p > 
7+ 
8+ < progress  percent ="(taskId / sumTasks)*100 " class ="progress-success active "> </ progress > 
9+ 
10+ < hr > 
211
3-     < button  class ="btn btn-success " value ="true " ng-click ="saveResult('true') "> True</ button > 
4-     < button  class ="btn btn-danger " value ="false " ng-click ="saveResult('false') "> False</ button > 
5-     < pre  class ="prettyprint linenums lang-js " ng-bind ="task "> </ pre > 
6- 
7- </ section > 
8- < footer > 
9-     Aufgabe
10-     < span  class ="taskId " ng-bind ="taskId "> </ span > 
11-     von
12-     < span  class ="sumTasks " ng-bind ="sumTasks "> </ span > 
13-     < progress  percent ="(taskId / sumTasks)*100 " class ="progress-success active "> </ progress > 
14- </ footer > 
12+ < pre  class ="prettyprint linenums lang-js " ng-bind ="task "> </ pre > 
13+ 
14+ < section > 
15+   < button  class ="btn btn-success " value ="true " ng-click ="saveResult('true') "> True</ button > 
16+   < button  class ="btn btn-danger " value ="false " ng-click ="saveResult('false') "> False</ button > 
17+ </ section > 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments