2021-12-24 21:56:49 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-03-04 17:53:18 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2022-04-24 12:49:16 +00:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2022-03-04 17:53:18 +00:00
|
|
|
<title>ArmCord Setup</title>
|
|
|
|
<style>
|
|
|
|
@import url("css/setup.css");
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
2022-04-24 12:49:16 +00:00
|
|
|
<div id="warning" class="hidden">
|
|
|
|
<p>You appear to be offline. Please connect to the internet and restart ArmCord Setup.</p>
|
|
|
|
</div>
|
2022-03-04 17:53:18 +00:00
|
|
|
<div id="setup">
|
2022-04-24 12:49:16 +00:00
|
|
|
<div id="logo" class="hidden">
|
|
|
|
<p>ARM</p>
|
|
|
|
<p>Cord</p>
|
|
|
|
</div>
|
|
|
|
<div id="page1" class="hidden">
|
|
|
|
<p>Select the type of setup you want to perform.</p>
|
|
|
|
<div id="buttons">
|
|
|
|
<button id="express" class="center">Express</button>
|
|
|
|
<button id="full" class="center">Full</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="page2" class="hidden">
|
|
|
|
<p class="text-center setup-ask">Choose your Discord channel/instance:</p>
|
|
|
|
<div class="center">
|
|
|
|
<select name="channel" id="channel" class="dropdown-button">
|
|
|
|
<option value="stable">Stable</option>
|
|
|
|
<option value="canary">Canary</option>
|
|
|
|
<option value="ptb">PTB</option>
|
|
|
|
<option value="foss">Fosscord</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="text-center setup-ask">Should ArmCord handle client mods installation?</p>
|
|
|
|
<div class="center">
|
|
|
|
<select name="csp" id="csp" class="dropdown-button">
|
|
|
|
<option value="true">Yes</option>
|
|
|
|
<option value="false">No</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="buttons">
|
|
|
|
<button id="next" class="center">Next</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="page3" class="hidden">
|
|
|
|
<p class="text-center setup-ask">Select a client mod you want to install:</p>
|
|
|
|
<div class="center">
|
|
|
|
<select name="mod" id="mod" class="dropdown-button">
|
|
|
|
<option value="cumcord">Cumcord</option>
|
|
|
|
<option value="goosemod">GooseMod</option>
|
|
|
|
<option value="flicker">Flicker (Heavily WIP)</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
Why not all of them? Having many client mods at the same time can cause issues. If you really
|
|
|
|
want to do it though, check our documentation ;)
|
|
|
|
</p>
|
|
|
|
<div id="buttons">
|
|
|
|
<button id="next" class="center">Next</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-04 17:53:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-24 12:49:16 +00:00
|
|
|
|
2022-03-04 17:53:18 +00:00
|
|
|
<script>
|
2022-04-24 12:49:16 +00:00
|
|
|
// Accessors {{{
|
|
|
|
let options = {};
|
|
|
|
|
|
|
|
let logo = document.getElementById("logo");
|
|
|
|
logo.classList.remove("hidden");
|
|
|
|
|
|
|
|
let page1 = document.getElementById("page1");
|
|
|
|
page1.classList.remove("hidden");
|
|
|
|
page1.buttons = document.querySelectorAll("#page1 > #buttons > button");
|
2021-12-24 21:56:49 +00:00
|
|
|
|
2022-04-24 12:49:16 +00:00
|
|
|
// Connection check
|
|
|
|
let warning = document.getElementById("warning");
|
2022-03-04 17:53:18 +00:00
|
|
|
if (window.navigator.onLine === false) {
|
2022-04-24 12:49:16 +00:00
|
|
|
warning.classList.remove("hidden");
|
|
|
|
}
|
|
|
|
|
|
|
|
let page2 = document.getElementById("page2");
|
|
|
|
let page3 = document.getElementById("page3");
|
|
|
|
// }}}
|
|
|
|
|
|
|
|
// Express
|
|
|
|
page1.buttons[0].addEventListener("click", () => {
|
|
|
|
window.armcordinternal.saveSettings({
|
|
|
|
windowStyle: "default",
|
|
|
|
channel: "stable",
|
|
|
|
armcordCSP: true,
|
|
|
|
minimizeToTray: true,
|
|
|
|
automaticPatches: false,
|
|
|
|
mods: "cumcord",
|
|
|
|
blurType: "acrylic"
|
|
|
|
});
|
|
|
|
setTimeout(() => window.armcordinternal.restart(), 5000);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Full
|
|
|
|
page1.buttons[1].addEventListener("click", () => {
|
|
|
|
page1.classList.add("hidden");
|
|
|
|
page2.classList.remove("hidden");
|
|
|
|
});
|
|
|
|
|
|
|
|
page2.buttons = document.querySelectorAll("#page2 > #buttons > button");
|
|
|
|
page2.buttons[0].addEventListener("click", () => {
|
|
|
|
options.channel = document.getElementById("channel").value;
|
|
|
|
options.csp = document.getElementById("csp").value;
|
|
|
|
page2.classList.add("hidden");
|
|
|
|
|
|
|
|
page3.buttons = document.querySelectorAll("#page3 > #buttons > button");
|
|
|
|
if (options.csp === "true") {
|
|
|
|
page3.classList.remove("hidden");
|
|
|
|
page3.buttons[0].addEventListener("click", () => {
|
|
|
|
options.mod = document.getElementById("mod").value;
|
|
|
|
window.armcordinternal.saveSettings({
|
|
|
|
windowStyle: "default",
|
|
|
|
channel: options.channel,
|
|
|
|
armcordCSP: true,
|
|
|
|
minimizeToTray: true,
|
|
|
|
automaticPatches: false,
|
|
|
|
mods: options.mod,
|
|
|
|
blurType: "acrylic"
|
|
|
|
});
|
|
|
|
setTimeout(() => window.armcordinternal.restart(), 500);
|
|
|
|
});
|
|
|
|
} else {
|
2022-03-04 17:53:18 +00:00
|
|
|
window.armcordinternal.saveSettings({
|
|
|
|
windowStyle: "default",
|
2022-04-24 12:49:16 +00:00
|
|
|
channel: options.channel,
|
2022-03-04 17:53:18 +00:00
|
|
|
armcordCSP: true,
|
|
|
|
minimizeToTray: true,
|
|
|
|
automaticPatches: false,
|
2022-04-24 12:49:16 +00:00
|
|
|
mods: "none",
|
|
|
|
blurType: "acrylic"
|
2022-03-04 17:53:18 +00:00
|
|
|
});
|
2022-04-24 12:49:16 +00:00
|
|
|
setTimeout(() => window.armcordinternal.restart(), 500);
|
|
|
|
}
|
|
|
|
});
|
2022-03-04 17:53:18 +00:00
|
|
|
</script>
|
|
|
|
</body>
|
2021-12-26 21:41:09 +00:00
|
|
|
</html>
|