All Projects → eusonlito → Jquery.applink

eusonlito / Jquery.applink

Licence: apache-2.0
Launch native apps from web page links for mobile and desktop devices

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Jquery.applink

Django Crud Ajax Login Register Fileupload
Django Crud, Django Crud Application, Django ajax CRUD,Django Boilerplate application, Django Register, Django Login,Django fileupload, CRUD, Bootstrap, AJAX, sample App
Stars: ✭ 118 (-7.09%)
Mutual labels:  jquery
Femtojs
femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
Stars: ✭ 122 (-3.94%)
Mutual labels:  jquery
Bootstrap4 Website
Website built with bootstrap 4 Framework
Stars: ✭ 124 (-2.36%)
Mutual labels:  jquery
Vue Datatables Net
Vue jQuery DataTables.net wrapper component
Stars: ✭ 119 (-6.3%)
Mutual labels:  jquery
Xzoom
jQuery Zoom Gallery plugin
Stars: ✭ 120 (-5.51%)
Mutual labels:  jquery
Fotorama
A simple, stunning, powerful jQuery gallery.
Stars: ✭ 1,567 (+1133.86%)
Mutual labels:  jquery
Jquery Validation
jQuery Validation Plugin library sources
Stars: ✭ 10,141 (+7885.04%)
Mutual labels:  jquery
Thedesk
Mastodon/Misskey Client for PC.
Stars: ✭ 127 (+0%)
Mutual labels:  jquery
Imagelightbox
Image Lightbox, Responsive and Touch‑friendly
Stars: ✭ 121 (-4.72%)
Mutual labels:  jquery
Charroom
PHP + Swoole 聊天室
Stars: ✭ 125 (-1.57%)
Mutual labels:  jquery
Fcup
jquery大文件分片上传插件-fcup.js
Stars: ✭ 120 (-5.51%)
Mutual labels:  jquery
Maskew
▰ Add some diagonal rhythm to your elements
Stars: ✭ 120 (-5.51%)
Mutual labels:  jquery
Btabs
A jQuery plugin open pages in tab, based on Bootstrap2,3
Stars: ✭ 124 (-2.36%)
Mutual labels:  jquery
Xoopscore
Core Framework for next version of XOOPS CMS: 2.6.0
Stars: ✭ 118 (-7.09%)
Mutual labels:  jquery
Widget
A set of widgets based on jQuery&&javascript. 一套基于jquery或javascript的插件库 :轮播、标签页、滚动条、下拉框、对话框、搜索提示、城市选择(城市三级联动)、日历等
Stars: ✭ 1,579 (+1143.31%)
Mutual labels:  jquery
Universal Tilt.js
🎆 Parallax tilt effect library
Stars: ✭ 117 (-7.87%)
Mutual labels:  jquery
Water Monitoring System
Water Monitoring System is an IOT based Liquid Level Monitoring system that has mechanisms to keep the user alerted in case of liquid overflow or when tank depletes.
Stars: ✭ 122 (-3.94%)
Mutual labels:  jquery
Sidebar
Sidebars for web apps
Stars: ✭ 127 (+0%)
Mutual labels:  jquery
Midia
Simple Media manager for your Laravel project
Stars: ✭ 126 (-0.79%)
Mutual labels:  jquery
Ct Material Kit Pro
Premium Bootstrap 4 UI Kit based on Google's Material Design
Stars: ✭ 123 (-3.15%)
Mutual labels:  jquery

jquery.applink

Create links to native apps from mobile (or minor cases from desktop) browsers.

HTML links should have the web url as default, but you can add an alternate link using the registered app protocol to invoke apps like Facebook, Twitter, Foursquare, etc...

Example:

<a href="https://facebook.com/me" data-applink="fb://profile">My Facebook Profile</a>

Also, you can use it to share your page, like:

<a href="http://twitter.com/intent/tweet?url=<?php echo $url; ?>&amp;text=<?php echo urlencode($text); ?>" data-applink="twitter://post?url=<?php echo $url; ?>&amp;text=<?php echo urlencode($text); ?>">Share My Web in Twitter</a>

This action will try to open the Twitter mobile app, and if is not available, it will open the default share modal at browser.

You have a extended schemes list available at http://wiki.akosma.com/IPhone_URL_Schemes and http://handleopenurl.com/scheme

Plugin detects the target="_blank" tag attribute, but take care because the window will be open with javascript function window.open and can be blocked by browser.

To enable the plugin:

$(document).ready(function () {
    $('a[data-applink]').applink();
});

All options and default values:

$(document).ready(function () {
    $('a[data-applink]').applink({
        popup: 'auto', // disable/enable share popup created by plugin. If auto, only will be enabled to popupDomains domains
        popupDomains: 'twitter|facebook', // If "popup" option is auto, it will check this domains to open a domain or redirect to page
        desktop: false, // disable/enable native app check for no mobile devices
        data: 'applink' // load native links from data-XXXXXX attribute,
        timeout: 1500 // time in ms to detect app before launch HTTP link (only when is mobile and desktop is false)
    });
});

Also, if you are using this plugin to set native links to a large list, you can use the delegate function to get the best performance:

$(document).ready(function () {
    $('.links-list').applink({
        popup: 'auto', // disable/enable share popup created by plugin. If auto, only will be enabled to popupDomains domains
        popupDomains: 'twitter|facebook', // If "popup" option is auto, it will check this domains to open a domain or redirect to page
        desktop: false, // disable/enable native app check for no mobile devices
        delegate: 'a[data-applink]', // Delegate action into the parent element (default is null)
        data: 'applink' // load native links from data-XXXXXX attribute,
        timeout: 1500 // time in ms to detect app before launch HTTP link (only when is mobile and desktop is false)
    });
});

Enjoy!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].