Skip to content

Releases: KZeni/Smart-Web-App-Banner

Version 1.5

15 Aug 03:06
Compare
Choose a tag to compare
  • Added swb:shown, swb:closed, swb:instructions-shown and swb:instructions-closed events/triggers to the $('#smartWebBanner') element that are fired when the banner is shown and closed, respectively. This allows actions to occur when the banner is shown/hidden (ex. $('#smartWebBanner').on('swb:closed',function(){alert('Banner was closed');});)
  • Made the HTML element have .swb-shown and .swb-closed toggled depending on if the banner is shown or closed. This allows any parts of the site to be changed based on wheter the banner is shown by referencing those CSS classes.
  • Updated script to follow JSHint.
  • Implemented SCSS for the working stylesheet.
  • Made sure "apple-mobile-web-app-title" meta tag content/value is used for the homescreen icon's text label/title instead of the page's <title> tag when present (still used as the fallback).