Merge pull request #23966 from kbhawkey/kb-fix-copy-clipboard
fix copy to clipboard
This commit is contained in:
commit
c7ac12656c
|
@ -19,11 +19,14 @@
|
|||
{{ end }}
|
||||
{{ with $.Scratch.Get "content" }}
|
||||
<div class="highlight">
|
||||
<div class="includecode" style="text-align: right" id="{{- $file | anchorize -}}">
|
||||
{{- with $ghlink -}}<a href="{{ . }}" download="{{ $file }}">{{- end -}}
|
||||
<code>{{ $file }}</code>
|
||||
{{ if $ghlink }}</a>{{ end }}<img src="{{ "images/copycode.svg" | relURL }}" style="max-height:24px; cursor: pointer" onclick="copyCode('{{ $file | anchorize }}')" title="Copy {{ $file }} to clipboard">
|
||||
<div class="copy-code-icon" style="text-align:right">
|
||||
{{ with $ghlink }}<a href="{{ . }}" download="{{ $file }}">{{ end }}<code>{{ $file }}</code>
|
||||
{{ if $ghlink }}</a>{{ end }}
|
||||
<img src="{{ "images/copycode.svg" | relURL }}" style="max-height:24px; cursor: pointer" onclick="copyCode('{{ $file | anchorize }}')" title="Copy {{ $file }} to clipboard">
|
||||
</img>
|
||||
</div>
|
||||
<div class="includecode" id="{{ $file | anchorize }}">
|
||||
{{ highlight . $codelang "" }}
|
||||
</div>
|
||||
{{ highlight . $codelang "" }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue