Sha256: b3f21f9517a20bac90c36bfb09ec00d0220aaa02cb8c7b4e6a5d4f9b8d4019e8
Contents?: true
Size: 771 Bytes
Versions: 20
Compression:
Stored size: 771 Bytes
Contents
# prettify.rb if /\A(?:latest|day|month|nyear)\z/ =~ @mode then add_header_proc do <<-HTML <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/google/code-prettify/loader/run_prettify.js"></script> <script type="text/javascript"><!-- var initPrettyPrint = function() { var pres = document.querySelectorAll("div.body > div.section > pre"); Array.prototype.slice.call(pres).forEach(function(pre) { pre.setAttribute("class", "prettyprint"); }); PR.prettyPrint(); }; if(window.addEventListener){ window.addEventListener("load", initPrettyPrint, false); }else if(window.attachEvent){ window.attachEvent("onload", initPrettyPrint); }else{ window.onload=initPrettyPrint; } // --></script> HTML end end
Version data entries
20 entries across 19 versions & 2 rubygems