1.1.4 • Published 7 years ago

js-jquery-slider v1.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Include

To use the package, get the sliderManager object by using:

const { sliderManager } = require('js-jquery-slider')

After including the sliderManager run either functions:

sliderManager.startSliders() //To run all sliders on page
sliderManager.startSliderById(id) //To run only a specific slider

Styles

The slider is completely hackable, meaning that you can implement your own design.

If you want however, there are 2 styles inclueded in the package: blueSlider and greenSlider.

Include them from the dist/styles/ folder as so:

import styles from 'js-jquery-slider/dist/styles/blueSlider.css';

Usage

After including the package, use the following structure to show a slider:

<div class="sliderDiv">
   <p class="sliderContainer">
     <span class="sliderHighlight"></span>
     <input class="slider" type="range" sliderValues="1~2~3~4~5~6~7"
     sliderEntryValue="3" />
     <output class="sliderOutput"></output>
  </p>
</div>

Use the sliderValues="" to pass the values to the slider, and sliderEntryValue="" to choose the default value. Separate the values by using ~.

The input element will have 2 attributes you can use: sliderCurrentIndex and sliderCurrentValue.

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago