Skip to content

abcnews/remove-fallback-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remove fallback content

A little code snippet that can be added to ease the use of fallback content which should be removed if the viewing environment supports javascript.

To use it, surround the content that should be removed in #remove and #endremove tags. For example:

#remove
Remove this one.
#endremove
But keep this one.

The 'removed' content will be hidden, but will be visible when the page is printed. The element immediately following the removed content (usually the javascript-based replacement) will be hidden when printed.

This project uses aunty.

Authors