-
Notifications
You must be signed in to change notification settings - Fork 144
/
errata.html
147 lines (127 loc) · 5.46 KB
/
errata.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Java Concurrency in Practice - Errata</title>
<meta name="description" content="JCiP errata">
<meta name="author" content="Tim Peierls">
<meta name="author" content="Brian Goetz">
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="stylesheets/bootstrap-theme.min.css">
<link rel="stylesheet" href="stylesheets/jcip-theme.css">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-38133818-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-38133818-1');
</script>
<style>
td.p:before {
content: "p.";
}
td.pp:before {
content: "pp.";
}
</style>
</head>
<body role="document">
<header class="navbar navbar-default navbar-fixed-top">
<!-- loaded dynamically -->
</header>
<div class="container" role="main">
<div class="page-header">
<h1>Errata</h1>
</div>
<table class="table table-striped table-condensed hidden">
<thead>
<tr>
<th>Page(s)</th>
<th>Description</th>
<!--
<th>First reported by</th>
-->
</tr>
</thead>
<tbody>
<!-- filled in from errata/errata.yml -->
</tbody>
<!--
<tfoot>
<tr>
<th>Page(s)</th>
<th>Description</th>
<th>Reported by</th>
</tr>
</tfoot>
-->
</table>
<p class="alert alert-info">
You can
<a class="alert-link" href="mailto:[email protected]?subject=JCiP%20Errata">submit errata or feedback</a>
to the authors.
We have a backlog of reported errata that are slowly making their way onto this page.
</p>
</div><!-- /.container -->
<footer class="footer navbar">
<!-- loaded dynamically -->
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.5/js-yaml.min.js"></script>
<script src="javascripts/bootstrap.min.js"></script>
<script src="javascripts/jcip-main.js"></script>
<script>
$(function() {
$.get("errata/errata.yml").done(function(yamlData) {
console.log("File load complete");
try {
var data = jsyaml.load(yamlData),
len = data.length,
tbody = $('<tbody></tbody>');
console.log("Successfully parsed errata");
for (var i = 0; i < len; ++i) {
var item = data[i],
pageSplit = ('' + item.pages).split('-'),
pageJoin = pageSplit.join("–"),
pageClass = pageSplit.length == 1 ? "p" : "pp",
pageCell = '<td class="' + pageClass + '">' + pageJoin + '</td>',
descriptionCell = '<td>' + item.description + '</td>',
reporterCell = '', //item.reporter ? ('<td>' + item.reporter + '</td>') : '<td></td>',
newRow = '<tr>' + pageCell + descriptionCell + reporterCell + '</tr>'
;
tbody.append(newRow);
}
$('tbody').replaceWith(tbody);
$('table').removeClass('hidden');
} catch (exception) {
console.log("Exception loading errata: " + exception);
}
});
});
</script>
</body>
</html>