Skip to content

Ceratech/add-to-ios-homescreen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add to Homescreen call out

Script for mobile iOS devices, it automatically shows an overlaying message encouraging to add the web app to the homescreen. Compatible with iOS 6+.

Installation

Add addtohomescreen.css and addtohomescreen.js to the head of your projects index file. Then, call addToHomescreen(); as soon as possible. For example:

<head>
<title>Add To Home</title>
...
<link rel="stylesheet" type="text/css" href="../../style/addtohomescreen.css">
<script src="../../src/addtohomescreen.js"></script>
<script>
addToHomescreen();
</script>
</head>

For more, consult the original project's website.

About

Add to home screen call-out for mobile iOS devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.7%
  • CSS 18.3%