Giter Club home page Giter Club logo

applink's Introduction

AppLink

Open apps with a URI Scheme from a webpage

AppLink allows you to open apps with a URI Scheme from a webpage instead of for instance opening widgets. Useful for Facebook, Tiwtter, Pinterest sharing.

Usage

Install using bower: bower install applink
Or using npm: npm install applink
Or just by downloading the tarball

	var twitter = new AppLink()

	twitter.open({
		error: function () {
			window.open(encodeURI("https://twitter.com/intent/tweet?text=Look at this awesome thing"), "_blank", "toolbar=0,personalbar=0,resizable,scrollbars,status,width=550,height=450,top=" + Math.round((screen.height - 450)/2) + ",left=" + Math.round((screen.width - 550)/2))
		},
		success: function () {},
		nativeURL: encodeURI("twitter://post?message=Look at this awesome thing")
	})

TODO

  • Testing

Changelog

  • 0.1.0 - First release

applink's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zku8

applink's Issues

Collaboration on a robust feature-set

Hi there!

I've been working on a similar module for a while. My module, thus far, has been limited to the Drupal php framework. However, the core of the functionality is naturally bound to the front-end.

Along the way, I've learned a lot from my users:

  • use-cases: like if we can't go to the app, go the store instead, separate iPad/iPhone Apps
  • edge-cases: Android Chrome needs Intent Urls instead, and doesn't like the iframe trick
  • fancy-cases: sometimes it would be nice to pass the current query-string to the App URL
  • testy-cases: So many changes, it would be nice to get some testing going to know we didn't break anything and get โœ… pretty green checkmarks

I realized since most of it is front-end I should move that to it's own npm/bower project, then I found you've already got a name and a start.

I'd love to collaborate! ๐Ÿ˜ธ Let me know what you think about what I've got.

Core Front-end
https://github.com/robcolburn/drupal-app_link/blob/7.x-1.x/js/app_link.js

Test Script
https://github.com/robcolburn/drupal-app_link/blob/7.x-1.x/test/app_link.js

Note: Code was developed as a Drupal module, so code style attempts to follow Drupal's guidelines. I personally, don't have any preference on naming or code-style, and I'll readily adapt to yours. Though I would like to bring over niceties, like linting, testing, and automation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.