Skip to content

Commit

Permalink
add: !m berlin example query
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Nov 17, 2023
1 parent 31ee8e5 commit a1cbab1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/ui/i4k-find-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export default class I4kFindApp extends HTMLElement {
/* handle search (if it is a command) */
this.querySelector("i4k-find-search").addEventListener(
"findSearch",
this._onFindSearch.bind(this)
this._onFindSearch.bind(this),
);

/* if we "sync", also refresh the info */
this.querySelector("i4k-find-sync").addEventListener(
"submit",
this._onFindSync.bind(this)
this._onFindSync.bind(this),
);

Array.from(this.querySelectorAll("i4k-find-query")).forEach(($button) => {
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class I4kFindApp extends HTMLElement {
.substr(1, 6)}`;
document.documentElement.style.setProperty(
"--c-bg--random",
this.randomColor
this.randomColor,
);
}
render() {
Expand All @@ -73,6 +73,13 @@ export default class I4kFindApp extends HTMLElement {
title="Visit documentation"
></i4k-find-query>
</li>
<li>
<i4k-find-query
q="!m berlin"
no-open="true"
title="Open maps search"
></i4k-find-query>
</li>
<li>
<i4k-find-query
q="&mx #i4k-find:matrix.org"
Expand Down

0 comments on commit a1cbab1

Please sign in to comment.