Skip to content

Commit

Permalink
updated ask ai redirect
Browse files Browse the repository at this point in the history
- updated redirect to search page
  • Loading branch information
samapriya committed Nov 14, 2024
1 parent 2bda28e commit 2295b08
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,11 @@
{{ super() }}

<!-- Floating Button -->
<a href="javascript:void(0);" class="floating-button" id="searchWidgetTrigger">
<a href="https://gee-community-catalog.org/search" class="floating-button" id="searchRedirect" target="_blank">
<img src="https://i.imgur.com/RJian8r.png" alt="Logo">
<span>Ask AI</span>
</a>

<!-- Widget JavaScript bundle -->
<script src="https://cloud.google.com/ai/gen-app-builder/client?hl=en_GB"></script>

<!-- Search widget element is not visible by default -->
<gen-search-widget configId="7df2e903-867d-4e8e-b3da-bc5f138b359b" triggerId="searchWidgetTrigger" target="_blank">
</gen-search-widget>

<script>
document.getElementById('searchWidgetTrigger').addEventListener('click', function () {
document.querySelector('gen-search-widget').open();
});
</script>

{% endblock %}

{% block scripts %}
Expand Down

0 comments on commit 2295b08

Please sign in to comment.