mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
95cef8f836
commit
bb77598113
1 changed files with 2 additions and 1 deletions
|
@ -573,11 +573,12 @@ function getPlayerButtonIndex(name) {
|
|||
}
|
||||
|
||||
function copyToClipboard(text) {
|
||||
$('#elementToCopy').css({'top': mouseY, 'left': mouseX}).fadeIn('slow');
|
||||
$('#elementToCopy').css({'top': 0, 'left': 0}).fadeIn('slow');
|
||||
$('#elementToCopy').val(text);
|
||||
$('#elementToCopy').focus();
|
||||
$('#elementToCopy').select();
|
||||
document.execCommand('copy');
|
||||
$('#elementToCopy').hide();
|
||||
$.toast("Copied to Clipboard");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue