-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblisytv2.html
More file actions
192 lines (169 loc) · 5.55 KB
/
blisytv2.html
File metadata and controls
192 lines (169 loc) · 5.55 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<head>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<title>
Blisy RNG Guides
</title>
<link rel="stylesheet" type="text/css" href="style.css" title="default" />
<link rel="alternate stylesheet" type="text/css" href="nightmode.css" title="alternate"/>
<link rel="alternate stylesheet" type="text/css" href="dnd.css" title="dnd"/>
<script type="text/javascript" src="style.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<script>
function includeHTML() {
var z, i, elmnt, file, xhttp;
/*loop through a collection of all HTML elements:*/
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
/*search for elements with a certain atrribute:*/
file = elmnt.getAttribute("w3-include-html");
if (file) {
/*make an HTTP request using the attribute value as the file name:*/
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {elmnt.innerHTML = this.responseText;}
if (this.status == 404) {elmnt.innerHTML = "Page not found.";}
/*remove the attribute, and call this function once more:*/
elmnt.removeAttribute("w3-include-html");
includeHTML();
}
}
xhttp.open("GET", file, true);
xhttp.send();
/*exit the function:*/
return;
}
}
};
</script>
<body>
<div w3-include-html="menu.html"></div>
<script>
includeHTML();
</script>
<div id="header-img">
<div id="header"><h1>Jirachi Timer</h1></div>
<div w3-include-html="sidebar.html"></div>
<script>
includeHTML();
</script>
<div class="javascriptformat">
<br>
Target ID
<br><input type="number" id="ID" value="0">
<br>
<br>
ID Frame
<br><input type="number" id="idframe" value="0">
<br>
<br>
Select your Console:
<br> <select name="console" id="console" onchange="consolechange()">
<option value="59.7275">GBA</option>
<option value="59.6555">NDS</option>
</select>
<br><br>
Intro in MS
<br><input type="number" id="introtimer" value="5000">
<br>
<br>
Minutes<br>
<input type="number" id="minutes" value="8">
<br>
<br>
Seconds<br>
<input type="number" id="seconds" value="0">
<br>
<br>
Frames <br><input type="number" id="frames" value="30">
<br>
<br>
Jirachi Offset<br>
<input type="number" id="delaybox" value="-20">
<br>
<br>
<button type="button" onclick="farts()">
Calculate
</button>
<br>
Frames in Total: <br><input type="number" id="totalframes">
<br>
Total MS: <br><input type="number" id="totalms">
<br>
ID MS: <br><input type="number" id="idms">
<br>
Starter MS: <br><input id="starterms">
<br>
Flowtimer Output: <br><input id="flowtimerout">
<br>
<br>
<b><i>Frame hit</b></i>
<br>
<input type="number" id="framehit"><br><br>
<button type="button" onclick="blisytvupdate()">
Calculate
</button>
<br>
<br>
Adjust TeachyTV Frames by:<br>
<input type="number" id="adjusttvby">
<br>
<br>
Adjust Total Frames by: <br>
<input type="number" id="adjustotalby">
<br>
<br>
Adjust TeachyTV ms by: <br><input type="number" id="adjusttvmsby">
<br>
<br>
Adjust Total ms by: <br><input type="number" id="adjusttotalmsby">
<br>
<br>
New Flowtimer TeachyTV: <br><input type="number" id="updatedtvflowtimer">
<br>
<br>
New Flowtimer Total: <br><input id="updatedflowtimertotal">
<script>
var console;
var fps;
var introtimer;
var delaybox;
var methodboxvalue;
var minutes;
var minutesecondstoframe;
var seconds;
var frames;
var idframe;
var battlelag;
function settings()
{
//this pulls all the settings for jirachi timer
idframe = document.getElementById('idframe').value;
console = document.getElementById('console'); //This sets the value of fps
fps = console.options[console.selectedIndex].value;
introtimer = document.getElementById('introtimer').value; //this sets the introtimer value
delaybox = document.getElementById('delaybox').value; //this sets the delaybox value(lag before generation)
consoletext = console.options[console.selectedIndex].text;
minutes = document.getElementById('minutes').value; //this pulls the minutes
seconds = document.getElementById('seconds').value; //this pulls the seconds
frames = document.getElementById('frames').value; //this pulls the frames
}
function farts(){
settings(); //calls settings
//this excecutes when you hit the calculate button
minutesecondstoframe = (((Number(minutes) * 60) + Number(seconds)) * Number(fps)) + Number(frames);
document.getElementById("totalframes").value = Math.floor(minutesecondstoframe);
}
</script>
</body>
</html>