Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
# -*- mode: gitignore; -*-
node_modules
.DS_Store
/node_modules/
/bower_components/
/coverage/

### PHP storm ###
.idea
.idea/*
.idea/workspace.xml
atlassian-ide-plugin.xml
.settings

### vim ###
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~

### Emacs ###
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*


.project
*.diff
*.patch
node_modules
bower_components
temp
.tmp
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
node_js:
- "0.12.0"
- '6.5'
before_install:
- npm update -g npm
- npm install -g grunt-cli
- npm install -g bower
- bower install
before_script:
- grunt
- grunt
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ module.exports = function (grunt) {
}
}
},
/* Run JSONLint on our configuration files */
jsonlint: {
configFiles: {
src: ['bower.json', 'package.json', '.bowerrc', '.jshintrc', '.tenonrc']
}
},
jshint: {
options: {
reporter: require('jshint-stylish')
Expand Down Expand Up @@ -90,5 +96,5 @@ module.exports = function (grunt) {
// Default task.
grunt.registerTask('default', ['test', 'clean', 'uglify']);
grunt.registerTask('server', ['connect', 'watch']);
grunt.registerTask('test', ['jshint', 'karma:dev']);
grunt.registerTask('test', ['jsonlint', 'jshint', 'karma:dev']);
};
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jQuery Live Regions

[![Build Status](https://travis-ci.org/karlgroves/jquery-live-regions.svg?branch=master)](https://travis-ci.org/karlgroves/jquery-live-regions)

This is a simple, easy to use plugin for managing live regions on a page, including adding new content or swapping content in the live region.

## Getting Started
Expand Down Expand Up @@ -36,7 +38,7 @@ Some changes to content on a page should trigger notifications to the user of as

### Super simple method

```
```
$('#foo').liveRegion();
```

Expand All @@ -56,7 +58,7 @@ Consider the following use case where a user searches for clothing products. Whe
var notifer = $('#notifier');
notifier.liveRegion({
label: 'Search Status',
role: 'region',
role: 'region',
live: 'assertive'
});
```
Expand Down Expand Up @@ -94,7 +96,7 @@ Note: You are not required to provide any of these values. They will be set to s
* busy - is the live region busy or not. Valid values are 'true' and 'false'. As before, must be strings.
* className - CSS class name to be added to the node
* replace - boolean representing whether or not the current text is to be replaced or not. If false, the text (defined below) will be appended to the live region node. If true, all existing content is removed first.
* text - string of text (or HTML) to be inserted into the live region.
* text - string of text (or HTML) to be inserted into the live region.

### Sample use with all available properties:

Expand Down Expand Up @@ -129,7 +131,7 @@ $('#foo').liveRegion({

// when waiting for the new content
if(we-are-waiting-for-the-new-content){
$('#foo').liveRegion({
$('#foo').liveRegion({
busy: 'true'
});
}
Expand Down
2 changes: 2 additions & 0 deletions coverage/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: K9koX8JPMnQdvF4axDqy0tQUZrJRMlcGn
Loading