├── changelog.markdown ├── .gitignore ├── .jshintignore ├── .editorconfig ├── .jshintrc ├── package.json ├── readme.markdown ├── license └── sell.js /changelog.markdown: -------------------------------------------------------------------------------- 1 | # 1.0.0 IPO 2 | 3 | - Initial Public Release 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | .DS_Store 4 | Thumbs.db 5 | -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components 3 | dist 4 | example 5 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "newcap": true, 5 | "noarg": true, 6 | "noempty": true, 7 | "nonew": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "trailing": true, 12 | "boss": true, 13 | "eqnull": true, 14 | "strict": true, 15 | "immed": true, 16 | "expr": true, 17 | "latedef": "nofunc", 18 | "quotmark": "single", 19 | "validthis": true, 20 | "indent": 2, 21 | "node": true, 22 | "browser": true 23 | } 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sell", 3 | "version": "1.0.0", 4 | "description": "Cross-browser text input selection made simple", 5 | "main": "sell.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/bevacqua/sell.git" 9 | }, 10 | "author": "Nicolas Bevacqua (http://bevacqua.io/)", 11 | "license": "MIT", 12 | "bugs": { 13 | "url": "https://github.com/bevacqua/sell/issues" 14 | }, 15 | "homepage": "https://github.com/bevacqua/sell" 16 | } 17 | -------------------------------------------------------------------------------- /readme.markdown: -------------------------------------------------------------------------------- 1 | # Sell 2 | 3 | > Cross-browser text input selection made simple 4 | 5 | # Install 6 | 7 | ```shell 8 | npm install sell --save 9 | ``` 10 | 11 | # Usage 12 | 13 | Note that `el` must be either an `` element or a `