From e5dbcda2eab7eaa4ab603c304d8c3f838eeb4fbe Mon Sep 17 00:00:00 2001 From: Chaoyi Zha Date: Thu, 29 Mar 2018 00:01:38 -0400 Subject: Small changes to code style --- public/js/shorten_result.js | 11 ++++++----- resources/views/shorten_result.blade.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) 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

-
+
-- cgit v1.2.3