SECOND IP

This commit is contained in:
hokkqi 2020-07-19 01:04:10 +02:00
parent 73b5b3a3ba
commit a552218f05
2 changed files with 14 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View file

@ -21,9 +21,12 @@
/> />
<br /> <br />
<div class="ip" onclick="copyIP()"> <div class="ip" onclick="copyIP('ip1')">
<img src="./assets/images/new/ip address.png" alt="" /> <img src="./assets/images/new/ip address.png" alt="" />
</div> </div>
<div class="ip" onclick="copyIP('ip2')">
<img src="./assets/images/new/issues.png" alt="" />
</div>
<div class="buttons"> <div class="buttons">
<div id="discord"> <div id="discord">
@ -88,13 +91,20 @@
style="display: none;" style="display: none;"
type="text" type="text"
value="mc.nonstop.world" value="mc.nonstop.world"
id="ip" id="ip1"
/>
<input
style="display: none;"
type="text"
value="mc2.nonstop.world"
id="ip2"
/> />
<div id="snackbar">Copied IP to clipboard!</div> <div id="snackbar">Copied IP to clipboard!</div>
<script> <script>
function copyIP() { function copyIP(ip) {
console.log("Trying to copy IP"); console.log("Trying to copy IP");
let copyText = document.getElementById("ip"); console.log(ip);
let copyText = document.getElementById(`${ip}`);
//console.log(copyText); //console.log(copyText);
copyText.select(); copyText.select();