Fix: stupid llm
This commit is contained in:
14
assets/helpers.js
Normal file
14
assets/helpers.js
Normal file
@ -0,0 +1,14 @@
|
||||
function copyText() {
|
||||
// Get the text field
|
||||
var roomLink = document.getElementById("roomlink");
|
||||
|
||||
// Select the text field
|
||||
roomLink.select();
|
||||
roomLink.setSelectionRange(0, 99999); // For mobile devices
|
||||
|
||||
// Copy the text inside the text field
|
||||
navigator.clipboard.writeText(roomLink.value);
|
||||
|
||||
// Alert the copied text
|
||||
alert("Copied the text: " + roomLink.value);
|
||||
}
|
Reference in New Issue
Block a user