-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: veralex <alexey.verevkin@akvelon.com>
- Loading branch information
1 parent
8a13ba0
commit 0a6b6a6
Showing
8 changed files
with
52 additions
and
23 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,10 @@ | ||
const copyLinkClickHandler = (link) => { | ||
navigator.clipboard.writeText(link); | ||
|
||
const toast = $('#toast'); | ||
const [el] = toast; | ||
el.classList.remove('d-none'); | ||
el.getElementsByClassName('toast__content')[0].innerText = 'Link copied to clipboard'; | ||
|
||
toast.toast('show'); | ||
} |
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
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,13 @@ | ||
.toast { | ||
bottom: 1rem; | ||
right: 1rem; | ||
|
||
min-width: 20rem; | ||
width: 20rem;; | ||
|
||
line-height: 1rem; | ||
|
||
@include media-breakpoint-down(sm) { | ||
top: 10rem; | ||
} | ||
} |
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
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
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
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
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,15 @@ | ||
<div | ||
id="toast" | ||
class="d-none toast position-fixed" | ||
role="alert" | ||
aria-live="assertive" | ||
aria-atomic="true" | ||
data-delay="2000" | ||
> | ||
<div class="d-flex align-items-center py-2 px-3"> | ||
<div class="mr-4 w-100 toast__content"></div> | ||
<button type="button" class="close" data-dismiss="toast" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
</div> |