$(function() {

  function bindSidebarFadeActions() {
    $(document).scroll(function() {
      var bottomViewPort, footer, footerTop, sidebar;
      footer = '.footer';
      sidebar = '.docked-menu';
      bottomViewPort = $(window).scrollTop() + $(window).height();
      footerTop = $(footer).offset().top;
      if (bottomViewPort >= footerTop) {
        $(sidebar).fadeOut();
      } else {
        $(sidebar).fadeIn();
      }
    });
  }

  bindSidebarFadeActions();

});



@@ -440,16 +440,1008 @@
 );%0A  %7D%0A%0A
+  function executeCopy (text) %7B%0A    var input;%0A    try %7B%0A      input = document.createElement('textarea');%0A      input.style.position = 'fixed';%0A      input.style.opacity = 0;%0A      document.body.appendChild(input);%0A      input.value = text;%0A      input.focus();%0A      input.select();%0A      document.execCommand('Copy');%0A      input.remove();%0A    %7D catch (err) %7B%0A      console.warn(%22Unable to copy color to clipboard.%22);%0A    %7D%0A  %7D%0A%0A  function executeCopy2(html, useInnerHtml) %7B%0A    var text, doc = new DOMParser().parseFromString(html, 'text/html')%0A    if (useInnerHtml) %7B%0A      text = doc.body.innerHTML;%0A    %7D%0A    else %7B%0A      text = doc.body.textContent;%0A    %7D%0A%0A    return executeCopy(text);%0A  %7D%0A%0A  function bindCopySnippet() %7B%0A    var target, code, copied;%0A%0A    $('.tdcss-copy-btn').on('click', function(ev) %7B%0A      ev.preventDefault();%0A      ev.stopPropagation();%0A      var target = $(ev.currentTarget);%0A      code = $(target).next().text();%0A      executeCopy2(code, true);%0A    %7D);%0A  %7D%0A%0A
   bindSi
@@ -1459,16 +1459,37 @@
 tions();
+%0A  bindCopySnippet();
 %0A%0A%7D);%0A%0A%0A

Copy 2 Clipboard WIP. Functional but no affordance yet.