print.js 432 Bytes
/*! dili 2016-01-06 */
define(function(require,exports,module){var everyNum={1:"one",2:"two",4:"four",6:"six",8:"eight"},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()}})});