1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +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) { function copyToClipboard(text) {
$('#elementToCopy').css({'top': mouseY, 'left': mouseX}).fadeIn('slow'); $('#elementToCopy').css({'top': 0, 'left': 0}).fadeIn('slow');
$('#elementToCopy').val(text); $('#elementToCopy').val(text);
$('#elementToCopy').focus(); $('#elementToCopy').focus();
$('#elementToCopy').select(); $('#elementToCopy').select();
document.execCommand('copy'); document.execCommand('copy');
$('#elementToCopy').hide();
$.toast("Copied to Clipboard"); $.toast("Copied to Clipboard");
} }