Browse code

Use robots.txt friendly file structure

Benjamin Roth authored on10/03/2016 11:20:29
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
1
+# jQuery Waypoints
2
+
3
+Waypoints is a jQuery plugin that makes it easy to execute a function whenever you scroll to an element.
4
+
5
+```js
6
+$('.thing').waypoint(function() {
7
+  alert('You have scrolled to a thing.');
8
+});
9
+```
10
+If you're new to Waypoints, check out the [Get Started](http://imakewebthings.github.com/jquery-waypoints/#get-started) section.
11
+
12
+[Read the full documentation](http://imakewebthings.github.com/jquery-waypoints/#docs) for more details on usage and customization.
13
+
14
+## Shortcuts
15
+
16
+In addition to the normal Waypoints script, extensions exist to make common UI patterns just a little easier to implement:
17
+
18
+- [Infinite Scrolling](http://imakewebthings.github.com/jquery-waypoints/shortcuts/infinite-scroll)
19
+- [Sticky Elements](http://imakewebthings.github.com/jquery-waypoints/shortcuts/sticky-elements)
20
+
21
+## Examples
22
+
23
+Waypoints can also be used as a base for your own custom UI patterns. Here are a few examples:
24
+
25
+- [Scroll Analytics](http://imakewebthings.github.com/jquery-waypoints/examples/scroll-analytics)
26
+- [Dial Controls](http://imakewebthings.github.com/jquery-waypoints/examples/dial-controls)
27
+
28
+## AMD Module Loader Support
29
+
30
+If you're using an AMD loader like [RequireJS](http://requirejs.org/), Waypoints registers itself as a named module, `'waypoints'`. Shortcut scripts are anonymous modules.
31
+
32
+## Development Environment
33
+
34
+If you want to contribute to Waypoints, I love pull requests that include changes to the source `coffee` files as well as the compiled JS and minified files. You can set up the same environment by running `make setup` (which just aliases to `npm install`). This will install the version of CoffeeScript and UglifyJS that I'm using. From there, running `make build` will compile and minify all the necessary files. Test coffee files are compiled on the fly, so compile and minify do not apply to those files.
35
+
36
+## License
37
+
38
+Copyright (c) 2011-2014 Caleb Troughton
39
+Licensed under the [MIT license](https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt).
40
+
41
+## Support
42
+
43
+Unit tests for Waypoints are written with [Jasmine](http://pivotal.github.com/jasmine/) and [jasmine-jquery](https://github.com/velesin/jasmine-jquery).  You can [run them here](http://imakewebthings.github.com/jquery-waypoints/test/). If any of the tests fail, please open an issue and include the browser used, operating system, and description of the failed test.
44
+
45
+## Donations
46
+
47
+[![Gittip donate button](http://img.shields.io/gittip/imakewebthings.png)](https://www.gittip.com/imakewebthings/ "Donate weekly to this project using Gittip")