Search Widget


Patterns in the database: Emergency, Severe Pain, Tenant, Charity, emergenc*, paramedic, Zero*, Urgent, abusive, safe*,

Project Overview

This project enhances existing search bars on websites, specifically for NHS, Housing Associations, and Charity organizations. When a visitor enters certain keywords into the search bar, the widget displays contextually relevant messages or Call-to-Actions (CTAs) based on a predefined dictionary.

How to Include the Search Widget

To include the search widget on your page, you need to drop the following code wherever you want the widget to appear:

<div class='search_widget'></div>
<script type="module" src="https://uat-search-widget.spindogs-dev7.co.uk/search-widget.js" data-module="" data-search-parameter="q"></script>
    

Note: The value of the data-search-parameter attribute in the script tag should match the name attribute of your search input field. In this example, both are set to "q".