diff --git a/htdocs/assets/_floatingbar.php b/htdocs/assets/_floatingbar.php index a1edc2f..cfba7c2 100644 --- a/htdocs/assets/_floatingbar.php +++ b/htdocs/assets/_floatingbar.php @@ -117,11 +117,11 @@
- - - + + +
diff --git a/htdocs/assets/js/floatingbar-config.js b/htdocs/assets/js/floatingbar-config.js index 0ccc6bb..3680f5a 100644 --- a/htdocs/assets/js/floatingbar-config.js +++ b/htdocs/assets/js/floatingbar-config.js @@ -331,3 +331,23 @@ shareBtn.addEventListener("click", function () { shareCloseBtn.addEventListener("click", function () { close_share(); }); + +function call_webshare_api() { + if(navigator.share) { + navigator.share({ + title: document.getElementsByTagName("title")[0].innerHTML, + text: 'Check-out this awesome website:', + url: document.location.href + }).then(() => { + window.alert("Thanks for sharing!"); + }).catch(console.error); + } + else { + if (window.location.protocol !== "https:") { + window.alert("Sorry, webShareAPI is not accessable as your connection with the server is not encrypted with https protocol"); + } + else{ + window.alert("Sorry, webShareAPI is not supported by your browser"); + } + } +} \ No newline at end of file diff --git a/htdocs/assets/style.css b/htdocs/assets/style.css index aaaec5f..7c3f63f 100644 --- a/htdocs/assets/style.css +++ b/htdocs/assets/style.css @@ -1055,6 +1055,14 @@ video { width: 2.5rem; } +.w-20 { + width: 5rem; +} + +.w-24 { + width: 6rem; +} + .rotate-\[15deg\] { --tw-rotate: 15deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2003,6 +2011,10 @@ video { .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } + + .xl\:grid-cols-5 { + grid-template-columns: repeat(5, minmax(0, 1fr)); + } } @media (min-width: 1536px) {