print.js 536 Bytes
define(function(require, exports, module) {

  var everyNum = {"1":"one", "2":"two", "4":"four", "6":"six", "8":"eight"};
  var href = window.location.href;
  href = /every\=\-*\d/i.exec(href)[0]; 
  var n = href[href.length-1];

  $(".printlist").attr('class', 'printlist '+ (n ? everyNum[n] : 'one'));

  $(".act-print").on({
    click: function(){
      window.print();
    }
  });

  $(".act-cancel").on({
    click: function(){
      window.opener = null;
      window.open('', '_self', '');
      window.close();
    }
  });

});