/* Image expand on click */
(function(e){function n(e){var n=(new Date).getTime();if(t==null||n>t+800){t=n;return false}else{return true}}var t;var r,i;window.fitImg=function(){var t=e("#simple-box img");e(t).css("max-width",e(window).width()-20);e(t).css("max-height",e(window).height()-40)};e("body").on("click","section.post-content img",function(t){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){}else{e("#simple-box").remove();r=e(t.target).attr("src");i=e("<div id='simple-box' style='display:table;position:fixed;width:100%;height:calc(100% + 160px);height:calc(100vh + 160px);margin-top:-80px;z-index:999999;top:0;left:0;right:0;bottom:0;'><div style='background-color:rgba(0,0,0,0.7);display:table-cell;vertical-align:middle;text-align:center;top:0;bottom:0;left:0;right:0;width:100%;height:100%;'><img class='fade-in one fast' src='"+r+"' style='box-shadow:0 0 50px rgba(0,0,0,0.5);' onload='fitImg()'></div></div>");e("body").append(i)}});e("body").on("click","#simple-box",function(t){e("#simple-box").remove()})})(jQuery);