21 lines
688 B
JavaScript
21 lines
688 B
JavaScript
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
|
// for details on configuring this project to bundle and minify static web assets.
|
|
|
|
// Write your JavaScript code.
|
|
|
|
function copyToClipboard(field) {
|
|
let textarea = document.createElement('textarea');
|
|
textarea.id = 't';
|
|
textarea.style.height = "0";
|
|
document.body.appendChild(textarea);
|
|
textarea.value = field;
|
|
let selector = document.querySelector('#t');
|
|
selector.select();
|
|
document.execCommand('copy');
|
|
document.body.removeChild(textarea);
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
$("body").tooltip({ selector: '[data-toggle=tooltip]' });
|
|
});
|