mirror of
https://github.com/Babibubebon/lodc2022-culture-art.git
synced 2024-09-22 17:04:21 +09:00
fix autofocus for YASGUI
This commit is contained in:
parent
7a7f897b98
commit
176ea00d5b
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,6 @@
|
|||
|
||||
{{ highlight $q "sparql" }}
|
||||
<a class="book-btn"
|
||||
onclick="setYasguiQuery('{{ .Get "yasgui-id" }}', '{{ .Get "title" }}', '{{ $q }}'); location.href='#{{ .Get "yasgui-id" }}'">
|
||||
onclick="setYasguiQuery('{{ .Get "yasgui-id" }}', '{{ .Get "title" }}', '{{ $q }}'); location.href='#yasgui-{{ .Get "yasgui-id" }}'">
|
||||
▶ 実行する
|
||||
</a>
|
|
@ -11,6 +11,7 @@
|
|||
yasgui["{{ .Get "id" }}"] = new Yasgui(document.getElementById("yasgui-{{ .Get "id" }}"), {
|
||||
requestConfig: {{ dict "endpoint" (.Get "endpoint") }},
|
||||
persistenceId: "{{ .Get "id" }}",
|
||||
autofocus: false,
|
||||
copyEndpointOnNewTab: false,
|
||||
yasqe: {
|
||||
theme: "{{ .Site.Params.CodeMirrorTheme }}",
|
||||
|
|
Loading…
Reference in a new issue