Skip to content

maniple/old-browser-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

old-browser-alert

This is a simple notification when an old browser is detected. Currently only old Internet Explorer (prior to 8.0) and Firefox (prior to 1.3.6) versions are detected.

Installation

In main application directory:

maniple module-install /path/to/old-browser-alert

Usage

Make sure the bootstrap class of a module has 'old-browser-alert' added to _moduleDeps property, to avoid any "view helper not found" exceptions.

In view scripts (typically in layouts) before HEAD tag insert:

{% do oldBrowserAlert().appendStyle() %}

Make sure headStyle() helper is rendered in the layout's HEAD tag. At the beginning of the BODY tag insert:

{{ oldBrowserAlert() }}

Whenever an old browser is detected the alert is rendered in the view script, otherwise nothing happens.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published