Last active
September 17, 2015 13:01
-
-
Save andreruffert/abcaee014c5c3a5d391a to your computer and use it in GitHub Desktop.
rangeslider.js - browserify test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>rangeslider.js - browserify test</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/rangeslider.js/2.0.2/rangeslider.min.css"> | |
</head> | |
<body> | |
<input type="range"> | |
<script src="static/javascripts/bundle.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = require('jquery'); | |
require('rangeslider.js'); | |
$('input[type="range"]').rangeslider({ | |
polyfill: false | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "mkdirp static/javascripts && browserify main.js -o static/javascripts/bundle.js" | |
}, | |
"devDependencies": { | |
"browserify": "^11.1.0", | |
"mkdirp": "^0.5.1" | |
}, | |
"dependencies": { | |
"jquery": "^2.1.4", | |
"rangeslider.js": "^2.0.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment