Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ inputOnChange();
let process = 1;
//resize burst time rows size on +/-

function gcd(x, y) {
while (y) {
let t = y;
y = x % y;
x = t;
}
return x;
}

function lcm(x, y) {
return (x * y) / gcd(x, y);
}

function lcmAll() {
let result = 1;
Expand Down
14 changes: 14 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function gcd(x, y) {
while (y) {
let t = y;
y = x % y;
x = t;
}
return x;
}

function lcm(x, y) {
return (x * y) / gcd(x, y);
}