fix autofocus for YASGUI

This commit is contained in:
Babibubebon 2022-09-05 22:22:58 +09:00
parent 7a7f897b98
commit 176ea00d5b
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,6 @@
{{ highlight $q "sparql" }} {{ highlight $q "sparql" }}
<a class="book-btn" <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> </a>

View file

@ -11,6 +11,7 @@
yasgui["{{ .Get "id" }}"] = new Yasgui(document.getElementById("yasgui-{{ .Get "id" }}"), { yasgui["{{ .Get "id" }}"] = new Yasgui(document.getElementById("yasgui-{{ .Get "id" }}"), {
requestConfig: {{ dict "endpoint" (.Get "endpoint") }}, requestConfig: {{ dict "endpoint" (.Get "endpoint") }},
persistenceId: "{{ .Get "id" }}", persistenceId: "{{ .Get "id" }}",
autofocus: false,
copyEndpointOnNewTab: false, copyEndpointOnNewTab: false,
yasqe: { yasqe: {
theme: "{{ .Site.Params.CodeMirrorTheme }}", theme: "{{ .Site.Params.CodeMirrorTheme }}",