(script)

Start learning from best platform

Study any topic, anytime. explore thousands of courses for the lowest price ever!

(script) var border_bottom = $('.home-banner-wrap').height() + 242; $('.cropped-home-banner').css('border-bottom', border_bottom + 'px solid #f1f7f8'); mRight = Number("1.4994232987313") * $('.home-banner-area').outerHeight(); $('.cropped-home-banner').css('right', (mRight-65) + 'px');

3 Online courses

Explore a variety of fresh topics

Expert instruction

Find the right course for you

Lifetime access

Learn on your schedule

Latest blogs

Join now to start learning

Get started

Become instructor

Join now
(script) function handleWishList(elem) { $.ajax({ url: 'https://www.onlinecaclasses.com/home/handleWishList', type: 'POST', data: { course_id: elem.id }, success: function(response) { if (!response) { window.location.replace("https://www.onlinecaclasses.com/login"); } else { if ($(elem).hasClass('active')) { $(elem).removeClass('active') } else { $(elem).addClass('active') } $('#wishlist_items').html(response); } } }); } function handleCartItems(elem) { url1 = 'https://www.onlinecaclasses.com/home/handleCartItems'; url2 = 'https://www.onlinecaclasses.com/home/refreshWishList'; $.ajax({ url: url1, type: 'POST', data: { course_id: elem.id }, success: function(response) { $('#cart_items').html(response); if ($(elem).hasClass('addedToCart')) { $('.big-cart-button-' + elem.id).removeClass('addedToCart') $('.big-cart-button-' + elem.id).text("Add to cart"); } else { $('.big-cart-button-' + elem.id).addClass('addedToCart') $('.big-cart-button-' + elem.id).text("Added to cart"); } $.ajax({ url: url2, type: 'POST', success: function(response) { $('#wishlist_items').html(response); } }); } }); } function handleEnrolledButton() { $.ajax({ url: 'https://www.onlinecaclasses.com/home/isLoggedIn', success: function(response) { if (!response) { window.location.replace("https://www.onlinecaclasses.com/login"); } } }); } $(document).ready(function() { if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { if ($(window).width() >= 840) { $('a.has-popover').webuiPopover({ trigger: 'hover', animation: 'pop', placement: 'horizontal', delay: { show: 500, hide: null }, width: 330 }); } else { $('a.has-popover').webuiPopover({ trigger: 'hover', animation: 'pop', placement: 'vertical', delay: { show: 100, hide: null }, width: 335 }); } } if ($(".course-carousel")[0]) { $(".course-carousel").slick({ dots: false, infinite: false, speed: 300, slidesToShow: 4, slidesToScroll: 4, swipe: false, touchMove: false, responsive: [ { breakpoint: 840, settings: { slidesToShow: 3, slidesToScroll: 3, }, }, { breakpoint: 620, settings: { slidesToShow: 2, slidesToScroll: 2, }, }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1, }, }, ], }); } if ($(".top-istructor-slick")[0]) { $(".top-istructor-slick").slick({ dots: false }); } }); (script) function switch_language(language) { $.ajax({ url: 'https://www.onlinecaclasses.com/home/site_language', type: 'post', data: {language : language}, success: function(response) { setTimeout(function(){ location.reload(); }, 500); } }); } (script) (script) (script) (script) (script) (script) (script) (script) (script) (script) (script) $(function () { $('[data-bs-toggle="tooltip"]').tooltip() }); if($('.tagify').height()){ $('.tagify').tagify(); } (script) function showAjaxModal(url) { // SHOWING AJAX PRELOADER IMAGE jQuery('#modal_ajax .modal-body').html('
(image)
'); // LOADING THE AJAX MODAL jQuery('#modal_ajax').modal('show', {backdrop: 'true'}); // SHOW AJAX RESPONSE ON REQUEST SUCCESS $.ajax({ url: url, success: function(response) { jQuery('#modal_ajax .modal-body').html(response); } }); } function lesson_preview(url, title){ // SHOWING AJAX PRELOADER IMAGE jQuery('.lesson_preview_header').html(title); jQuery('#lesson_preview .modal-body').html('
(image)
'); // LOADING THE AJAX MODAL jQuery('#lesson_preview').modal('show', {backdrop: 'true'}); // SHOW AJAX RESPONSE ON REQUEST SUCCESS $.ajax({ url: url, success: function(response) { jQuery('#lesson_preview .modal-body').html(response); } }); } (script) function confirm_modal(delete_url) { jQuery('#modal-4').modal('show', {backdrop: 'static'}); document.getElementById('delete_link').setAttribute('href' , delete_url); } (script) function async_modal() { const asyncModal = new Promise(function(resolve, reject){ $('#modal-4').modal('show'); $('#modal-4 .btn-yes').click(function(){ resolve(true); }); $('#modal-4 .btn-cancel').click(function(){ resolve(false); }); }); return asyncModal; } (script) function toggleRatingView(course_id) { $('#course_info_view_'+course_id).toggle(); $('#course_rating_view_'+course_id).toggle(); $('#edit_rating_btn_'+course_id).toggle(); $('#cancel_rating_btn_'+course_id).toggle(); } function publishRating(course_id) { var review = $('#review_of_a_course_'+course_id).val(); var starRating = 0; starRating = $('#star_rating_of_course_'+course_id).val(); if (starRating > 0) { $.ajax({ type : 'POST', url : 'https://www.onlinecaclasses.com/home/rate_course', data : {course_id : course_id, review : review, starRating : starRating}, success : function(response) { location.reload(); } }); }else{ } } function isTouchDevice() { return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); } function viewMore(element, visibility) { if (visibility == "hide") { $(element).parent(".view-more-parent").addClass("expanded"); $(element).remove(); } else if ($(element).hasClass("view-more")) { $(element).parent(".view-more-parent").addClass("expanded has-hide"); $(element) .removeClass("view-more") .addClass("view-less") .html("- View less"); } else if ($(element).hasClass("view-less")) { $(element).parent(".view-more-parent").removeClass("expanded has-hide"); $(element) .removeClass("view-less") .addClass("view-more") .html("+ View more"); } } function redirect_to(url){ if(!isTouchDevice() && $(window).width() > 767){ window.location.replace(url); } } //Event call after loading page document.addEventListener('DOMContentLoaded', function() { setTimeout(function(){ $('.animated-loader').hide(); $('.shown-after-loading').show(); }); }, false); function check_action(e, url){ var tag = $(e).prop("tagName").toLowerCase(); if(tag == 'a'){ return true; }else if(tag != 'a' && url){ $(location).attr('href', url); return false; }else{ return true; } }