mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-13 00:25:33 +08:00
browser: further IE11 fixes #452
This commit is contained in:
parent
5b9389fde2
commit
4a1adeb79b
@ -35,12 +35,12 @@
|
||||
{{- end }}
|
||||
{{- $id := partial "make-random-md5.hugo" }}
|
||||
{{- if $lightbox }}
|
||||
<a class="lightbox-link" href="#image-{{ $id }}">
|
||||
<a href="#image-{{ $id }}" class="lightbox-link">
|
||||
{{- end }}
|
||||
<img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }}{{ if len ($classes) }} class="{{ delimit $classes " " }}"{{ end }} style="height: {{ $height }}; width: {{ $width }};" loading="lazy">
|
||||
{{- if $lightbox }}
|
||||
</a>
|
||||
<a href="javascript:history.back();" class="lightbox" id="image-{{ $id }}">
|
||||
<img class="lightbox-image" src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }}loading="lazy">
|
||||
<img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }} class="lightbox-image" loading="lazy">
|
||||
</a>
|
||||
{{- end }}
|
@ -821,7 +821,7 @@ function mark() {
|
||||
topbarLinks[i].classList.add( 'highlight' );
|
||||
}
|
||||
|
||||
var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox):not(a[rel="footnote"])' );
|
||||
var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox)' );
|
||||
for( var i = 0; i < bodyInnerLinks.length; i++ ){
|
||||
bodyInnerLinks[i].classList.add( 'highlight' );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user