\", { text: b }) } } }, functionAttributes: [\"beforeOpen\", \"afterOpen\", \"beforeContent\", \"afterContent\", \"beforeClose\", \"afterClose\"], readElementConfig: function (b, c) { var d = this, e = new RegExp(\"^data-\" + c + \"-(.*)\"), f = {}; return b && b.attributes && a.each(b.attributes, function () { var b = this.name.match(e); if (b) { var c = this.value, g = a.camelCase(b[1]); if (a.inArray(g, d.functionAttributes) >= 0) c = new Function(c); else try { c = JSON.parse(c) } catch (h) { } f[g] = c } }), f }, extend: function (b, c) { var d = function () { this.constructor = b }; return d.prototype = this.prototype, b.prototype = new d, b.__super__ = this.prototype, a.extend(b, this, c), b.defaults = b.prototype, b }, attach: function (b, c, d) { var e = this; \"object\" != typeof c || c instanceof a != !1 || d || (d = c, c = void 0), d = a.extend({}, d); var f, g = d.namespace || e.defaults.namespace, h = a.extend({}, e.defaults, e.readElementConfig(b[0], g), d), i = function (g) { var i = a(g.currentTarget), j = a.extend({ $source: b, $currentTarget: i }, e.readElementConfig(b[0], h.namespace), e.readElementConfig(g.currentTarget, h.namespace), d), k = f || i.data(\"featherlight-persisted\") || new e(c, j); \"shared\" === k.persist ? f = k : k.persist !== !1 && i.data(\"featherlight-persisted\", k), j.$currentTarget.blur && j.$currentTarget.blur(), k.open(g) }; return b.on(h.openTrigger + \".\" + h.namespace, h.filter, i), i }, current: function () { var a = this.opened(); return a[a.length - 1] || null }, opened: function () { var b = this; return f(), a.grep(e, function (a) { return a instanceof b }) }, close: function (a) { var b = this.current(); return b ? b.close(a) : void 0 }, _onReady: function () { var b = this; b.autoBind && (a(b.autoBind).each(function () { b.attach(a(this)) }), a(document).on(\"click\", b.autoBind, function (c) { if (!c.isDefaultPrevented()) { var d = b.attach(a(c.currentTarget)); d(c) } })) }, _callbackChain: { onKeyUp: function (b, c) { return 27 === c.keyCode ? (this.closeOnEsc && a.featherlight.close(c), !1) : b(c) }, beforeOpen: function (b, c) { return this._previouslyActive = document.activeElement, this._$previouslyTabbable = a(\"a, input, select, textarea, iframe, button, iframe, [contentEditable=true]\").not(\"[tabindex]\").not(this.$instance.find(\"button\")), this._$previouslyWithTabIndex = a(\"[tabindex]\").not('[tabindex=\"-1\"]'), this._previousWithTabIndices = this._$previouslyWithTabIndex.map(function (b, c) { return a(c).attr(\"tabindex\") }), this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr(\"tabindex\", -1), document.activeElement.blur && document.activeElement.blur(), b(c) }, afterClose: function (b, c) { var d = b(c), e = this; return this._$previouslyTabbable.removeAttr(\"tabindex\"), this._$previouslyWithTabIndex.each(function (b, c) { a(c).attr(\"tabindex\", e._previousWithTabIndices[b]) }), this._previouslyActive.focus(), d }, onResize: function (a, b) { return this.resize(this.$content.naturalWidth, this.$content.naturalHeight), a(b) }, afterContent: function (a, b) { var c = a(b); return this.$instance.find(\"[autofocus]:not([disabled])\").focus(), this.onResize(b), c } } }), a.featherlight = b, a.fn.featherlight = function (a, c) { return b.attach(this, a, c), this }, a(document).ready(function () { b._onReady() }) }(jQuery);\r\n\r\n/* Exit Intent */\r\n!function (t, e) { var i = { config: { screenWidthFragment: 12, centerTopHeight: 10, heightTopLeft: 30, heightTopRight: 30 }, statusTopLeft: \"inactive\", statusTopRight: \"inactive\", statusBottomLeft: \"inactive\", statusBottomRight: \"inactive\", statusTop: \"inactive\", init: function () { i.methods = Array.prototype.slice.call(arguments), Array.prototype.forEach.call(i.methods, function (t) { i.getDirection(t[0], \"top-left\") ? i.topLeftFn = i.trigger(t[1]) : i.getDirection(t[0], \"top-right\") ? i.topRightFn = i.trigger(t[1]) : i.getDirection(t[0], \"bottom-right\") ? i.bottomRightFn = i.trigger(t[1]) : i.getDirection(t[0], \"bottom-left\") ? i.bottomLeftFn = i.trigger(t[1]) : i.getDirection(t[0], \"top\") && (i.TopFn = i.trigger(t[1])) }), e.body.addEventListener(\"mousemove\", function (t) { var e = t.clientX, o = t.clientY; \"function\" == typeof i.topLeftFn && \"inactive\" === i.statusTopLeft && i.callTopleft(e, o, i.topLeftFn), \"function\" == typeof i.topRightFn && \"inactive\" === i.statusTopRight && i.callTopRight(e, o, i.topRightFn), \"function\" == typeof i.bottomLeftFn && \"inactive\" === i.statusBottomLeft && i.callBottomLeft(e, o, i.bottomLeftFn), \"function\" == typeof i.bottomRightFn && \"inactive\" === i.statusBottomRight && i.callBottomRight(e, o, i.bottomRightFn), \"function\" == typeof i.TopFn && \"inactive\" === i.statusTop && i.callTop(e, o, i.TopFn) }) }, trigger: function (t) { return t }, getWidthRightValue: function () { var t = i.getScreenWidthFragment(), e = t * i.config.screenWidthFragment - t; return parseInt(e) }, getTopHeight: function () { var t = 50; return t }, getScreenWidthFragment: function () { var e = parseInt(t.innerWidth) / i.config.screenWidthFragment; return e }, getScreenHeightFragment: function () { var e = parseInt(t.innerHeight) / i.config.screenWidthFragment; return e }, getBottomHeightValue: function () { var t = i.getScreenHeightFragment(), e = t * i.config.screenWidthFragment - t; return e }, getDirection: function (t, e) { return t === e ? !0 : !1 }, callTopleft: function (t, e, o) { t <= i.getScreenWidthFragment() && e <= i.config.heightTopLeft && (i.statusTopLeft = \"active\", o()) }, callTopRight: function (t, e, o) { t > i.getWidthRightValue() && e <= i.config.heightTopRight && (i.statusTopRight = \"active\", o()) }, callBottomRight: function (t, e, o) { t >= i.getWidthRightValue() && e >= i.getBottomHeightValue() && (i.statusBottomRight = \"active\", o()) }, callBottomLeft: function (t, e, o) { t <= i.getScreenWidthFragment() && e >= i.getBottomHeightValue() && (i.statusBottomLeft = \"active\", o()) }, positionsTopY: [], callTop: function (t, e, o) { e > i.config.centerTopHeight + 1 && i.positionsTopY.push(e), t > i.getScreenWidthFragment() && t < i.getWidthRightValue() && e <= i.config.centerTopHeight && i.positionsTopY[0] > i.config.centerTopHeight && (i.statusTop = \"active\", o()) }, start: function () { return { init: i.init, config: i.config } } }; t.glio || (t.glio = i.start()) }(window, document);\r\n\r\n(function (document, $, undefined) {\r\n\r\n\r\n 'use strict';\r\n\r\n // Add js class.\r\n $('body').addClass('js');\r\n\r\n /**\r\n * Fade-up effect\r\n *\r\n */\r\n\r\n $(document).ready(function () {\r\n\r\n // Trigger Newsletter Signup Form after 1 minute\r\n var nl;\r\n function timerModal() {\r\n /* Removed 8/2/2017 to be added back later\r\n nl = setTimeout(function () { $.featherlight(\"#newsletter-signup\"); }, 60000); // 60,000 milliseconds = 1 minute\r\n */\r\n }\r\n\r\n\r\n timerModal();\r\n\r\n // Trigger Newsletter Signup Form on Exit Intent\r\n /* Removed 8/2/2017 to be added back later\r\n glio.init(['top', function () { $.featherlight(\"#newsletter-signup\"); clearTimeout(nl); }]);\r\n */\r\n\r\n // Run 0.25 seconds after document ready for any instances viewable on load\r\n setTimeout(function () {\r\n animateObject();\r\n }, 250);\r\n\r\n });\r\n\r\n $(window).scroll(function () {\r\n\r\n // Run on scroll\r\n animateObject();\r\n\r\n });\r\n\r\n function animateObject() {\r\n\r\n // Add fade-up class to inner elements\r\n $('.hero-section .wrap, .icons .wrap, #pricing .wrap, #testimonials .wrap, #parent-video .widget, #course-info .wrap').addClass('fade-up');\r\n\r\n // Define your object via class\r\n var object = $('.fade-up');\r\n\r\n // Loop through each object in the array\r\n $.each(object, function () {\r\n\r\n var windowHeight = $(window).height(),\r\n offset = $(this).offset().top,\r\n top = offset - $(document).scrollTop(),\r\n percent = Math.floor(top / windowHeight * 100);\r\n\r\n if (percent < 100) {\r\n\r\n $(this).addClass('fadeInUp');\r\n\r\n } else {\r\n\r\n $(this).removeClass('fadeInUp');\r\n\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Keep hero below the header section.\r\n *\r\n * Gets the site header height and hero section\r\n * bottom padding value and calculates the hero\r\n * padding top value.\r\n */\r\n $(window).resize(function () {\r\n\r\n var siteHeader = $('.site-header').outerHeight();\r\n var padding = parseInt($('.hero-section').css(\"padding-bottom\"), 10);\r\n $(\".hero-section\").css({ \"padding-top\": (siteHeader + padding) });\r\n\r\n }).resize();\r\n\r\n // Site header shrink.\r\n $(document).on(\"scroll\", function () {\r\n\r\n var header = $('.site-header');\r\n //console.log( $( header ).css( 'position' ) );\r\n\r\n if ($(document).scrollTop() > 0) {\r\n if ($(header).css('position') === 'fixed') {\r\n $(header).addClass('shrink');\r\n }\r\n } else {\r\n $(header).removeClass('shrink');\r\n }\r\n });\r\n\r\n // Add before header close button.\r\n // $( '.before-header .wrap' ).append( '' );\r\n\r\n // Add menu-toggle button\r\n $('.nav-primary').before('');\r\n\r\n // Add menu-toggle button\r\n $('.nav-secondary .wrap').before('');\r\n\r\n // Add sub-menu-toggle buttons\r\n $('.menu-item-has-children').append(\r\n ''\r\n );\r\n\r\n // Add aria labels\r\n $('.menu-toggle, .sub-menu-toggle').attr({ \"aria-expanded\": false, \"aria-pressed\": false });\r\n\r\n // Close before header section.\r\n $('.close-before-header').on(\"click\", function () {\r\n $('.before-header').slideToggle(100, function () {\r\n var siteHeader = $('.site-header').height();\r\n var padding = parseInt($('.hero-section').css(\"padding-bottom\"), 10);\r\n $(\".hero-section\").css({ \"padding-top\": (siteHeader + padding) });\r\n });\r\n });\r\n\r\n // Smaller screens responsive menu\r\n $('.toggle-primary').on(\"click\", function () {\r\n $(this).toggleClass(\"activated\");\r\n $('.nav-primary').slideToggle(100);\r\n // Toggle aria attributes\r\n $(this).attr('aria-expanded', $(this).attr('aria-expanded') === 'true' ? 'false' : 'true');\r\n $(this).attr('aria-pressed', $(this).attr('aria-pressed') === 'true' ? 'false' : 'true');\r\n });\r\n\r\n $('.toggle-secondary').on(\"click\", function () {\r\n $(this).toggleClass(\"activated\");\r\n $('.nav-secondary .wrap').slideToggle(100);\r\n // Toggle aria attributes\r\n $(this).attr('aria-expanded', $(this).attr('aria-expanded') === 'true' ? 'false' : 'true');\r\n $(this).attr('aria-pressed', $(this).attr('aria-pressed') === 'true' ? 'false' : 'true');\r\n });\r\n\r\n $(\".menu-item-has-children .sub-menu-toggle\").on(\"click\", function () {\r\n $(this).toggleClass(\"activated\");\r\n $(this).siblings(\".sub-menu\").slideToggle(100);\r\n // Toggle aria attributes\r\n $(this).attr('aria-expanded', $(this).attr('aria-expanded') === 'true' ? 'false' : 'true');\r\n $(this).attr('aria-pressed', $(this).attr('aria-pressed') === 'true' ? 'false' : 'true');\r\n });\r\n\r\n // Back to top.\r\n $('.site-container').attr('id', 'top');\r\n $('.site-footer > .wrap').append('
');\r\n\r\n //\r\n\r\n})(document, jQuery);\r\n\r\n// Smooth scrolling.\r\n(function ($) {\r\n $('.back-to-top, .site-header a').click(function () {\r\n if (location.pathname.replace(/^\\//, '') == this.pathname.replace(/^\\//, '') && location.hostname == this.hostname) {\r\n var target = $(this.hash);\r\n target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');\r\n if (target.length) {\r\n $('html, body').animate({\r\n scrollTop: target.offset().top - 50\r\n }, 1000);\r\n return false;\r\n }\r\n }\r\n });\r\n\r\n function onNavChange(dropdown) {\r\n if (dropdown.options[dropdown.selectedIndex].value) {\r\n location.href = dropdown.options[dropdown.selectedIndex].value;\r\n }\r\n }\r\n})(jQuery);\r\n\r\n// Add testimonial slider.\r\n$(\".testimonials-list\").lightSlider({\r\n auto: true,\r\n controls: false,\r\n item: 3,\r\n mode: 'slide',\r\n pauseOnHover: true,\r\n loop: true,\r\n pause: 6000,\r\n responsive: [{\r\n breakpoint: 1023,\r\n settings: {\r\n item: 2\r\n }\r\n }, {\r\n breakpoint: 860,\r\n settings: {\r\n item: 1\r\n }\r\n }]\r\n});\r\n\r\n// Add chapter slider.\r\nvar slider = $('.chapters').lightSlider({\r\n auto: true,\r\n controls: true,\r\n item: 1,\r\n mode: 'slide',\r\n pauseOnHover: true,\r\n loop: false,\r\n pause: 6000,\r\n pager: false\r\n});\r\n\r\n$('#prevChapter').click(function () {\r\n slider.goToPrevSlide();\r\n});\r\n\r\n$('#nextChapter').click(function () {\r\n slider.goToNextSlide();\r\n});\r\n\r\n\r\n\r\n\r\n// Better YouTube Embed\r\n$(\".youtube\").each(function () {\r\n // Set the BG image from the youtube ID\r\n //$(this).css('background-image', 'url(//i.ytimg.com/vi/' + this.id + '/hqdefault.jpg)');\r\n // Click the video div\r\n $(document).delegate('#' + this.id, 'click', function () {\r\n // Build embed URL\r\n var iframe_url = \"//www.youtube.com/embed/\" + this.id + \"?autoplay=1&autohide=1\";\r\n // Grab extra parameters set on div\r\n if ($(this).data('params')) iframe_url += '&' + $(this).data('params');\r\n // Build iframe tag\r\n var iframe = $('
', { 'allowfullscreen': 'allowfullscreen', 'frameborder': '0', 'src': iframe_url })\r\n // Replace the YouTube thumbnail with YouTube HTML5 Player\r\n $(this).append(iframe);\r\n });// /click\r\n}); // /each video\r\n// END Better YouTube Embed\r\n\r\n$(document).ready(function () {\r\n $(\".btn-toggle-menu\").click(function (evt) {\r\n evt.stopPropagation();\r\n $(\"#mainNav .nav-collapse\").hasClass(\"opened\") ? $(\"#mainNav .nav-collapse\").removeClass(\"opened\") : $(\"#mainNav .nav-collapse\").addClass(\"opened\");\r\n });\r\n\r\n $(document).click(function () {\r\n $(\"#mainNav .nav-collapse\").removeClass(\"opened\");\r\n });\r\n\r\n});\r\n$(\"img\").lazyload({ threshold: 200 });"],"sourceRoot":""}