-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
41 lines (35 loc) · 2.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>National Institute of Standards and Technology</title>
<link rel="stylesheet" href="https://pages.nist.gov/nist-header-footer/css/nist-combined.css">
<script src="https://pages.nist.gov/nist-header-footer/js/nist-header-footer.js" type="text/javascript" defer="defer"></script>
</head>
<body>
<div id="main" class="nist-main">
<h1>NIST Header and Footer Template</h1>
<p>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. <b>EXCEPTION:</b> If you expect high traffic volume or need it to be highly available, and it does not reside on pages.nist.gov, you <i>should</i> copy these files to your site and use the local copy. <b>pages.nist.gov is not highly available.</b></p>
<p>Otherwise, to use this repo you do NOT have to copy any files; just insert the following into your pages' HEAD section:</p>
<pre style="white-space: pre-wrap; background-color: #eee;"><code>
<link rel="stylesheet" href="https://pages.nist.gov/nist-header-footer/css/nist-combined.css">
<script src="https://pages.nist.gov/nist-header-footer/js/nist-header-footer.js" type="text/javascript" defer="defer"></script>
</code></pre>
<p>Should you want to increase security, or prevent any future javascript changes from affecting you, you can use the versioned instance of the js file as shown below.</p>
<pre style="white-space: pre-wrap; background-color: #eee;"><code>
<link rel="stylesheet" href="https://pages.nist.gov/nist-header-footer/css/nist-combined.css">
<script src="https://pages.nist.gov/nist-header-footer/js/nist-header-footer-v-2.0.js" type="text/javascript" defer="defer"></script>
</code></pre>
<h2>Requirements</h2>
<p>Nothing other than the javascript file <code>nist-header-footer.js</code>. This version does away with the jQuery dependency which is nice. Shout out to Greg Fiumara for doing that work on his own initiative.</p>
<h2>Tips</h2>
<p>
If you would like the footer to be pushed to the bottom of the browser window on short pages, add the <code>nist-footer-bottom</code> class to the top level html element. Also make sure to add ID selector <code>#main</code> to content body wrapper.
</p>
<pre style="white-space: pre-wrap; background-color: #eee;"><code>
<html class="nist-footer-bottom">
</code></pre>
</div>
</body>
</html>