You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).