1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
DanielnetoDotCom 2020-09-04 22:47:15 -03:00
parent 95cef8f836
commit bb77598113

View file

@ -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");
}