good
This commit is contained in:
+16
-2
@@ -105,8 +105,20 @@
|
||||
</script>
|
||||
</head>
|
||||
<body {{if .ThemeClean}}class="theme-clean"{{end}}
|
||||
_="init call initScrollBehavior() end
|
||||
on scroll from window call handleScroll() end">
|
||||
_="on load call initScrollBehavior()
|
||||
on scroll from window call handleScroll()
|
||||
on keydown
|
||||
if event.key is '?' and not event.ctrlKey and not event.metaKey and not event.altKey
|
||||
set tagName to event.target.tagName
|
||||
if tagName is not 'INPUT' and tagName is not 'TEXTAREA'
|
||||
halt the event
|
||||
set modal to #shortcuts-modal
|
||||
if modal
|
||||
call modal.showModal()
|
||||
end
|
||||
end
|
||||
end
|
||||
end">
|
||||
<!-- Top anchor for back-to-top link -->
|
||||
<div id="top"></div>
|
||||
|
||||
@@ -126,7 +138,9 @@
|
||||
{{template "error-toast" .}}
|
||||
{{template "back-to-top" .}}
|
||||
{{template "info-button" .}}
|
||||
{{template "shortcuts-button" .}}
|
||||
{{template "info-modal" .}}
|
||||
{{template "shortcuts-modal" .}}
|
||||
{{template "pdf-modal" .}}
|
||||
{{template "zoom-control" .}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user