{"repo":"ain/smartbanner.js","free":true,"listed":false,"github":"https://github.com/ain/smartbanner.js","clone":"git clone https://github.com/ain/smartbanner.js.git","description":"Customisable and lightweight smart app banner for iOS and Android","language":"JavaScript","stars":655,"topics":["ios","android","javascript","ecmascript6","webdev","mobile","nodejs","npm","bower","smartbanner"],"license":"GPL-3.0","category":"mobile-apps","readme_excerpt":"smartbanner.js Customisable and lightweight smart app banner for iOS and Android. &nbsp; Features - Populating smartbanner is as easy as adding meta tags, no JavaScript knowledge required - Default Smart App Banner like design - Customisable info with i18n support and design by using - automatically generated smartbanner-- class on wrapper - custom design modifier for externally defined styles or same design on all platforms - Close button that closes the banner and sets cookie to keep banner closed - for current session or for defined time - site-wide or at a designated path - Platform-specific app icon and View button - User Agent specific targeting - Pure JavaScript coming in at 6.6KB minified ! - Events emitted for API implementations - ECMAScript 6 ( es2015 ) source Basic Usage smartbanner.js works automagically given following meta tags: Additionally, JavaScript and CSS have to be included: Advanced Usage Hide the smartbanner for certain User Agents There are cases where you do not want to show the smart app banner on all Android and/or all iOS devices. For example: your app is available only for some Android/iOS versions your app is only available on iPhone, but not iPad your app is a web app which also shows this website, but of course should not show the smart app banner. In this case you can define a regular expression, which matches all user agent strings that should be excluded. Just add another meta tag like the following: This regular expression would match any ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ain","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ain/smartbanner.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}