-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (55 loc) · 3.1 KB
/
index.html
File metadata and controls
78 lines (55 loc) · 3.1 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>SIMPLEX</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/bootstrap/compiler/style.css">
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/estilo.css">
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="wrapper fadeInDown">
<div id="formContent">
<div class="fadeIn first">
<h5>SIMPLEX PO20 - DLLN</h5>
</div>
<!-- Campo da Variavel -->
<input type="text" id="qtd_var" name="" class="form-control" placeholder="Numero de Variáveis de Decisão"></di>
<input type="text" id="qtd_res" name="" class="form-control" placeholder="Numero de Restrições">
<input type="text" id="qtd_it" name="" class="form-control" placeholder="Numero de Interações">
<div class="custom-control custom-radio custom-control-inline">
<input type="button" id="min" class="fadeIn fourth" value="MINIMIZAR" onclick="">
<input type="button" id="max" class="fadeIn fourth" value="MAXIMIZAR" onclick="" style="background-color: blueviolet;">
</div>
<script type="text/javascript">
window.addEventListener("load", function(event) {
var btnMax = document.querySelector('#max');
var btnMin = document.querySelector('#min');
var variables = document.querySelector('#qtd_var');
var restrictions = document.querySelector('#qtd_res');
var iterations = document.querySelector('#qtd_it')
btnMax.addEventListener("click", function(event) {
window.localStorage.setItem("variables", variables.value);
window.localStorage.setItem("restrictions", restrictions.value);
window.localStorage.setItem("iterations", iterations.value);
window.location.href = "maximizar.html";
window.localStorage.setItem('option', 'MAX');
});
btnMin.addEventListener("click", function(event) {
window.localStorage.setItem("variables", variables.value);
window.localStorage.setItem("restrictions", restrictions.value);
window.localStorage.setItem("iterations", iterations.value);
window.location.href = "maximizar.html";
window.localStorage.setItem('option', 'MIN');
});
});
</script>
</div>
</div>
</body>
</html>