Quick JS Help -- Copying

Status
This thread has been locked.

Alex Miller

Cyber-Dynamic Services
Banned
Feedback score
26
Posts
826
Reactions
136
Resources
0
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shaun

Web Developer, owner of Syncore LLC
Supreme
Feedback score
20
Posts
622
Reactions
408
Resources
0
This script works as seen here: https://codepen.io/Athys/pen/XWraaGP

On the live website you're getting an error here:

I removed that line from the script and the text is still copy-able, perhaps you should remove that line from the live website?
 

Alex Miller

Cyber-Dynamic Services
Banned
Feedback score
26
Posts
826
Reactions
136
Resources
0
This script works as seen here: https://codepen.io/Athys/pen/XWraaGP

On the live website you're getting an error here:

I removed that line from the script and the text is still copy-able, perhaps you should remove that line from the live website?

I have EXACTLY what you have and it doesn't seem to work
 
Banned forever. Reason: Scamming Intent (https://www.mc-market.org/tickets/3104/)

CerealKillahh

Feedback score
2
Posts
43
Reactions
7
Resources
0
I have EXACTLY what you have and it doesn't seem to work
You use document.getElementById('copyWebstoreIp') but there is no element with that id. The id of the span that contains the ip is 'myInput'.

Not sure if this will fix the whole thing but it will definitely take care of an error.
 

Alex Miller

Cyber-Dynamic Services
Banned
Feedback score
26
Posts
826
Reactions
136
Resources
0
You use document.getElementById('copyWebstoreIp') but there is no element with that id. The id of the span that contains the ip is 'myInput'.

Not sure if this will fix the whole thing but it will definitely take care of an error.
Not quite finding that
 
Banned forever. Reason: Scamming Intent (https://www.mc-market.org/tickets/3104/)
Status
This thread has been locked.
Top