From e95272805a1be8d922f31d578dcc03f8af366d3f Mon Sep 17 00:00:00 2001 From: Karina Rodriguez Date: Fri, 17 May 2024 15:10:04 -0600 Subject: [PATCH 1/6] Add new floating linkedin button on site Signed-off-by: Karina Rodriguez --- linkerd.io/assets/scss/styles.scss | 4 ++++ linkerd.io/layouts/partials/header.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/linkerd.io/assets/scss/styles.scss b/linkerd.io/assets/scss/styles.scss index 707453135b..ed407fdb0a 100644 --- a/linkerd.io/assets/scss/styles.scss +++ b/linkerd.io/assets/scss/styles.scss @@ -925,3 +925,7 @@ blockquote { .modal-content { width: 95%; } + +.linkedin__btn{ + z-index: 999; display: block; top: 100px; right: -5px; position: fixed; +} \ No newline at end of file diff --git a/linkerd.io/layouts/partials/header.html b/linkerd.io/layouts/partials/header.html index f1a91dc849..946a5b2b39 100644 --- a/linkerd.io/layouts/partials/header.html +++ b/linkerd.io/layouts/partials/header.html @@ -14,3 +14,8 @@ {{ $js := resources.Get "js/navbar.js" | resources.Minify | resources.Fingerprint }} + +
+ + +
From 5bae16898226734c7712025b822a2cdf1fe3c3c6 Mon Sep 17 00:00:00 2001 From: Karina Rodriguez Date: Fri, 17 May 2024 15:46:48 -0600 Subject: [PATCH 2/6] Add script for linkedin button function Signed-off-by: Karina Rodriguez --- linkerd.io/assets/js/follow-linkedin.js | 9 +++++++++ linkerd.io/layouts/partials/javascript.html | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 linkerd.io/assets/js/follow-linkedin.js diff --git a/linkerd.io/assets/js/follow-linkedin.js b/linkerd.io/assets/js/follow-linkedin.js new file mode 100644 index 0000000000..f673465adb --- /dev/null +++ b/linkerd.io/assets/js/follow-linkedin.js @@ -0,0 +1,9 @@ +setTimeout(function(){ + var buttonWrapper = document.querySelector('.button__wrapper'); + widthOriginal = buttonWrapper.getBoundingClientRect().width; + console.log("-"+widthOriginal); + + if(widthOriginal>99){ + buttonWrapper.style.display = 'none'; + } +}, 2300); \ No newline at end of file diff --git a/linkerd.io/layouts/partials/javascript.html b/linkerd.io/layouts/partials/javascript.html index 73b4c75a37..7d757fe5e4 100644 --- a/linkerd.io/layouts/partials/javascript.html +++ b/linkerd.io/layouts/partials/javascript.html @@ -35,4 +35,7 @@ {{ $headingsLinkJs := resources.Get "js/docs-heading-link.js"}} +{{ $jsFL := resources.Get "js/follow-linkedin.js" }} + + \ No newline at end of file From 574c98d901e360e32cf295e83c6e057680151cef Mon Sep 17 00:00:00 2001 From: Karina Rodriguez Date: Mon, 20 May 2024 16:19:35 -0600 Subject: [PATCH 3/6] Add new floating linkedin button on site Signed-off-by: Karina Rodriguez --- linkerd.io/assets/js/follow-linkedin.js | 9 --------- linkerd.io/layouts/partials/javascript.html | 2 -- 2 files changed, 11 deletions(-) delete mode 100644 linkerd.io/assets/js/follow-linkedin.js diff --git a/linkerd.io/assets/js/follow-linkedin.js b/linkerd.io/assets/js/follow-linkedin.js deleted file mode 100644 index f673465adb..0000000000 --- a/linkerd.io/assets/js/follow-linkedin.js +++ /dev/null @@ -1,9 +0,0 @@ -setTimeout(function(){ - var buttonWrapper = document.querySelector('.button__wrapper'); - widthOriginal = buttonWrapper.getBoundingClientRect().width; - console.log("-"+widthOriginal); - - if(widthOriginal>99){ - buttonWrapper.style.display = 'none'; - } -}, 2300); \ No newline at end of file diff --git a/linkerd.io/layouts/partials/javascript.html b/linkerd.io/layouts/partials/javascript.html index 7d757fe5e4..d0ae81449f 100644 --- a/linkerd.io/layouts/partials/javascript.html +++ b/linkerd.io/layouts/partials/javascript.html @@ -35,7 +35,5 @@ {{ $headingsLinkJs := resources.Get "js/docs-heading-link.js"}} -{{ $jsFL := resources.Get "js/follow-linkedin.js" }} - \ No newline at end of file From 0605498a0ce244dfc033c80cca169b8ebbb7f89c Mon Sep 17 00:00:00 2001 From: Karina Rodriguez Date: Mon, 20 May 2024 19:04:31 -0600 Subject: [PATCH 4/6] Add a new floating LinkedIn button on the site and the script that hides it when the follow has been made Signed-off-by: Karina Rodriguez --- linkerd.io/assets/js/follow-linkedin.js | 9 +++++++++ linkerd.io/layouts/partials/javascript.html | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 linkerd.io/assets/js/follow-linkedin.js diff --git a/linkerd.io/assets/js/follow-linkedin.js b/linkerd.io/assets/js/follow-linkedin.js new file mode 100644 index 0000000000..6611673343 --- /dev/null +++ b/linkerd.io/assets/js/follow-linkedin.js @@ -0,0 +1,9 @@ +setTimeout(function(){ + var buttonWrapper = document.querySelector('.linkedin__btn'); + widthOriginal = buttonWrapper.getBoundingClientRect().width; + console.log("-"+widthOriginal); + + if(widthOriginal>99){ + buttonWrapper.style.display = 'none'; + } +}, 2300); \ No newline at end of file diff --git a/linkerd.io/layouts/partials/javascript.html b/linkerd.io/layouts/partials/javascript.html index d0ae81449f..7778aed7da 100644 --- a/linkerd.io/layouts/partials/javascript.html +++ b/linkerd.io/layouts/partials/javascript.html @@ -35,5 +35,7 @@ {{ $headingsLinkJs := resources.Get "js/docs-heading-link.js"}} +{{ $linkedinJs := resources.Get "js/follow-linkedin.js" }} + \ No newline at end of file From e96bc096be457d27f033278289151f628f47895c Mon Sep 17 00:00:00 2001 From: Karina Rodriguez Date: Tue, 21 May 2024 11:52:28 -0600 Subject: [PATCH 5/6] Add a new floating LinkedIn button on the site and the script that hides it when the follow has been made Signed-off-by: Karina Rodriguez --- linkerd.io/layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkerd.io/layouts/partials/header.html b/linkerd.io/layouts/partials/header.html index 946a5b2b39..b7c644a516 100644 --- a/linkerd.io/layouts/partials/header.html +++ b/linkerd.io/layouts/partials/header.html @@ -17,5 +17,5 @@
- +
From 102f7986e296d99cfe6feb02d1d45f11b4df5300 Mon Sep 17 00:00:00 2001 From: Travis Beckham Date: Tue, 21 May 2024 13:35:40 -0500 Subject: [PATCH 6/6] Commented out console.log message --- linkerd.io/assets/js/follow-linkedin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkerd.io/assets/js/follow-linkedin.js b/linkerd.io/assets/js/follow-linkedin.js index 6611673343..b1f0280061 100644 --- a/linkerd.io/assets/js/follow-linkedin.js +++ b/linkerd.io/assets/js/follow-linkedin.js @@ -1,9 +1,9 @@ setTimeout(function(){ var buttonWrapper = document.querySelector('.linkedin__btn'); widthOriginal = buttonWrapper.getBoundingClientRect().width; - console.log("-"+widthOriginal); + //console.log("-"+widthOriginal); if(widthOriginal>99){ buttonWrapper.style.display = 'none'; } -}, 2300); \ No newline at end of file +}, 2300);