(function ($) { "use strict"; var offerCountDown = $('#offerCountDown'); if (offerCountDown.length) { var endtimeDate = offerCountDown.attr('data-day'); var endtimeHours = offerCountDown.attr('data-hour'); var endtimeMinutes = offerCountDown.attr('data-minute'); var endtimeSeconds = offerCountDown.attr('data-second'); offerCountDown.countdown100({ endtimeYear: 0, endtimeMonth: 0, endtimeDate: endtimeDate, endtimeHours: endtimeHours, endtimeMinutes: endtimeMinutes, endtimeSeconds: endtimeSeconds, timeZone: "" }); } $('.barrating-stars select').each(function (index, element) { var $element = $(element); $element.barrating({ theme: 'css-stars', readonly: false, initialRating: $element.data('rate'), }); }); /** * webinar demo modal * */ var courseDemoVideoPlayer; $('body').on('click', '#webinarDemoVideoBtn', function (e) { e.preventDefault(); if (courseDemoVideoPlayer !== undefined) { courseDemoVideoPlayer.dispose(); } let path = $(this).attr('data-video-path'); let source = $(this).attr('data-video-source'); const height = $(window).width() > 991 ? 480 : 264; const videoTagId = 'demoVideoPlayer'; const {html, options} = makeVideoPlayerHtml(path, source, height, videoTagId); let modalHtml = '
' + joinCourseWaitlistModalHintLang + '
\n' + '