ovidiuch / dragdealer

Drag-based vanilla JS component
http://ovidiuch.github.io/dragdealer
MIT License
1.05k stars 149 forks source link

Main demo is broken/incomplete #107

Closed tiberiucorbu closed 9 years ago

tiberiucorbu commented 9 years ago

From the main doc :

image

Presumably one can understand that this code should work fine :

HTML :

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/dragdealer/0.9.8/dragdealer.min.js"></script>
</head>
<body>
<div id="demo-simple-slider" class="dragdealer">
  <div class="handle red-bar">drag me</div>
</div>
</body>
</html>

JS

new Dragdealer('demo-simple-slider');

Demo here http://jsbin.com/qepakijola/edit?html,js,output

But it doesn't, one needs also the style, so please point that out too!

ovidiuch commented 9 years ago

Good point. I think it has more to do with the install README section than the demo page, though. Feel free to come up with a PR to update the instructions with CSS included. Thanks!