diff options
| author | louismaxime.piton <[email protected]> | 2022-04-01 10:01:51 +0200 |
|---|---|---|
| committer | GeoSot <[email protected]> | 2022-04-01 11:26:32 +0300 |
| commit | 273ebad151b98c37ebedc5111c3efff596dd0d24 (patch) | |
| tree | cc44ee7423385367db3e2678907b3451ef7219e7 /site | |
| parent | 00d028e646eea009b779bb123d5f5e2e1457c4d5 (diff) | |
| download | bootstrap-273ebad151b98c37ebedc5111c3efff596dd0d24.tar.xz bootstrap-273ebad151b98c37ebedc5111c3efff596dd0d24.zip | |
Changing to btnTitle and btnEdit
Diffstat (limited to 'site')
| -rw-r--r-- | site/assets/js/application.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/site/assets/js/application.js b/site/assets/js/application.js index cf5e4c9c7..fa1fba00d 100644 --- a/site/assets/js/application.js +++ b/site/assets/js/application.js @@ -119,6 +119,7 @@ // Insert copy to clipboard button before .highlight var btnTitle = 'Copy to clipboard' + var btnEdit = 'Edit on StackBlitz' var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard">Copy</button></div>' document.querySelectorAll('div.highlight') .forEach(function (element) { @@ -143,8 +144,8 @@ }) } - snippetButtonTooltip('.btn-clipboard', 'Copy to clipboard') - snippetButtonTooltip('.btn-edit', 'Edit on StackBlitz') + snippetButtonTooltip('.btn-clipboard', btnTitle) + snippetButtonTooltip('.btn-edit', btnEdit) var clipboard = new ClipboardJS('.btn-clipboard', { target: function (trigger) { |
