~laumann/laumann.xyz

ref: 4a0beb8f746ea2003f46e6b8f68bb4512572d381 laumann.xyz/reading/index.html -rw-r--r-- 1.4 KiB
4a0beb8fThomas Bracht Laumann Jespersen Many small changes 9 months ago
                                                                                
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
---
layout: default
title: Reading
active: reading
---


<div class="row">

	<div class="small-9 columns">
	<h1>Reading list</h1>

	<p id="out"></p>

<script type="text/javascript">
$(function() {
	d3.json('reading.json', function(err, data) {
		d3.select("#out")
			.append("table")
			.style({ "border-collapse": "collapse", "width": "100%" })
			.selectAll("tr")
			.data(data.rlist)
			.enter().append("tr")
			.selectAll("td")
			.data(function(d) {
				var title = d.title;
				if (d.url) {
					title = '<a href="' + d.url + '">' + d.title + '</a>';
				}
				return [ title, d.author, "" ];
			})
			.enter().append("td")
			.style({ "padding": "3px" })
			.html(function(d) { return d; });
	});
});
</script>

</div>

<div class="small-3 columns panel">
<p>Dynamically generated reading list.</p>

<p>This list is generated from <a href="http://github.com/laumann/laumann.github.com/blob/master/reading.json">reading.json</a> and presented using <a href="http://d3js.org">d3</a>. The goal is to be able to easily collect and add reading material, and simply push it out as JSON.</p>

<p>The layout here might change drastically with time (as the powers of d3 become more available).</p>

<h4>Reference material</h4>
<ol>
	<li><a href="http://d3js.org">d3js.org</a></li>
	<li><a href="http://christopheviau.com/d3_tutorial/">Try d3 Now</a></li>
	<li><a href="http://www.macwright.org/presentations/dcjq/">a fun, difficult intro to d3</a></li>
</ol>
</div>

</div>