-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (87 loc) · 3.97 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<html>
<head>
<title id="titleHead">Dilatação do tempo</title>
<link rel="icon" href="img/relogio.png" type="image/x-icon">
<meta name="description" content="Aplicação prática da Dilatação do Tempo prevista na Teoria da Relatividade de Einstein">
<meta name="keywords" content="dilatação do tempo,teoria da relatividade,relatividade,dilatação,tempo">
<meta name="author" content="Nathan Manera Magalhães">
<meta name="viewport"
content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height">
<meta http-equiv="content-language" content="pt-br">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->
<script src="javascript/bootstrap.min.js"></script>
<!-- <script src="https://code.angularjs.org/1.6.6/angular.min.js"></script> -->
<script src="javascript/angular.min.js"></script>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> -->
<script src="javascript/jquery.min.js"></script>
<link rel="stylesheet" href="css/estilo.css">
<script src="javascript/index.js"></script>
</head>
<body ng-app="tempoDilata" ng-controller="TempoCtrl">
<div class="row">
<div class="col col-lg-12 zero">
<div class="col col-lg-6 zero">
<div class="row zero">
<div class="col col-lg-12 bg-info">
<center>
<button class="btn btn-default" type="button" ng-click="setLang('pt')">Português</button>
<button class="btn btn-default" type="button" ng-click="setLang('en')">English</button>
<button class="btn btn-default" type="button" ng-click="setLang('fr')">Français</button>
</center>
</div>
</div>
<div class="row zero">
<div class="col col-lg-12 zero">
<div class="col col-lg-6 bg-info metade">
<label for="vel">{{lang.v}} (m/s)</label>
<input class="form-control" ng-change="zerar()" type="text" ng-model="v" id="vel" />
<input class="slider" type="range" name="velocidade" min="0" max="{{c}}" step="1"
ng-init="v = 0" ng-model="v" />
<br />
<p>{{lang.v}}: <b>{{getVR(false, v) | number:2}}c</b></p>
<p><b>{{formatarNumero(v)}} m/s</b></p>
<p><b>{{formatarNumero(v * 3.6)}} km/h</b></p>
<p><b>{{getVR(true, v)}}%</b> {{lang.vl}}</p>
</div>
<div class="col col-lg-6 bg-info metade">
<label for="al">{{lang.d}} ({{lang.al}})</label>
<input class="form-control" ng-change="zerar()" type="text" ng-model="d" id="al" />
<input class="slider" type="range" name="distancia" min="0" max="10" step="0.01"
ng-init="d = 1" ng-model="d" />
<br />
<p>{{lang.dv}}:</p>
<p><b>{{d}} {{lang.al}}</b></p>
<p><b>{{formatarNumero(getD(d) / 1000)}} km</b></p>
<p><b>{{formatarNumero(getUA(d))}} <span title="{{lang.UA}}">{{lang.ua}}<span></b></p>
</div>
</div>
</div>
</div>
<div class="col col-lg-6 zero">
<div class="row zero">
<div class="col col-lg-12 bg-info">
<p>{{lang.trv}}: <img src="img/deltaTlinha.png" style="width:9.5vmin; height:auto"></p>
<p><b>{{formatarTempo(getTT(d, v))}}</b></p>
<br />
<p>{{lang.tvv}}: <img src="img/deltaT.png" style="width:8.5vmin; height:auto"></p>
<p><b>{{formatarTempo(getTV(d, v))}}</b></p>
<br />
<p>{{lang.dt}}: <img src="img/dilatacaoTempo.png" style="width:30vmin; height:auto"></p>
<p><b>{{formatarTempo(tempoDilatado(d, v))}}</b></p>
</div>
</div>
<div class="row zero">
<div class="col col-lg-12 bg-info">
<center>{{lang.fl}}: <b>{{getFL(v)}}</b></center>
<center><img src="img/fatorLorentz.png" class="img-responsive"
style="width:40vmin; height:auto"></center>
</div>
</div>
</div>
</div>
</div>
</body>
</html>