Last active
September 9, 2021 18:22
-
-
Save kaiserdj/0172805174f47d3c5101a71cf16ef955 to your computer and use it in GitHub Desktop.
Simultaneously open multiple clients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//⎛⎝ 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