anchor.diff:    <% end %>
   ]
   
  +function refresh() {
   $('#circles :input').each(function() {
     var s = this.id.split('-')
     $.getJSON('/colours/' + s[0] + '/' + s[1], function (data) {
       $('.' + s[0] + '-' + s[1] + '-blob').attr('fill', 'rgb(' + (data['colour'].join(', ')) + ')')
  +    $('.' + s[0] + '-' + s[1] + '-disc').attr('stroke', 'rgb(' + (data['colour'].join(', ')) + ')')
       $('#' + s[0] + '-' + s[1]).spectrum({
         color: 'rgb(' + (data['colour'].join(', ')) + ')',
         showPalette: true,
  
positive.code:     })
    })
  })
  
  $(".colour-picker").on('move.spectrum', function (ev, tc) {
    d = ev.target.id.split('-')
    x = {}
  
negative.code:     type: 'PATCH',
      contentType: 'application/json'
    })
  
    refresh()
  })
  </script>
  