function eventCountDown(n){if(n&&n.length!==0){var t=this;t.start=new Date(Number($(n).attr("data-unixStart")));t.daysSelector=".timer-detail-section.Days";t.hourSelector=".timer-detail-section.Hours";t.minuteSelector=".timer-detail-section.Minutes";t.secondSelector=".timer-detail-section.Seconds";t.prevResult={};t.init=function(){t.run();Helper.Interval.set("EVENT_COUNT_DOWN",t.run,1)};t.run=function(){var n=Helper.Timer.curServerTime();t.start>n?($(".timer-box.CE21_TIMER_BOX").show(),t.updateTime()):$(".timer-box.CE21_TIMER_BOX").hide()};t.updateTime=function(){var i=Helper.Timer.getDiffInObject(t.start);if(i){var r=null,u=null,f=null,e=null;i&&i.days>=0&&t.prevResult.days!=i.days&&($(n).find(t.daysSelector+" .value").removeClass("animate__flipInX"),i.days<=0?$(n).find(".timer-detail-section.Days,.times-dots.Days").hide():r=function(){$(n).find(t.daysSelector+" .value").text(Helper.Timer.toTwoDigit(i.days)).addClass("animate__flipInX");$(n).find(t.daysSelector+" .label").text(i.days==1?"Day":"Days")});i&&t.prevResult.hours!=i.hours&&($(n).find(t.hourSelector+" .value").removeClass("animate__flipInX"),u=function(){$(n).find(t.hourSelector+" .value").text(Helper.Timer.toTwoDigit(i.hours)).addClass("animate__flipInX");$(n).find(t.hourSelector+" .label").text(i.hours>1?"Hours":"Hour")});i&&t.prevResult.minutes!=i.minutes&&($(n).find(t.minuteSelector+" .value").removeClass("animate__flipInX"),e=function(){$(n).find(t.minuteSelector+" .value").text(Helper.Timer.toTwoDigit(i.minutes)).addClass("animate__flipInX");$(n).find(t.minuteSelector+" .label").text(i.minutes>1?"Minutes":"Minute")});i&&i.seconds>=0&&($(n).find(t.secondSelector+" .value").removeClass("animate__flipInX"),f=function(){$(n).find(t.secondSelector+" .value").text(Helper.Timer.toTwoDigit(i.seconds)).addClass("animate__flipInX")});Helper.TimeOut.set("EVEENT_VALUE_UPDATE",function(){r&&r();u&&u();f&&f();e&&e()},.1);t.prevResult=i}};t.init()}}function updateLaunchCount(n){var t=$(n).attr("data-LaunchCount");t=t!=""?parseInt(t):0;$(n).attr("title","Launch the Seminar Viewer").attr("data-LaunchCount",t+1).find("span").text("Launch Viewer")}function loadClassInnerTab(n){n=="faculty"&&$("#grid-list-faculty")!==undefined&&$("#grid-list-faculty").length>0&&$("#grid-list-faculty").html().trim().length==0&&$("#grid-list-faculty").load("/classroom/GetClassroomFaculty?productId="+productId,function(){connectToForumGroup(n)}).append("
Please wait ...<\/p>");n=="forum"&&getForumList();n=="courseSchedule"&&$("#grid-list-courseSchedule")!==undefined&&$("#grid-list-courseSchedule").length>0&&$("#grid-list-courseSchedule").html().trim().length==0&&$("#grid-list-courseSchedule").load("/classroomcourse/getcourseschedule?programregistrantid="+programRegistrantId+"&ClassroomId="+classroomId+"&classroomTabId=0&courseTabName="+n,function(){var t=$(".hdnIsDisplayScheduleCreditInfo").val();t!=undefined&&t!=null&&t=="0"&&$(".clsScheduleRowCreditInfo").length>0&&$(".clsScheduleRowCreditInfo").remove();initAfterCourseScheduleRender(n);$(".clsStatusLogToolTip").popover({trigger:"hover"}).on("show.bs.popover",function(){})});n=="certificate"&&$("#grid-list-certificate")!==undefined&&$("#grid-list-certificate").length>0&&$("#grid-list-certificate").html().trim().length==0&&!isSnapshotPreview&&$("#grid-list-certificate").load("/classroom/getclassroomcertificate?programRegistrantId="+programRegistrantId+"&classroomId="+classroomId,function(){var t=$(".hdnIsDisplayCertificateCreditInfo").val();t!=undefined&&t!=null&&t=="0"&&$(".clsCertificateRowCreditInfo").length>0&&$(".clsCertificateRowCreditInfo").remove();GetSeminarCompletedPercent();UpdateClassroomOverallCertificate();LoadCertificateButton();rotateCertificateButtonLabel();connectToForumGroup(n)}).append("
Please wait ...<\/p>");n=="addons"&&$("#grid-list-addons")!==undefined&&$("#grid-list-addons").length>0&&$("#grid-list-addons").html().trim().length==0&&$("#grid-list-addons").load("/classroomaddons/getclassroomaddonproduct?productId="+productId+"&classroomId="+classroomId,function(){connectToForumGroup(n);$(".popoverOption").popover({trigger:"hover"});scrollAddToCartWithAddOnList()}).append("
Please wait ...<\/p>");try{var t=$("#"+n);t&&t.find(".dvAjaxRender").length>0&&t.find(".dvAjaxRender").each(function(){var t=$(this);t.attr("data-url")&&t.load(t.attr("data-url"),function(){t.removeClass("dvAjaxRender");connectToForumGroup(n)}).append("
Please wait ...<\/p>")})}catch(i){}}function initAfterCourseScheduleRender(n){loadViewerLinkLabel();SaveBrowserInfo();LoadCertificateButton();intializeaddtocalendar();connectToForumGroup(n);showWebinarPassword();setTimeout(function(){setHeightOfCourseScheduleTab()},500);$("#divProgress").hide()}function loadCountDown(){$(".countdown").length>0&&$(".countdown").each(function(){var n=new Date($(this).attr("data-start")),t=new Date($(this).attr("data-end"));$(this).countdown({date:t,enddate:n})})}function getForumList(){$("#forum").load("/classroom/getclassroomforums?programRegistrantId="+programRegistrantId+"&ClassroomId="+classroomId+"&CustomerId="+customerId+"",function(){iniForumList()}).append("
Please wait ...<\/p>")}function openCertificatePopup(n){return $.magnificPopup.open({items:{src:n},type:"iframe",closeOnBgClick:!1,callbacks:{afterClose:function(){isSnapshotPreview||($("#grid-list-certificate").html(""),checkAllSeminarCompleted())}},mainClass:isSnapshotPreview?"popSnapShotCertificationMainClass":"popCatalogCertificationMainClass"}),!1}function checkAllSeminarCompleted(){$.magnificPopup.close();loadClassInnerTab("certificate")}function loadViewerLinkLabel(){var n="Test System",t="Test System";setInterval(function(){n=="Launch Viewer"?(n="Test System",t="Test System"):(n="Launch Viewer",t="Launch the Seminar Viewer");$('a[data-LaunchCount="0"][data-IsRotate="true"]').attr("title",t).find("span").text(n)},1e4);loadCountDown()}function loadVideoForSqueeze(n){$(".freeAccessVideo").each(function(n,t){$(t).find("iframe").remove()});var t=$(n).attr("data-isFromMediaLibrary"),i="/fa/LoadVideo?id="+Number($(n).attr("data-id"));t!=undefined&&t!=null&&t!=""&&t=="False"&&(i=$(n).attr("data-url"));$("