   card_image(selection)
 
 
-youtube = (data) ->
-  selection = d3.select("#youtube").selectAll().data([data]).enter()
-  div = selection.append("div")
-  div.attr("class", "video-container")
-  iframe = div.append("iframe")
-  iframe.attr("frameborder", 0)
-  iframe.attr("allowfullscreen")
-  iframe.attr("src", (d) -> get_youtube(d).url)
-  div = selection.append("div")
-  div.attr("class", "flow-text")
-  div.attr("style", "font-size: 16px")
-  div.text((d) -> get_youtube(d).description)
-
-
 card_image = (selection) ->
   div1 = selection.append("div")
-  div1.attr("class", "card medium")
+  div1.attr("class", "card small")
   div2 = div1.append("div")
   div2.attr("class", "card-image")
+  div2.attr("style", "max-height: 70%")
   img = div2.append("img")
   img.attr("class", "materialboxed responsive-img")
   img.attr("src", (d) -> d.url)

  p.text((d) -> d.description)


card_images = (data) ->
  images = get_images(data)
  selection = d3.select("#images").selectAll().data(images).enter()
  div0 = selection.append("div")
  div0.attr("class", "col s6")
  card_image(div0)


header(data_json)

table(data_json)
results_table(data_json)
logo_image(data_json)
youtube_card(data_json)
card_images(data_json)

line_data = (d for d in data_json.data when d.type == "line")
console.log(line_data)
for datum in line_data
  chart_json = {{ site.data.charts | jsonify }}['plot1d']
  chart_json = add_data_to_chart(datum, chart_json)
  add_chart(chart_json)
