Your IP : 216.73.216.196
if ("undefined" != typeof learndash_video_data) { var ld_video_count = 0, ld_video_players = {}; if ("youtube" == learndash_video_data.videos_found_provider) { function onYouTubeIframeAPIReady() { jQuery(".ld-video iframe").each(function (e, a) { var d = jQuery(a).prop("id"); void 0 !== d && (LearnDash_disable_assets(!0), ld_video_players[d] = new YT.Player(d, { events: { onReady: LearnDash_YT_onPlayerReady, onStateChange: LearnDash_YT_onPlayerStateChange } })) }) } function LearnDash_YT_onPlayerReady(e) { 1 == learndash_video_data.videos_auto_start && e.target.playVideo() } function LearnDash_YT_onPlayerStateChange(e) { var a = e.target.getPlayerState(); a == YT.PlayerState.UNSTARTED || a == YT.PlayerState.ENDED && LearnDash_disable_assets(!1) } jQuery(".ld-video iframe").each(function (e, a) { ld_video_count += 1; var d = jQuery(a).prop("id"); void 0 !== d && "" != d || (d = "ld-video-player-" + ld_video_count, jQuery(a).prop("id", d)) }) } else "vimeo" == learndash_video_data.videos_found_provider ? jQuery(document).ready(function () { jQuery(".ld-video iframe").each(function (e, a) { ld_video_count += 1; var d = jQuery(a).prop("id"); void 0 !== d && "" != d || (jQuery(a).prop("id", "ld-video-player-" + ld_video_count), d = "ld-video-player-" + ld_video_count), void 0 !== d && (ld_video_players[d] = new Vimeo.Player(a), void 0 !== ld_video_players[d] && (ld_video_players[d].ready().then(function () { console.log("ready video!"), LearnDash_disable_assets(!0), 1 == learndash_video_data.videos_auto_start && ld_video_players[d].play() }), ld_video_players[d].on("ended", function (e) { LearnDash_disable_assets(!1) }))) }) }) : "wistia" == learndash_video_data.videos_found_provider ? (window._wq = window._wq || [], _wq.push({ id: "_all", onReady: function (e) { e.bind("end", function () { return LearnDash_disable_assets(!1), e.unbind }), 1 == learndash_video_data.videos_auto_start && e.play(), LearnDash_disable_assets(!0) } })) : "local" == learndash_video_data.videos_found_provider && jQuery(document).ready(function () { jQuery(".ld-video video").each(function (e, a) { ld_video_count += 1; var d = jQuery(a).prop("id"); void 0 !== d && "" != d || (jQuery(a).prop("id", "ld-video-player-" + ld_video_count), d = "ld-video-player-" + ld_video_count), void 0 !== d && (ld_video_players[d] = a, LearnDash_disable_assets(!0), 1 == learndash_video_data.videos_auto_start && ld_video_players[d].play(), ld_video_players[d].onended = function (e) { LearnDash_disable_assets(!1) }) }) }) } function LearnDash_disable_assets(e) { if (jQuery("form.sfwd-mark-complete input.learndash_mark_complete_button").length && (1 == learndash_video_data.videos_hide_complete_button ? jQuery("form.sfwd-mark-complete input.learndash_mark_complete_button").hide() : jQuery("form.sfwd-mark-complete input.learndash_mark_complete_button").attr("disabled", e), 1 == learndash_video_data.videos_auto_complete && 0 == e)) { var a = parseInt(learndash_video_data.videos_auto_complete_delay); if (a > 0) { if ("" != learndash_video_data.videos_auto_complete_delay_message) var d = jQuery(learndash_video_data.videos_auto_complete_delay_message).insertAfter("form.sfwd-mark-complete input.learndash_mark_complete_button"); var o = a; timer_id = setInterval(function () { --o < 1 ? (clearInterval(timer_id), jQuery("form.sfwd-mark-complete")[0].submit()) : void 0 !== d && jQuery("span", d).html(o) }, 1e3) } else jQuery("form.sfwd-mark-complete")[0].submit() } "BEFORE" == learndash_video_data.videos_shown && (1 == e ? (jQuery("#learndash_lesson_topics_list").hide(), jQuery("#learndash_quizzes").hide()) : (jQuery("#learndash_lesson_topics_list").slideDown(), jQuery("#learndash_quizzes").slideDown())), jQuery(document).trigger("learndash_video_disable_assets", [e]) }