(Grav GitSync) Automatic Commit from GitSync
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import $ from 'jquery';
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.copy-to-clipboard').click(function(event) {
|
||||
var $tempElement = $('<input>');
|
||||
$('body').append($tempElement);
|
||||
$tempElement.val($(this).prev('input').val()).select();
|
||||
document.execCommand('Copy');
|
||||
$tempElement.remove();
|
||||
|
||||
$(this).attr('data-hint', 'Copied to clipboard!').addClass('hint--left');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user