Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.
/ jquery.link Public archive

jQuery plugin for links detection and manipulations

License

Notifications You must be signed in to change notification settings

andreymatin/jquery.link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Link

jQuery Link is a jQuery plugin for creating various anchors

Features:

  • replace target="_blank"
  • detection links
  • custom links

Usage

  • 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
      });

    });

Examples

  • Open the file html/demo.html in your browser

Configuration

property description
tabs open new tab after click
links custom link
auto detect urls
twitter detect twitter links

Todo

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

Inspiration

About

jQuery plugin for links detection and manipulations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published