diff --git a/public/js/shorten_result.js b/public/js/shorten_result.js index 1c7f32f..f05812c 100644 --- a/public/js/shorten_result.js +++ b/public/js/shorten_result.js @@ -23,15 +23,16 @@ $('#generate-qr-code').click(function () { }); -var clipboard = new Clipboard('[data-clipboard]'); +var clipboard = new Clipboard('#clipboard-copy'); clipboard.on('success', function(e) { e.clearSelection(); - $('[data-clipboard]').tooltip('show'); + $('#clipboard-copy').tooltip('show'); }); -$('[data-clipboard]').on('blur',function () { - $(this).tooltip('destroy') + +$('#clipboard-copy').on('blur',function () { + $(this).tooltip('destroy'); }).on('mouseleave',function () { - $(this).tooltip('destroy') + $(this).tooltip('destroy'); }); $(function () { diff --git a/resources/views/shorten_result.blade.php b/resources/views/shorten_result.blade.php index f1df3cf..e4975ec 100644 --- a/resources/views/shorten_result.blade.php +++ b/resources/views/shorten_result.blade.php @@ -8,7 +8,7 @@

Shortened URL

-
+