Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmetozantekin/another
Little jQuery plugin for add alternative href attributes to anchors
https://github.com/ahmetozantekin/another
Last synced: about 1 month ago
JSON representation
Little jQuery plugin for add alternative href attributes to anchors
- Host: GitHub
- URL: https://github.com/ahmetozantekin/another
- Owner: ahmetozantekin
- Created: 2016-01-06T13:52:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-23T10:35:05.000Z (about 9 years ago)
- Last Synced: 2024-10-17T18:27:44.084Z (2 months ago)
- Language: JavaScript
- Homepage: http://frknbasaran.github.io/another
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Another JS
Another JS is a little library which define alternative sources for your links.
When your ```href``` target is down or fail because of somethings, ```another``` automatically route to ```data-another``` target.#### Install with Bower
```bash
bower install another
```#### Easy Integration
- Include jQuery (1.11.3)
- Call in HTML
- Add ```data-another``` attribute to element which you want
- Add ```another()``` relation to your element in js code#### Step 1: Include JS Files into your HTML
```html
```#### Step 2: Add attribute to your link element
```html
It's my cool link text
```#### Step 3: Activate plugin for element in JS
```javascript$(function() {
$('a').another();
})```