mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-13 18:02:25 +00:00
deploy: 27bb276909
This commit is contained in:
parent
b19f3d892a
commit
8f005f1173
360 changed files with 7883 additions and 7884 deletions
js
|
@ -368,13 +368,11 @@ function initCodeClipboard(){
|
|||
|
||||
clip.on( 'success', function( e ){
|
||||
e.clearSelection();
|
||||
var inPre = e.trigger.parentNode.tagName.toLowerCase() == 'pre';
|
||||
e.trigger.setAttribute( 'aria-label', window.T_Copied_to_clipboard );
|
||||
e.trigger.classList.add( 'tooltipped', 'tooltipped-' + (inPre ? 'w' : 's'+(isRtl?'e':'w')) );
|
||||
});
|
||||
|
||||
clip.on( 'error', function( e ){
|
||||
var inPre = e.trigger.parentNode.tagName.toLowerCase() == 'pre';
|
||||
e.trigger.setAttribute( 'aria-label', fallbackMessage(e.action) );
|
||||
e.trigger.classList.add( 'tooltipped', 'tooltipped-' + (inPre ? 'w' : 's'+(isRtl?'e':'w')) );
|
||||
var f = function(){
|
||||
|
@ -388,7 +386,7 @@ function initCodeClipboard(){
|
|||
code.classList.add( 'copy-to-clipboard-code' );
|
||||
if( inPre ){
|
||||
code.classList.add( 'copy-to-clipboard' );
|
||||
code.classList.add( 'pre-code' );
|
||||
code.parentNode.classList.add( 'pre-code' );
|
||||
}
|
||||
else{
|
||||
var clone = code.cloneNode( true );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue