PageSourceSearch

https://larrybuch.github.io/js/script.js

js larrybuch.github.io collected 2026-10-03 08:21:21 UTC 1,951 bytes, 76 lines download raw bytes

1window.onload = function() { init(); };
2
3var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?key=0ApL2ZVhpOmONdDVqZ2lQb0UxbUs0YW1MXzV2N19uaFE&output=html';
4var nestedData;
5
6function init() {
7  Tabletop.init( { key: public_spreadsheet_url,
8                   callback: showInfo,
9                   simpleSheet: true } );
10}
11
12function showInfo(data, tabletop) {
13  visualizeIt(data);
14}
15
16function visualizeIt(data){
17
18  var list = d3.select("#links");
19  
20  var link = list.selectAll(".link")
21    .data(data)
22    .enter()
23    .append("div")
24    .append("p");
25    
26    link
27      .append("span")
28      .attr("class", "date")
29      .html(function(d){ return d.pubdate; });
30
31    link.append("a")
32      .html(function(d){ return d.headline; })
33      .attr("href", function(d){ return d.url; })
34      .attr("target", "_blank");
35
36
37
38  // nestedData = d3.nest()
39  //   .key(function(d){ return d.tag; })
40  //   .entries(data);
41
42  // // trying a second thing
43  // var wrap = d3.select("body");
44
45  // var sections = wrap.selectAll(".test")
46  //   .data(nestedData)
47  //   .enter()
48  //   .append("section")
49  //   .attr("class", "chunk")
50  //   .attr("id", function(d){ return d.key.replace(/\s+/g, '-').toLowerCase(); });
51
52  // var sectionTitle = sections.append("div")
53  //   .attr("class", "first")
54  //   .text(function(d){ return d.key; });
55
56  // var secondSection = sections.append("div")
57  //   .attr("class", "second");
58
59  // var links = secondSection.selectAll(".link")
60  //   .data(function(d){ return d.values; })
61  //   .enter()
62  //   .append("a")
63  //   .attr("href", function(d){ return d.url; })
64  //   .attr("target", "_blank");
65
66  // var rows = links.append("div")
67  //   .attr("class", function(d){ return d.tag + " row"; })
68  //   .text(function(d){ return d.headline; });
69
70  // var wit = rows.append("span")
71  //   .text(function(d){if (d.wit) {return " with " + d.wit;} });
72
73  console.log("I have no idea what I'm doing.");
74
75}
76

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.