From 53f1938ef1c2cf8625dde0d6f1138ba5b8b7c816 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Fri, 2 Sep 2022 12:59:31 +0200 Subject: [PATCH] . --- content/master.blade.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/master.blade.php b/content/master.blade.php index 10a9f7d..8871782 100644 --- a/content/master.blade.php +++ b/content/master.blade.php @@ -217,8 +217,8 @@
- - + +
@@ -422,6 +422,11 @@ objProducts[index].quantity = quantity; updateProductsInLocalStorage(); }); + $('#btn-copy-cart-link').click(function(){ + $('.cart-link').select(); + document.execCommand("copy"); + $(this).html(``); + }); }); @yield('scripts')