Skip to content

Stop your links from leaving full screen mode on iOS devices.

Notifications You must be signed in to change notification settings

robflaherty/jQuery.stayInWebApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

This jQuery plugin will stop links from leaving full screen mode on iOS devices. Other side effects may be included.

$(function() {
	$.stayInWebApp();
});

This use only links with the class stay.

$(function() {
	$.stayInWebApp('a.stay');
});

Full links (starting with http) will still open in Safari, as well as links with target="_blank".


Thanks to Bryan Murdaugh and David Leininger for the original starting script (mostly for discovering that self.location works).

Thanks to Ben Nadel for posting about how to detect iOS full screen mode.

About

Stop your links from leaving full screen mode on iOS devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%