-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (111 loc) · 4.3 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Kovaak's Converter</title>
<link rel="stylesheet" href="style.css">
</head>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.7/ScrollMagic.min.js"></script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script type="text/javascript">
// Load Particles
particlesJS.load('particles-js', 'particles.json', function(){
console.log('particles.json loaded...');
});
// The sumSens() function is used to calculate the
// new kovaaks sensetivity
function sumSens() {
// Get all the provided inputs
let vHSens = document.getElementById('vHSens').value;
let ADS_Sens = document.getElementById('ADS_Sens').value;
let ADSMult = document.getElementById('ADSMult').value;
let result = parseFloat(ADS_Sens) * parseFloat(ADSMult) * 0.6 * parseFloat(vHSens);
// Set the kovaaks sensetivity element
if (!isNaN(result)) {
document.getElementById('kovaaksSensResult').value = result;
}
}
// The sumFOV() function is used to calculate the
// new kovaaks field of view
function sumFOV() {
let R6FOV = document.getElementById('R6FOV').value;
let opticMult = document.getElementById('opticMult').value;
let result = parseFloat(R6FOV) * parseFloat(opticMult);
if (!isNaN(result)) {
document.getElementById('kovaaksFOV').value = result;
}
}
</script>
<!-- Body-->
<body>
<div id="particles-js"></div>
<a href="" class="R6Header">Rainbow Six Siege</a>
<!-- First Container (Left Side) -->
<div class="container">
<h2>Kovaak's Sensitivity Converter</h2>
<!-- Vertical / Horizontal Sensetivity Input -->
<form>
<div class="inputfield">
<input type="text" id="vHSens" required="" onkeyup="sumSens()">
<label>Vertical / Horizontal Sensetivity</label>
<span></span>
</div>
</form>
<!-- ADS Sensetivity Input -->
<form>
<div class="inputfield">
<input type="text" id="ADS_Sens" required="" onkeyup="sumSens()">
<label>ADS Sensetivity</label>
<span></span>
</div>
</form>
<!-- ADS Multiplier Input -->
<form>
<div class="inputfield">
<input type="text" id="ADSMult" required="" onkeyup="sumSens()">
<label>ADS Multiplier</label>
<span></span>
</div>
</form>
<!-- Kovaak's Sensetivity Result -->
<form>
<div class="inputfield">
<input type="text" id="kovaaksSensResult" required="">
<label>Kovaak's Sensetivity</label>
<span></span>
</div>
</form>
</div>
<!-- Second Container (Right Side) -->
<div class="container2">
<h2>Kovaak's FOV Converter</h2>
<!-- Rainbow Six Siege FOV Input -->
<form>
<div class="inputfield">
<input type="text" id="R6FOV" required="" onkeyup="sumFOV()">
<label>Rainbow Six Siege FOV</label>
<span></span>
</div>
</form>
<!-- Optic Multiplier Input -->
<form>
<div class="inputfield">
<input type="text" id="opticMult" required="" onkeyup="sumFOV()">
<label>Optic Multiplier (Default: 0.9)</label>
<span></span>
</div>
</form>
<!-- Kovaak's FOV Result -->
<form>
<div class="inputfield">
<input type="text" id="kovaaksFOV" required="" >
<label>Kovaak's FOV</label>
<span></span>
</div>
</form>
</body>
</html>