marvicrm / youtube_autocomplete
A very lightweight YouTube search autocomplete. No javascript library needed!
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
This package is not auto-updated.
Last update: 2025-01-16 20:04:07 UTC
README
A very lightweight YouTube search autocomplete. No javascript library needed!
This is not just a youtube autocomplete, it will also suggest any keywords available on google.
Screenshot
Basic Usage
<!-- Important file to include: CSS & JS file -->
<link rel="stylesheet" href="youtube_autocomplete.css" />
<script src="youtube_autocomplete.js"></script>
<!-- Calling the autocomplete -->
<script>
Youtube_AC.Init();
</script>
<!-- Then just put an id 'youtube_ac' into your search box -->
<input type="text" id="youtube_ac">
Optional Parameters
Youtube_AC.Init(limit,minchar);
Where:
limit = the number of max results on autocomplete. Default = 8
minchar = the number of min input characters needed in order to fire the autocomplete event. Default = 3
Installation
Composer:
- composer require "marvicrm/youtube_autocomplete":"dev-master"
Manual:
- Download the project as zip file, extract on your desired folder
Please run the demo.html for actual testing