',""!=r[0].title?o+='
':o+='
',o+='
'+j("close")+"
",o+=r[0].title,o+=r[0].description,o+="
",o+="
",o+='
',o+=r[0].works,o+="",1==p&&(o+='",o+='"),e(o='
'+o+"
").insertAfter(e(".eb-total-outer-container")),1==p&&e(".eb-container .box-project").addClass("has-sidebar"),w()}()},error:function(e){console.log("ERROR: ",e)}})}(t),e("body").addClass("eb-detail-modal-active"),i=e(document).scrollTop(),e(".eb-detail-modal-active .eb-total-outer-container > .eb-total-inner-container").css({top:-i}),e(".eb-detail-modal-active .eb-total-outer-container").css("position","fixed"),e("body").append('
'),e(".eb-project-overlay").animate({opacity:1},n.animationDuration)}),e("body").on("click",".box-project.eb-container + .eb-project-overlay",function(e){e.target==this&&x()}),e("body").on("click",".eb-container .close-project",function(){x()});var y,k=0;e(b).on("click",".eb-pagination-button:not(.active)",function(t){e(this).addClass("active"),e(this).children(".icon-loading").html(j("loading")),k||(k=1,g=a,h(),k=0)}),1==n.infiniteScrolling&&e(window).on("scroll",function(){if(clearTimeout(y),1==c&&0==d){var t=e(b).offset().top,i=e(b).outerHeight(),n=e(window).height();e(this).scrollTop()>t+i-n-50&&!f&&(y=setTimeout(function(){f=1,g=a,h()},300))}});var _=0;e("body").on("click",".sidebar-mobile .bh-show",function(){function t(t){if("show"==t){var i=e("body").height()-e(".eb-container .wrap-headings").outerHeight(!0)-20;e(".sidebar-mobile .bh-show > .label").text("Hide Info"),e(".eb-container aside.sidebar-mobile").addClass("open"),e(".eb-container aside.sidebar-mobile").animate({height:i},n.animationDuration).css("border-radius",15)}else"hide"==t&&(e(".sidebar-mobile .bh-show > .label").text("Show Info"),e("aside.sidebar-mobile").removeClass("open"),e(".eb-container aside.sidebar-mobile").animate({height:42},n.animationDuration).css("border-radius",50))}_?(_=0,t("hide")):(_=1,t("show"))});var C=0;function j(e){switch(e){case"thumbsUp":return'
';case"chevronDown":return'
';case"chevronUp":return'
';case"chevronRight":return'
';case"chevronLeft":return'
';case"fields":return'
';case"owner":return'
';case"tags":return'
';case"views":return'
';case"close":return'
';case"loading":return'
'}}e("body").on("click",".sidebar-desktop .eb-desktop-info",function(){function t(t){"show"==t?(e(".eb-container .sidebar-desktop").animate({left:0},n.animationDuration),e(".eb-container .sidebar-desktop").addClass("info-open"),e('
').insertBefore(".eb-container #wrap-headings-"+n.containerId),e(".box-project.eb-container > .eb-project-overlay").animate({opacity:1},n.animationDuration)):"hide"==t&&(e(".eb-container .sidebar-desktop").animate({left:-300},n.animationDuration),e(".eb-container .sidebar-desktop").removeClass("info-open"),e(".box-project.eb-container > .eb-project-overlay").animate({opacity:0},n.animationDuration,function(){e(this).remove()}))}C?(C=0,t("hide")):(C=1,t("show")),e("body").on("click",".box-project.eb-container > .eb-project-overlay",function(e){e.target==this&&(C=0,t("hide"))})}),h()}}(jQuery);