Advertisement
Raul_julian

cfo.html

Dec 17th, 2015
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html ng-app="cfoApp">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <title></title>
  6.     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.0/angular.min.js">
  7.  
  8.     </script>
  9.     <script type="text/javascript">
  10.       var app = angular.module("cfoApp", []);
  11.       app.controller("cfoController", function($scope) {
  12.         console.log("oi");
  13.       });
  14.     </script>
  15.   </head>
  16.   <body ng-controller="cfoController">
  17.     <input ng-model="mat" type="number" name="name" value="0" placeholder="Matemática"><br />
  18.     <input ng-model="port" type="number" name="name" value="0" placeholder="Português"><br />
  19.     <input ng-model="lit" type="number" name="name" value="0" placeholder="Literatura"><br />
  20.     <input ng-model="geo" type="number" name="name" value="0" placeholder="Geografia"><br />
  21.     <input ng-model="hist" type="number" name="name" value="0" placeholder="História"><br />
  22.     <input ng-model="dir" type="number" name="name" value="0" placeholder="Direitos Humanos"><br />
  23.     <input ng-model="qui" type="number" name="name" value="0" placeholder="Química"><br />
  24.     <input ng-model="bio" type="number" name="name" value="0" placeholder="Biologia"><br />
  25.     <input ng-model="fis" type="number" name="name" value="0" placeholder="Física"><br />
  26.     <input ng-model="fl" type="number" name="name" value="0" placeholder="foreign language"><br />
  27.     <input ng-model="red" type="number" name="name" value="0" placeholder="Nota da Redação"><br />
  28.  
  29.  
  30.     Result:
  31.     <span ng-init="0">{{(((mat * 3) + (port * 3) + (lit) + (geo) + (hist) + (dir * 2) + (qui * 3) + (bio * 2) + (fis * 3) + (fl)) / 20 * 2 + red)}}</span>
  32.     <br>Número de acertos:
  33.     <span>{{ mat + port + lit + geo + hist + dir + qui + bio + fis + fl}}</span>
  34.   </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement