jQuery Link is a jQuery plugin for creating various anchors
- replace target="_blank"
- detection links
- custom links
- Include jQuery and
jquery.link.min.js
into your site
Set up jQuery Link:
$(function () {
var a = $('a');
a.link({
tabs: false,
links: false,
auto: false,
twitter: true
});
});
- Open the file
html/demo.html
in your browser
property | description |
---|---|
tabs | open new tab after click |
links | custom link |
auto | detect urls |
detect twitter links |
I had plans to create just plugin with current functionality but in process I invented some additional tasks for the feature:
- any objects as link
- target _blank
- data-url
- data-target
- spoilers show/hide
- localScroll
- twitter detection @twitteruser
- custom social links like twitter (pedefined facebook, instagram etc.)
- any http links wrap as link
- hashtags
- pause before relocation