Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Add minimum example #304

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Check out the [examples](http://rangeslider.js.org/).
- File a [bug report](https://github.com/andreruffert/rangeslider.js/issues) for anything rangeslider.js related.
- Ask a question such as "How do I …?". Open a [StackOverflow](https://stackoverflow.com/search?q=rangeslider.js) question with rangeslider.js tag or ask in the [Gitter chat room](https://gitter.im/andreruffert/rangeslider.js).

## Quick Start

See the [Minimum example](example/minimum-example.html) and [More examples](example/index.html) to start using [rangeslider.js](http://rangeslider.js.org/) quickly.

## License
MIT © [André Ruffert](http://andreruffert.com)

Expand Down
3 changes: 1 addition & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ <h2>Combination with native <code>&lt;details&gt;</code> element</h2>
</details>
</div>

<script src="//localhost:8081"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="../dist/rangeslider.js"></script>
<script>
$(function() {
Expand Down
15 changes: 15 additions & 0 deletions example/minimum-example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/rangeslider.js/2.3.2/rangeslider.css">
</head>
<body>
<input type="range" min="10" max="1000" step="10" value="300">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rangeslider.js/2.3.2/rangeslider.js"></script>
<script>
$('input[type="range"]').rangeslider({polyfill: false});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"peerDependencies": {
"jquery": ">=1.9.0"
},
"devDependencies": {
Expand Down