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" }}
|
{{ 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>
|
|
@ -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 }}",
|
||||||
|
|
Loading…
Reference in a new issue