https://github.com/pmuens/meteor-smart-banner
Meteor package for Smart Banner (http://jasny.github.io/jquery.smartbanner)
https://github.com/pmuens/meteor-smart-banner
Last synced: 5 months ago
JSON representation
Meteor package for Smart Banner (http://jasny.github.io/jquery.smartbanner)
- Host: GitHub
- URL: https://github.com/pmuens/meteor-smart-banner
- Owner: pmuens
- Created: 2015-04-29T10:38:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T19:01:19.000Z (over 8 years ago)
- Last Synced: 2025-02-17T10:47:56.477Z (8 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jQuery Smart Banner
===================jQuery Smart Banner from @jasny, https://github.com/jasny/jquery.smartbanner, packaged for Meteor.js
## Install ##
Run meteor add goltfisch:jquery-smart-banner and you can use jQuery Smart Banner on the client.## Usage ##
YouTube
...
$(function() { $.smartbanner() } )
## Options ##
$.smartbanner({
title: null, // What the title of the app should be in the banner (defaults to )
author: null, // What the author of the app should be in the banner (defaults to or hostname)
price: 'FREE', // Price of the app
appStoreLanguage: 'us', // Language code for App Store
inAppStore: 'On the App Store', // Text of price for iOS
inGooglePlay: 'In Google Play', // Text of price for Android
inAmazonAppStore: 'In the Amazon Appstore',
inWindowsStore: 'In the Windows Store', // Text of price for Windows
GooglePlayParams: null, // Aditional parameters for the market
icon: null, // The URL of the icon (defaults to )
iconGloss: null, // Force gloss effect for iOS even for precomposed
url: null, // The URL for the button. Keep null if you want the button to link to the app store.
button: 'VIEW', // Text for the install button
scale: 'auto', // Scale based on viewport size (set to 1 to disable)
speedIn: 300, // Show animation speed of the banner
speedOut: 400, // Close animation speed of the banner
daysHidden: 15, // Duration to hide the banner after being closed (0 = always show banner)
daysReminder: 90, // Duration to hide the banner after "VIEW" is clicked *separate from when the close button is clicked* (0 = always show banner)
force: null, // Choose 'ios', 'android' or 'windows'. Don't do a browser check, just always show this banner
hideOnInstall: true, // Hide the banner after "VIEW" is clicked.
layer: false, // Display as overlay layer or slide down the page
iOSUniversalApp: true // If the iOS App is a universal app for both iPad and iPhone, display Smart Banner to iPad users, too.
appendToSelector: 'body' //Append the banner to a specific selector
})