<commit_before># swipeButton.js

SwipeButton is a jQuery Mobile plugin which allows developers to add iPhone style buttons to listview rows by attaching to the swipe event. This project contains everything you need to get started.

## jQuery Mobile 1.1 compatible
jQuery Mobile made a slight change in version 1.1 with the way they create buttons inside list views. swipeButton has been updated to account for that change and offers a test case for your perusal.

## Example
View a simple [demo of swipeButton](http://andymatthews.net/code/swipebutton/)

## Quick start

Clone the git repo - `git clone <EMAIL>:commadelimited/jquery.swipeButton.js.git` - or [download it](https://github.com/commadelimited/jquery.swipeButton.js/zipball/master)

## Usage & Documentation
Minimum usage requires that you override the default click event. All other arguments are optional.

	$('#swipeMe li').swipeDelete({
		click: function(e){
			e.preventDefault();
			$(this).parents('li').remove();
		}
	});

	$('#swipeMe li').swipeDelete({
		direction: 'swiperight', // standard jquery mobile event name
		btnLabel: 'Delete',
		btnTheme: 'b',
		btnClass: 'aSwipeBtn',
		click: function(e){
			e.preventDefault();
			var url = $(e.target).attr('href');
			$(this).parents('li').remove();
			$.post(url, function(data) {
				console.log(data);
			});
		}
	});

## Screenshots
![Before initial swipe](http://andymatthews.net/code/swipeButton/swipebutton-01.jpg)
![After initial swipe](http://andymatthews.net/code/swipeButton/swipebutton-02.jpg)

## Contributing

You are invited to contribute code and suggestions to this project. The more the merrier.

## Project Info

* Source: http://github.com/commadelimited/jquery.swipeButton.js
* Twitter: [http://twitter.com/commadelimited](http://twitter.com/commadelimited)

### 3rd party libraries required:

* jQuery: MIT/GPL license
* jQuery Mobile: MIT/GPL license

### Custom bits:

Public domain<commit_msg>Tweaking verbiage.<commit_after># swipeButton.js

SwipeButton is a jQuery Mobile plugin which allows developers to add iPhone style buttons to listview rows by attaching to the swipe event. This project contains everything you need to get started.

## jQuery Mobile 1.1 compatible
jQuery Mobile made a slight change in version 1.1 with the way they create buttons inside list views. swipeButton has been updated to account for that change and offers a test case for your perusal.

## Example
View a simple [demo of swipeButton](http://andymatthews.net/code/swipebutton/)

## Quick start

Clone the git repo - `git clone <EMAIL>@github.com:commadelimited/jquery.swipeButton.js.git` - or [download it](https://github.com/commadelimited/jquery.swipeButton.js/zipball/master)

## Usage & Documentation
Minimum usage requires that you override the default click event. All other arguments are optional.

	$('#swipeMe li').swipeDelete({
		click: function(e){
			e.preventDefault();
			$(this).parents('li').remove();
		}
	});

	$('#swipeMe li').swipeDelete({
		direction: 'swiperight', // standard jquery mobile event name
		btnLabel: 'Delete',
		btnTheme: 'b',
		btnClass: 'aSwipeBtn',
		click: function(e){
			e.preventDefault();
			var url = $(e.target).attr('href');
			$(this).parents('li').remove();
			$.post(url, function(data) {
				console.log(data);
			});
		}
	});

## Screenshots
![Before initial swipe](http://andymatthews.net/code/swipeButton/swipebutton-01.jpg)
![After initial swipe](http://andymatthews.net/code/swipeButton/swipebutton-02.jpg)

## Contributing

You are invited to contribute code and suggestions to this project. The more contributors the merrier.

## Project Info

* Source: http://github.com/commadelimited/jquery.swipeButton.js
* Twitter: [http://twitter.com/commadelimited](http://twitter.com/commadelimited)

### 3rd party libraries required:

* jQuery: MIT/GPL license
* jQuery Mobile: MIT/GPL license

### Custom bits:

Public domain
{'fraction_non_alphanumeric': 0.12509593246354567, 'fraction_numerical': 0.004604758250191865, 'mean_word_length': 4.577746077032811, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2513090', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1175, 'n_words': 369}