This repository has been archived by the owner on May 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path04 - cleanup.html
161 lines (108 loc) · 6.42 KB
/
04 - cleanup.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ditching jQuery</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles -->
<style type="text/css">
body {
max-width: 40em;
width: 88%;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<h1 id="anchors-away">Hoist the Sails!</h1>
<div data-toc></div>
<p>Fore furl holystone mutiny lugsail hempen halter Brethren of the Coast Corsair. Loaded to the gunwalls lookout brig hands blow the man down case shot jolly boat hempen halter. Gun gunwalls chase guns furl hornswaggle dance the hempen jig yard hail-shot. Pressgang quarterdeck prow lugger spanker fluke broadside reef.</p>
<p>Hempen halter me gangplank snow smartly boom fire ship aft. Rope's end draught interloper schooner ho wench jury mast lateen sail. Pillage lanyard nipperkin plunder crack Jennys tea cup hogshead chantey mizzenmast. Spanker blow the man down Buccaneer Sail ho rum tender warp brigantine.</p>
<h2 id="man-o-war">Man O' War</h2>
<p>Man-of-war booty brigantine fire ship tack no prey, no pay wherry lee. Reef heave to line chandler fore cable smartly me. Avast list spanker Arr fathom American Main lookout grapple. Jolly boat black spot chandler list chantey pinnace brig Yellow Jack.</p>
<p>Chantey Davy Jones' Locker snow jib careen galleon Admiral of the Black lass. Rum booty heave to grog hempen halter gangway long clothes wherry. Mutiny chase Sea Legs grapple crow's nest wherry jury mast lateen sail. Hogshead clap of thunder loot port swing the lead run a rig booty Chain Shot.</p>
<h3 id="corsair">Corsair</h3>
<p>Line Corsair haul wind pink provost hardtack keelhaul hang the jib. Splice the main brace matey hornswaggle strike colors run a shot across the bow cackle fruit hang the jib jack. Sheet bounty wherry nipperkin belay flogging Chain Shot main sheet. Lad Spanish Main barque port smartly Chain Shot deadlights Jack Ketch.</p>
<h3>Shiver Me Timbers!</h3>
<p>Flogging heave down sloop me squiffy barkadeer loot chantey. Ye spike port lugsail belaying pin nipperkin loot yardarm. Prow gangplank six pounders chase guns pressgang chandler Shiver me timbers piracy. Hearties Shiver me timbers sloop driver fire in the hole gaff prow gally.</p>
<h2 id="the-gangplank">The Gangplank</h2>
<p>Code of conduct gangplank reef sails draft pillage jack Brethren of the Coast loaded to the gunwalls. Clap of thunder deadlights parrel ye barkadeer hands me doubloon. Pressgang ballast chase pirate topmast dead men tell no tales gunwalls ye. Crack Jennys tea cup square-rigged gaff pirate grapple jolly boat bilged on her anchor lee.</p>
<p>Pirate Round square-rigged weigh anchor dead men tell no tales landlubber or just lubber mutiny draft spanker. Mizzenmast lad spirits gibbet jury mast stern maroon transom. Clap of thunder Gold Road Arr hempen halter blow the man down broadside pink cutlass. Pinnace smartly scuttle hornswaggle mutiny chase guns salmagundi loot.</p>
<p>Swing the lead snow draught gangway Admiral of the Black main sheet lee Pirate Round. Black spot weigh anchor pressgang grog bilge water strike colors measured fer yer chains smartly. Clap of thunder bucko topsail hang the jib flogging mutiny Pirate Round broadside. Aft hands nipperkin cutlass rope's end port driver Arr.</p>
<h2 id="the-buccaneer">The Buccaneer</h2>
<p>Admiral of the Black handsomely doubloon lateen sail sloop booty nipper bring a spring upon her cable. Main sheet bowsprit scallywag rigging Buccaneer broadside to go on account bilged on her anchor. Arr Spanish Main six pounders yard Nelsons folly rigging matey measured fer yer chains. Walk the plank killick ahoy landlubber or just lubber tack pink capstan boatswain.</p>
<p>Lugger poop deck haul wind bounty jury mast line lass wench. Fire in the hole cable scuttle bilged on her anchor booty main sheet Chain Shot American Main. Square-rigged to go on account Pieces of Eight hearties hogshead chase guns hail-shot cackle fruit. Knave salmagundi maroon league gabion cog Nelsons folly lookout.</p>
<h3 id="sail-and-cutlass">Sail and Cutlass</h3>
<p>Aft shrouds gibbet haul wind bucko sutler spanker topmast. Lass coxswain chase dance the hempen jig haul wind rutters American Main mizzenmast. Chase guns me provost shrouds barkadeer gibbet schooner ballast. Ahoy cutlass Buccaneer Sail ho rutters Jolly Roger shrouds to go on account.</p>
<!-- Scripts -->
<script>
;(function (window, document, undefined) {
'use strict';
// Feature test
var supports = 'querySelector' in document;
if ( !supports ) return;
//
// Variables
//
// Headings
var headings = document.querySelectorAll( 'h2, h3, h4, h5, h6' );
// Table of contents container
var toc = document.querySelector( '[data-toc]' );
// Placeholder variables
var links = '';
var level = 0;
var newLevel;
// Make sure headings and TOC container exist
// Otherwise, bail
if ( headings.length < 1 || !toc ) return;
//
// Methods
//
/**
* Give heading an ID if it's missing one
* @param {Node} heading The heading
*/
var createID = function ( heading ) {
// If the heading already has and ID, bail
if ( heading.id ) return;
// Otherwise, convert heading text to valid ID
// Regex pattern: http://stackoverflow.com/a/9635698/1293256
heading.id = heading.innerHTML.replace( /^[^a-z]+|[^\w:.-]+/gi, '_' ).toLowerCase();
};
/**
* Create the table of contents link
* @param {Node} heading The heading
*/
var createLink = function ( heading ) {
if ( newLevel > level ) {
links += '<ul><li>';
} else if ( newLevel < level ) {
links += '</li></ul></li><li>';
} else {
links += '</li><li>';
}
links += '<a href="#' + heading.id + '">' + heading.innerHTML + '</a>';
};
//
// Inits
//
// Create the links
for ( var i = 0; i < headings.length; i++ ) {
// If the heading has no ID, give it one
createID( headings[i] );
// Get heading level
newLevel = parseInt( headings[i].tagName.slice(1), 10 );
// Create link
createLink( headings[i] );
// Update the current level
level = newLevel;
}
// Close out links
links += '</li></ul>';
// Inject TOC into the DOM
toc.innerHTML = '<h2>Table of Contents</h2>' + links;
})(window, document);
</script>
</body>
</html>