$(function(){
$("#toggle").click(function(){
$("#menu").slideToggle();
return false;
});
$(window).resize(function(){
var win = $(window).width();
var p = 480;
if(win > p) {
$("#menu").show();
} else {
$("#menu").hide();
}
});
$('a[href^=http]').not(':has(img), [href*="'+location.hostname+'"], [target="_blank"]').attr('target', '_blank').attr('rel', 'noopener nofollow').addClass("external");
$('#header, #comments, #footer').find('a[href^=http]').not(':has(img), [href*="'+location.hostname+'"]').removeAttr('class');
$(".code").each(function(i, elem){
var classVal = $(elem).attr('class');
var classVals = classVal.split(' ');
for (var i = 0; i < classVals.length; i++) {
if(classVals[i].indexOf("lang-")) {
let lines = $(elem).html().split('\n');
if (lines[lines.length-1].length === 0) {
lines.pop();
}
let mojiline = '';
lines.forEach(function(e){
let mjlistr = ''+ e +'
';
if(mjlistr == '') {
mjlistr = '
';
}
mojiline += mjlistr + '\n';
});
$(elem).html(mojiline);
}
}
});
$('pre').wrap('