Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 committed Jun 16, 2024
1 parent 232c7bb commit 4e3571b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion amd/build/referral.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/referral.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions amd/src/referral.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ function copyText(target, element) {

navigator.clipboard.writeText(input[0].value);

element.setAttribute('tooltip', copiedTooltip);
element.setAttribute('title', copiedTooltip);
}

const resetTooltip = (element) => {
element.setAttribute('tooltip', copyTooltip);
element.setAttribute('title', copyTooltip);
};

/**
Expand Down
3 changes: 1 addition & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,14 @@
transform: translateY(0) translateX(-50%);
}
#page-enrol-wallet-extra-referral .shareLink .permalink .copyLink:after {
content: attr(tooltip);
content: attr(title);
width: 140px;
bottom: -40px;
left: 50%;
padding: 5px;
border-radius: 4px;
font-size: 0.8rem;
opacity: 0;
z-index: 3;
pointer-events: none;
position: absolute;
background-color: #000;
Expand Down
4 changes: 2 additions & 2 deletions templates/referral.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
<div class='shareLink'>
<div class='permalink'>
<input class='form-control textLink search-input' id='code_{{uniqid}}' type='text' value='{{code}}' readonly>
<button class='copyLink' id='copy_code_{{uniqid}}' tooltip="{{#str}} referral_copy_to_clipboard, enrol_wallet{{/str}}">
<button class='copyLink' id='copy_code_{{uniqid}}' title="{{#str}} referral_copy_to_clipboard, enrol_wallet{{/str}}">
<i class='fa fa-regular fa-copy'></i>
</button>
</div>
</div>
<div class='shareLink'>
<div class='permalink'>
<input class='form-control textLink search-input' id='url_{{uniqid}}' type='text' value='{{url}}' readonly>
<button class='copyLink' id='copy_url_{{uniqid}}' tooltip="{{#str}} referral_copy_to_clipboard, enrol_wallet{{/str}}">
<button class='copyLink' id='copy_url_{{uniqid}}' title="{{#str}} referral_copy_to_clipboard, enrol_wallet{{/str}}">
<i class='fa fa-regular fa-copy'></i>
</button>
</div>
Expand Down

0 comments on commit 4e3571b

Please sign in to comment.