diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..71aca2f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +index.html linguist-documentation +src/index.html linguist-documentation +static/jquery-example.html linguist-documentation diff --git a/README.md b/README.md index 67269dd..194987e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -

-Please visit: [http://meandmax.github.io/lory/](http://meandmax.github.io/lory/ "lory") +Please visit: [http://meandmax.github.io/lory/](http://meandmax.github.io/lory/ 'lory') > Touch enabled minimalistic slider written in vanilla JavaScript. @@ -20,9 +19,6 @@ Please visit: [http://meandmax.github.io/lory/](http://meandmax.github.io/lory/ [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) - -[![Build Status](https://saucelabs.com/buildstatus/meandmax?saucy)](https://saucelabs.com/beta/builds/ed0e8606c4d84e31b3528326192e0a46) - ## Download lory is released under the MIT license & supports modern environments. @@ -39,29 +35,29 @@ yarn add lory.js ## Consume it as an ES2015 module: ```js - import {lory} from 'lory.js'; +import { lory } from 'lory.js'; - document.addEventListener('DOMContentLoaded', () => { - const slider = document.querySelector('.js_slider'); +document.addEventListener('DOMContentLoaded', () => { + const slider = document.querySelector('.js_slider'); - lory(slider, { - // options going here - }); + lory(slider, { + // options going here }); +}); ``` ## Consume it as an commonJS module: ```js - var lory = require('lory.js').lory; +var lory = require('lory.js').lory; - document.addEventListener('DOMContentLoaded', function() { - var slider = document.querySelector('.js_slider'); +document.addEventListener('DOMContentLoaded', function() { + var slider = document.querySelector('.js_slider'); - lory(slider, { - // options going here - }); + lory(slider, { + // options going here }); +}); ``` ## Install with bower @@ -130,7 +126,8 @@ yarn run karma-local * (optional) define here the style definitions which should be applied on the slider container * e.g. width including further controls like arrows etc. */ -.slider {} +.slider { +} .frame { /** @@ -375,23 +372,24 @@ li { Please, do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/lory) where maintainers are looking at questions tagged with `loryJS`. StackOverflow is a much better place to ask questions since: -* There are hundreds of people willing to help on StackOverflow -* Questions and answers stay available for public viewing so your question / answer might help someone else -* The StackOverflow voting system assures that the best answers are prominently visible. + +- There are hundreds of people willing to help on StackOverflow +- Questions and answers stay available for public viewing so your question / answer might help someone else +- The StackOverflow voting system assures that the best answers are prominently visible. To enforce this rule will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow. ## Browser Support -* Chrome -* Safari -* FireFox -* Opera -* Internet Explorer 10+ +- Chrome +- Safari +- FireFox +- Opera +- Internet Explorer 10+ -* Internet Explorer 9 (graceful, without transitions + classlistp) - - graceful, without transitions - - you need to polyfill classlist (https://github.com/eligrey/classList.js/) +- Internet Explorer 9 (graceful, without transitions + classlistp) + - graceful, without transitions + - you need to polyfill classlist (https://github.com/eligrey/classList.js/) ## Copyright