NIST Header and Footer Template
This repo can be used as a source for the NIST headers and footers that are required for use on public-facing sites. It is recommended that you DO NOT copy these files into your repo, but rather link to them in-place so that you will automatically receive any changes or updates.
EXCEPTION: If you expect high traffic volume or need it to be highly available, and it does not reside on pages.nist.gov, you should copy these files to your site and use the local copy. pages.nist.gov is not highly available.
To use this repo you do NOT have to copy any files; just insert the following into your pages' HEAD section:
<link rel="stylesheet" href="https://pages.nist.gov/nist-header-footer/css/nist-combined.css">
<script src="https://code.jquery.com/jquery-3.6.2.min.js" type="text/javascript" defer="defer"></script>
<script src="https://pages.nist.gov/nist-header-footer/js/nist-header-footer.js" type="text/javascript" defer="defer"></script>
Requirements
- Compatible with JQuery 3.0+. JQuery 1.9 is included in repo for legacy purposes but should not be used. Users are advised to switch to using latest version of jQuery.
Tips
If you would like the footer to be pushed to the bottom of the browser window on short pages, add the nist-footer-bottom
class to the top level html element. Also make sure to add ID selector #main
to content body wrapper.
<html class="nist-footer-bottom">