Skip to content

Commit 4f9e96f

Browse files
fix: move search button to header, add explicit EEGLAB widget config
- Removed duplicate floating search button (was overlapping with chat widget) - Search button now in main-header next to search input - Widget config includes explicit title, initialMessage, placeholder, and suggestedQuestions so it displays EEGLAB identity without depending on community config API fetch
1 parent 258c6d8 commit 4f9e96f

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

_layouts/default.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@
7979
</div>
8080
<div id="search-results" class="search-results"></div>
8181
</div>
82+
{% if site.search.button %}
83+
<a href="#" id="search-button" class="search-button">
84+
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-search"></use></svg>
85+
</a>
86+
{% endif %}
8287
{% endif %}
8388
{% include header_custom.html %}
8489
{% if site.aux_links %}
@@ -189,12 +194,6 @@ <h2 class="text-delta">Table of contents</h2>
189194
</div>
190195

191196
{% if site.search_enabled != false %}
192-
{% if site.search.button %}
193-
<a href="#" id="search-button" class="search-button">
194-
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-search"></use></svg>
195-
</a>
196-
{% endif %}
197-
198197
<div class="search-overlay"></div>
199198
{% endif %}
200199
</div>
@@ -204,7 +203,15 @@ <h2 class="text-delta">Table of contents</h2>
204203
<script src="https://osa-demo.pages.dev/osa-chat-widget.js"></script>
205204
<script>
206205
OSAChatWidget.setConfig({
207-
communityId: 'eeglab'
206+
communityId: 'eeglab',
207+
title: 'EEGLAB Assistant',
208+
initialMessage: 'Hi, I am the EEGLAB Assistant. I can help you with EEG data analysis, scripting, troubleshooting, and more. What can I help you with?',
209+
placeholder: 'Ask about EEGLab...',
210+
suggestedQuestions: [
211+
'How do I import my EEG data?',
212+
'How do I run ICA?',
213+
'How do I remove artifacts?'
214+
]
208215
});
209216
</script>
210217
</body>

0 commit comments

Comments
 (0)