Socket
Socket
Sign inDemoInstall

qdrant-page-search

Package Overview
Dependencies
0
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qdrant-page-search

Add markup for the search modal popup:


Version published
Weekly downloads
56
increased by1.82%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

For an example look into index.html

Installation

npm install qdrant-page-search

Add styles to the head tag:

<link rel="stylesheet" href="<path_to_the_plugin>/dist/css/styles.min.css">

At the end of a body tag add:


<script defer src="<path_to_the_plugin>/dist/js/search.min.js" type="module"></script>
<script defer>
    window.addEventListener('DOMContentLoaded', () => {
        initQdrantSearch({searchApiUrl: 'your_search_API_URL'});
    });
</script>

To scroll a page to the result text after transition use js/scroll.min.js

<script src="<path_to_the_plugin>/dist/js/scroll.min.js" type="module"></script>

Add search button

And the button in the place you want to see it:

<!-- Button trigger modal -->
<button type="button" class="qdr-search-input-btn" data-target="#searchModal">
    Search...
</button>

Development

Build the project

npm install
npm run build

Develop mode

npm install
npm run dev

Styles

To change an appearance of modal window you can:

  • overwrite classes styles in your own css file or
  • change variables values in src/scss/_variables.scss and rebuild styles file.

Keywords

FAQs

Last updated on 12 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc