Skip to content

Instantly share code, notes, and snippets.

@kaiserdj
Last active September 9, 2021 18:22
Show Gist options
  • Save kaiserdj/0172805174f47d3c5101a71cf16ef955 to your computer and use it in GitHub Desktop.
Save kaiserdj/0172805174f47d3c5101a71cf16ef955 to your computer and use it in GitHub Desktop.
Simultaneously open multiple clients
//⎛⎝ Kaiserdj™ ⎠⎞#6430
//https://github.com/kaiserdj/Darkorbit-client
//https://discord.gg/vHqAaxS7xF
document.getElementById("imprint_ingame").insertAdjacentHTML('beforebegin', '<br><div id="multiwn" style="text-align: left; position: absolute; left: 30px; height: 15px;"><label for="numwn">Number of clients:</label><input type="text" id="numwn" name="numwn" required value="5"></input> <button id="runwn">START</button></div>')
document.getElementById("runwn").onclick = () => {
let numwin = document.getElementById("numwn").value;
for(let i=0; i<numwin; i++) {
HeaderFunc.startClient()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment