           $('.scroller__items section[data-section!="10"]').attr('data-state', 'closed').removeAttr('style').removeClass('bottom')
           $('.scroller__items section[data-section="10"]').height(active - scrollTop).attr('data-state', 'open').addClass('bottom')
 
+  setImage: ->
+    $img = $(this)
+    src = $img.attr 'src'
+    if src != ''
+      width = 800
+      src = resize(src, width: width * (window.devicePixelRatio or 1))
+      $img.attr 'src', src
+
+  setImages: ->
+    $('.article-body__content img').each @setImage
+
 
   deferredLoadBody: =>
     $('.article-body__content').append bodyView

bodyView = -> require('./templates/body.jade') arguments...
sd = require('sharify').data
markdown = require '../../../../components/util/markdown.coffee'
Q = require 'bluebird-q'

module.exports.EoyView = class EoyView extends Backbone.View

    return closest

  trackDirection: =>
    scrollTop = window.scrollY
    scrollTop = Math.round(scrollTop)
    if scrollTop == 0
      $('.scroller__items section[data-section!="0"]').attr('data-state', 'closed')
      $('.scroller__items section[data-section="0"]').attr('data-state', 'open').height(@containerHeight)
