🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

shortify is a lightweight jQuery plugin that automatically shorten a given URL using Google URL Shortener (goo.gl) or Bitly service.

URL URL-Shortener

Documentation

jQuery Shortify

jQuery plugin to shorten URL.

Getting Started

Include jquery.shortify.js after jquery.js.

<script src='jquery.js'></script> <script src='jquery.shortify.js'></script>

Option

Example

HTML

<a class='someurl' href='http://www.example.com'>example.com</a>

JavaScript

  • Default :
$('.someurl').shortify();
$('.someurl').shortify({     service: 'googl',     apikey: 'YOUR GOO.GL API KEY' // optional });
$('.someurl').shortify({     service: 'bitly',     apikey: 'YOUR BIT.LY API KEY' // required });

License

Released under the MIT License.


You May Also Like