diff --git a/htdocs/assets/_floatingbar.php b/htdocs/assets/_floatingbar.php
index 91191fa..4542709 100644
--- a/htdocs/assets/_floatingbar.php
+++ b/htdocs/assets/_floatingbar.php
@@ -112,7 +112,10 @@
diff --git a/htdocs/assets/js/floatingbar-config.js b/htdocs/assets/js/floatingbar-config.js
index bb65076..0ccc6bb 100644
--- a/htdocs/assets/js/floatingbar-config.js
+++ b/htdocs/assets/js/floatingbar-config.js
@@ -12,6 +12,8 @@ const searchWin = document.getElementById("searchwindow");
const shareWin = document.getElementById("sharewindow");
const searchDef = document.getElementById("defresults");
const searchRes = document.getElementById("searchresults");
+const qrCode = document.getElementById("pageqrcode");
+const linkInput = document.getElementById("pageurlinput");
const basePath = document.getElementById('phpHostBasePath').dataset.basePath;
let lastScrollTop = 0;
@@ -302,6 +304,10 @@ searchInput.addEventListener('input', function() {
//---share window config starts here
function activate_share() {
+ //create qrcode of the current page link
+ qrCode.src = "https://api.qrserver.com/v1/create-qr-code/?data=" + window.location.href + "&color=38BDF8&bgcolor=0F172A";
+ //change pageUrlInput value to current page
+ linkInput.value = window.location.href;
windowWrapper.classList.remove("hidden");
windowWrapper.classList.add("flotingbar-window-wrapper-show");
shareBtn.classList.add("hidden");
@@ -324,4 +330,4 @@ shareBtn.addEventListener("click", function () {
shareCloseBtn.addEventListener("click", function () {
close_share();
-});
\ No newline at end of file
+});