-
Notifications
You must be signed in to change notification settings - Fork 41
/
header.html
76 lines (63 loc) · 2.3 KB
/
header.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Feed Validator Test Cases</title>
<style media="screen">@import "../../../css/common.css";
@import "../../../css/documentation.css";</style>
<script>
window.onload=function() {
if(!document.getElementsByTagName || !document.createElement) return;
var images = document.getElementsByTagName("IMG");
for (var i=0; i<images.length; i++) {
var image = images[i];
if (image.src.indexOf("/icons/text.gif") >= 0) {
image.src="/icons/unknown.gif";
}
if (image.src.indexOf("/icons/unknown.gif") >= 0) {
image.src="../../../favicon.ico";
image.hspace=2;
image.vspace=1;
var a = document.createElement('a');
a.href="../../../check.cgi?url=" +
escape(image.nextSibling ? image.nextSibling.nextSibling.href :
image.parentNode.nextSibling.childNodes[0].href);
image.title="validate";
image.parentNode.replaceChild(a,image);
image.border = 0;
a.appendChild(image);
}
}
var h2 = document.getElementsByTagName("h2");
if (h2.length && document.URL) {
var tcindex = document.URL.indexOf('testcases/rss/');
if (tcindex >= 0) {
var qindex = document.URL.lastIndexOf('/');
var section = document.URL.substring(tcindex+15, qindex);
if (/[0-9]/.test(section)) {
h2[0].firstChild.nodeValue = "Section ";
var a = document.createElement('a');
a.href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section." + section;
a.appendChild(document.createTextNode(section));
h2[0].appendChild(a);
}
var p = document.createElement('blockquote');
p.appendChild(document.createTextNode('To validate, click on the '));
var image = document.createElement('img');
image.src= "../../../favicon.ico";
p.appendChild(image);
p.appendChild(document.createTextNode(' icon.'));
h2[0].parentNode.insertBefore(p, h2[0].nextSibling);
}
}
}
</script>
</head>
<body>
<div id="logo">
<h1><a href="../../.."><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
<p>Test Cases</p>
<a class="skip" href="#startnavigation">Jump to navigation</a>
</div> <!--logo-->
<div id="main">
<h2>Index</h2>