SECOND IP
This commit is contained in:
parent
73b5b3a3ba
commit
a552218f05
2 changed files with 14 additions and 4 deletions
BIN
assets/images/new/issues.png
Normal file
BIN
assets/images/new/issues.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
18
index.html
18
index.html
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue