-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new floating LinkedIn button on the site and the script that hi…
…des it when the follow has been made Signed-off-by: Karina Rodriguez <[email protected]>
- Loading branch information
Karina Rodriguez
committed
May 21, 2024
1 parent
574c98d
commit 0605498
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters