Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
angular-add-to-home-screen
Advanced tools
An AngularJS directive to display an "add to homescreen" dialog for iOS 7 and iOS 6
An AngularJS directive to display an "add to homescreen" dialog for iOS 7 and iOS 6.
Try it out (hint: your user agent needs to identify as an iOS device).
bower install angular-add-to-home-screen
Hop on over to the releases page and grab angular-add-to-homescreen.js
and aaths.css
or download the source code and use the files in the dist/
folder
dist/angular-add-to-home-screen.js
and include it in your javascript payloadangular.module('myApp', ['angularAddToHomeScreen']);
styles/aaths.css
in your app's CSS :cool:Will show a dialog with the proper icons for the platform
<div ng-add-to-homescreen></div>
This plugin does not style anything for you. It is completely up to you to
style the dialog in whatever way makes sense for your application. However, this is
a fully styled example in the example/
directory. Check out example.css
. Feel
free to just copy the styles into your project.
div.aaths-container
a.aaths-close // close button
div.aaths-instructions
span.aaths-iOS6-icon // "share" icon if iOS6
span.aaths-iOS7-icon // "share" icon if iOS7
If you are using this script you might want to make a modal window pop up with the instructions, or you might want to make one of those trendy app banners up top. I don't discriminate, use this to do the hard stuff and you can style it however you want.
Issues and pull requests greatly appreciated. Please be on the lookout for:
MIT
FAQs
An AngularJS directive to display an "add to homescreen" dialog for iOS 7 and iOS 6
The npm package angular-add-to-home-screen receives a total of 2 weekly downloads. As such, angular-add-to-home-screen popularity was classified as not popular.
We found that angular-add-to-home-screen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.