Remove submodule
This commit is contained in:
parent
f969dbb290
commit
89b74e8ef8
50 changed files with 32051 additions and 10 deletions
18
resources/libs/clipboard/tooltip.js
Normal file
18
resources/libs/clipboard/tooltip.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
function showTooltip(elem, msg) {
|
||||
elem.setAttribute('class', 'btn-clipboard tooltipped tooltipped-s');
|
||||
elem.setAttribute('aria-label', msg);
|
||||
}
|
||||
function fallbackMessage(action) {
|
||||
var actionMsg = '';
|
||||
var actionKey = (action === 'cut' ? 'X' : 'C');
|
||||
if (/iPhone|iPad/i.test(navigator.userAgent)) {
|
||||
actionMsg = 'No support :(';
|
||||
}
|
||||
else if (/Mac/i.test(navigator.userAgent)) {
|
||||
actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
|
||||
}
|
||||
else {
|
||||
actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
|
||||
}
|
||||
return actionMsg;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue