fix copy clipboard
This commit is contained in:
@@ -19,11 +19,14 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $.Scratch.Get "content" }}
|
{{ with $.Scratch.Get "content" }}
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<div class="includecode" style="text-align: right" id="{{- $file | anchorize -}}">
|
<div class="copy-code-icon" style="text-align:right">
|
||||||
{{- with $ghlink -}}<a href="{{ . }}" download="{{ $file }}">{{- end -}}
|
{{ with $ghlink }}<a href="{{ . }}" download="{{ $file }}">{{ end }}<code>{{ $file }}</code>
|
||||||
<code>{{ $file }}</code>
|
{{ if $ghlink }}</a>{{ end }}
|
||||||
{{ 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 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>
|
</div>
|
||||||
{{ highlight . $codelang "" }}
|
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user