wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 93 forks source link

Installation instructions on https://timepicker.co/ are not clear #140

Open joshdance opened 1 year ago

joshdance commented 1 year ago

This might be my own inexperience but I can't figure out a step in the installation process.

I can install the package using npm i jquery-timepicker and that works fine.

This is the confusing part.

To use jQuery Timepicker you'll need to include two files: jquery.timepicker.min.js and jquery.timepicker.min.css. Then, assuming you have an element in your document, with class timepicker, you can use the code on the right (or the code below, if you are reading on mobile) to initialize the plugin.

How should I include the two files?

My other experiences with npm and webpack use something like import flatpickr from "flatpickr"; for the js.

What is the recommended way to include the js for timepicker.co?

And I have never included css using npm before, I assume I will need to learn how to use css-loader and load it in from the npm package correct?