Untitled
unknown
plain_text
8 months ago
29 kB
2
Indexable
Never
(function($) { function changeLayout() { var croDiscipline = []; var croStudyLevel = []; var croStudyLevelIndex = 0; var croLevelOfStudy = []; var croLevelOfStudyIndex = 0; var allCourseLink = ""; //Analytics Discipline croDiscipline[0] = $("#menu-item-222"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Analytics"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-233").html(), $("#menu-item-234").html() ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Applied Data Science"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-2803").html(), $("#menu-item-2751").html(), $("#menu-item-2979").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Learning Analytics"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-2541").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-234").html(), $("#menu-item-2979").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Diploma"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-2751").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-233").html(), $("#menu-item-2803").html(), $("#menu-item-2541").html(), ]; //all course link allCourseLink = $("#menu-item-1451").html(); ////final output for the discipline croOutputMenu(croDiscipline[0], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Business Discipline croDiscipline[1] = $("#menu-item-223"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Business Administration"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-236").html(), $("#menu-item-239").html() ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Business Management"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-237").html(), $("#menu-item-238").html(), $("#menu-item-2731").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Human Resource Management"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-3244").html(), $("#menu-item-4533").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-4533").html(), $("#menu-item-239").html(), $("#menu-item-238").html(), $("#menu-item-2731").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-236").html(), $("#menu-item-237").html(), $("#menu-item-3244").html(), ]; //all course link allCourseLink = $("#menu-item-1452").html(); ////final output for the discipline croOutputMenu(croDiscipline[1], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ///digital law ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Digital Law Discipline croDiscipline[2] = $("#menu-item-225"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Digital Law"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-241").html(), $("#menu-item-242").html(), $("#menu-item-243").html() ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-243").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Diploma"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-242").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-241").html(), ]; //all course link allCourseLink = $("#menu-item-1453").html(); ////final output for the discipline croOutputMenu(croDiscipline[2], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ///education ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Education Discipline croDiscipline[3] = $("#menu-item-226"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Education Design"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-244").html() ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Learning Analytics"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-2576").html() ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-2576").html(), $("#menu-item-244").html() ]; //all course link allCourseLink = $("#menu-item-1454").html(); ////final output for the discipline croOutputMenu(croDiscipline[3], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Enterprise Discipline croDiscipline[4] = $("#menu-item-5117"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Enterprise"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-5118").html(), $("#menu-item-6284").html() ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-6284").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-5118").html(), ]; //all course link allCourseLink = $("#menu-item-5126").html(); ////final output for the discipline croOutputMenu(croDiscipline[4], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Health Discipline croDiscipline[5] = $("#menu-item-227"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Applied Mental Health"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-3046").html(), $("#menu-item-3187").html() ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Epidimiology"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-1986").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Health Administration"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-1988").html(), $("#menu-item-245").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Health Promotion"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-1987").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Public Health"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-1989").html(), $("#menu-item-246").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-246").html(), $("#menu-item-245").html(), $("#menu-item-3187").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-1986").html(), $("#menu-item-1987").html(), $("#menu-item-1989").html(), $("#menu-item-1988").html(), $("#menu-item-3046").html(), ]; //all course link allCourseLink = $("#menu-item-1455").html(); ////final output for the discipline croOutputMenu(croDiscipline[5], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //IT Discipline croDiscipline[6] = $("#menu-item-228"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Applied Data Science"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-2802").html(), $("#menu-item-249").html(), $("#menu-item-2980").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Artificial Intelligence"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-3381").html(), $("#menu-item-1840").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Computer Science"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-247").html(), $("#menu-item-248").html(), $("#menu-item-1869").html(), $("#menu-item-1840").html(), $("#menu-item-1842").html(), $("#menu-item-1841").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Cybersecurity"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-3382").html(), $("#menu-item-1842").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-2980").html(), $("#menu-item-1869").html(), $("#menu-item-1840").html(), $("#menu-item-1842").html(), $("#menu-item-1841").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Diploma"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-249").html(), $("#menu-item-248").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-3381").html(), $("#menu-item-3382").html(), $("#menu-item-2802").html(), $("#menu-item-247").html(), ]; //all course link allCourseLink = $("#menu-item-1456").html(); ////final output for the discipline croOutputMenu(croDiscipline[6], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Marketing & Digital Comm Discipline croDiscipline[7] = $("#menu-item-230"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Marketing and Digital Communications"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-251").html(), $("#menu-item-252").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-252").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-251").html(), ]; //all course link allCourseLink = $("#menu-item-1457").html(); ////final output for the discipline croOutputMenu(croDiscipline[7], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Project Management Discipline croDiscipline[8] = $("#menu-item-231"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Project Management"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-1530").html(), $("#menu-item-253").html(), $("#menu-item-254").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-254").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Diploma"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-253").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-1530").html(), ]; //all course link allCourseLink = $("#menu-item-1458").html(); ////final output for the discipline croOutputMenu(croDiscipline[8], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); ////reset for next discipline croStudyLevel = []; croStudyLevelIndex = 0; croLevelOfStudy = []; croLevelOfStudyIndex = 0; allCourseLink = ""; //Psychology Discipline croDiscipline[9] = $("#menu-item-232"); //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Applied Mental Health"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-3047").html(), $("#menu-item-3186").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Psychology"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-256").html(), ]; croStudyLevelIndex++; //single item croStudyLevel[croStudyLevelIndex] = []; croStudyLevel[croStudyLevelIndex][0] = "Psychology Advanced"; croStudyLevel[croStudyLevelIndex][1] = [ $("#menu-item-255").html(), ]; //level of study //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Masters"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-3186").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Diploma"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-255").html(), $("#menu-item-256").html(), ]; croLevelOfStudyIndex++; //single item croLevelOfStudy[croLevelOfStudyIndex] = []; croLevelOfStudy[croLevelOfStudyIndex][0] = "Graduate Certificate"; croLevelOfStudy[croLevelOfStudyIndex][1] = [ $("#menu-item-3047").html(), ]; //all course link allCourseLink = $("#menu-item-1459").html(); ////final output for the discipline croOutputMenu(croDiscipline[9], croStudyLevelIndex, croLevelOfStudyIndex, croStudyLevel, croLevelOfStudy, allCourseLink); //detect link that has sub-menu__two $(".croCustomParent .sub-menu__one li").each(function(index){ if($(this).find(".sub-menu__two").length) { $(this).find(".sub-menu__two").addClass("fade-in"); $(this).addClass("cro-2nd-level-parent"); $(this).find("a").first().addClass("cro-2nd-level-link"); } }); ///assign event to newly created elements $(".croCustomMenu").on('click', function(e){ e.preventDefault(); if(!$(this).parent().find(".sub-menu__one").hasClass("open")) { $(this).addClass("croOpen"); $(".croCustomParent").find(".sub-menu__one").removeClass("open"); $(this).parent().find(".sub-menu__one").addClass("open"); if($(window).width()<992) { $(this).parent().find(".sub-menu__one").first().css("display", "block"); } } else { $(this).removeClass("croOpen"); $(".croCustomParent").find(".sub-menu__one").removeClass("open"); if($(window).width()<992) { $(this).parent().find(".sub-menu__one").first().css("display", ""); } } }); $(".cro-2nd-level-link").on('click', function(e){ if($(this).hasClass("cro-2nd-level-link-opened")) { $(this).removeClass("cro-2nd-level-link-opened"); $(this).parent().removeClass("cro-2nd-level-parent-opened"); } else { $(this).addClass("cro-2nd-level-link-opened"); $(this).parent().addClass("cro-2nd-level-parent-opened"); } }); $(window).on('resize', function(){ $(".croCustomParent").find(".sub-menu__one").removeClass("open"); $(".croCustomMenu").removeClass("croOpen"); $(".croCustomMenu").parent().find(".sub-menu__one").first().css("display", ""); }); } function croOutputMenu(croDiscipline, studyAreaIndex, studyLevelIndex, studyArea, studyLevel, allCourseLinks) { ////final output croDiscipline.find(".sub-menu").html(""); croDiscipline.find(".sub-menu").append('<li class="menu-item cro-menu-group"><a>STUDY AREA</a></li>'); for(var i=0; i<=studyAreaIndex; i++) { var subHTML = '<li class="menu-item menu-item-type-post_type menu-item-object-course menu-item-has-children croCustomParent" data-id="">'; subHTML += '<a href="#" class="croCustomMenu">' + studyArea[i][0] + '<span class="croCustomMenuMarker"><span class="markerLeftSide"> </span><span class="markerRightSide"> </span></span></a>'; subHTML += "\n" + '<ul class="sub-menu sub-menu__one">'; subHTML += '<li class="menu-item cro-menu-group cro-courses-group">COURSES</li>'; for(var j=0; j<studyArea[i][1].length; j++) { subHTML += "\n" + '<li class="menu-item menu-item-object-course fade-in">'; subHTML += "\n" + studyArea[i][1][j]; subHTML += "\n" + '</li>'; } subHTML += "\n" + '</ul>'; subHTML += "\n" + '</li>'; croDiscipline.find(".sub-menu").first().append(subHTML); } croDiscipline.find(".sub-menu").first().append('<li class="menu-item cro-menu-group cro-menu-group-extra-padding"><a>LEVEL OF STUDY</a></li>'); for(var i=0; i<=studyLevelIndex; i++) { var subHTML = '<li class="menu-item menu-item-type-post_type menu-item-object-course menu-item-has-children croCustomParent" data-id="">'; subHTML += '<a href="#" class="croCustomMenu">' + studyLevel[i][0] + '<span class="croCustomMenuMarker"><span class="markerLeftSide"> </span><span class="markerRightSide"> </span></span></a>'; subHTML += "\n" + '<ul class="sub-menu sub-menu__one">'; subHTML += '<li class="menu-item cro-menu-group cro-courses-group">COURSES</li>'; for(var j=0; j<studyLevel[i][1].length; j++) { subHTML += "\n" + '<li class="menu-item menu-item-object-course fade-in">'; subHTML += "\n" + studyLevel[i][1][j]; subHTML += "\n" + '</li>'; } subHTML += "\n" + '</ul>'; subHTML += "\n" + '</li>'; croDiscipline.find(".sub-menu").first().append(subHTML); } croDiscipline.find(".sub-menu").first().append('<li class="menu-item cro-menu-group-extra-padding croAllCourseLink">'+allCourseLinks+'</li>'); } function addStyle() { var head = document.head || document.getElementsByTagName("head")[0]; var style = document.createElement("style"); var css = ""; css = [ "@media (max-width: 1440px) and (min-width:1000px){", '.cro-2nd-level-parent-opened #menu-item-2153 > a {margin-top: 2px !important;}', '.main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one>.menu-item>a {font-size: 16px !important; margin-bottom: 1px !imporant;}', '.main-menu__menu>.menu-item>.sub-menu .menu-item>a {font-size: 20px !important; margin-bottom: 1px !important;}', '.main-menu__menu>.menu-item>.sub-menu .menu-item {margin-bottom: 1px !important;}', '.menu-item .menu-item-type-post_type .menu-item-object-course .menu-item-has-children .croCustomParent .fade-in > li {margin-bottom: none !important;}', '#menu-item-1450 > a {font-size: 16px !important; margin-top: 10px !important;}', "}", "@media (min-width: 992px) {", '#menu-item-222 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-223 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-226 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-227 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-228 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-230 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-231 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-232 > a:nth-of-type(1) {font-size: 20px !important;}', '#menu-item-5117 > a:nth-of-type(1) {font-size: 20px !important;}', '.main-menu__menu>.menu-item>.sub-menu .menu-item>a {font-size: 18px !important; margin-bottom: 1px !important;}', ' .main-menu__menu>.menu-item>.sub-menu:before { content: "discipline"; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one:before { content: ""; display: none; }', ' .main-menu__content-wrap { display: none; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one .sub-menu.sub-menu__one { top: -20px; width: 90%; left: 100%; border: 1px solid #FFF; padding: 20px 30px; }', ' .cro-menu-group, .cro-menu-group a { font-size: 12px !important; line-height: 16px !important; color: #FFF;}', ' .croCustomMenuMarker { display: none; }', ' .cro-menu-group-extra-padding { margin-top: 40px; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one>.menu-item>a.cro-2nd-level-link:not([href]) .menu-extra { display: block !important; width: 11px; height: 11px; border-left: 2px solid #FFF; border-bottom: 2px solid #FFF; transform: rotate(-45deg); position: absolute; top: 3px; right: -9px; transition: transform 0.5s, top 0.5s; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one>.menu-item>a.cro-2nd-level-link-opened:not([href]) .menu-extra { transform: rotate(135deg); top: 9px; transition: transform 0.5s, top 0.5s; }', ' .cro-2nd-level-parent .sub-menu__two { display: none !important; }', ' .cro-2nd-level-parent-opened .sub-menu__two { display: block !important; }', "}", "@media (max-width: 991px) {", ' .cro-courses-group { display: none;}', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one .sub-menu.sub-menu__one .menu-item a { padding-left: 36px; background-color: #004f98; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one .sub-menu.sub-menu__two .menu-item a { padding-left: 0; }', ' .main-menu__menu>.menu-item>.sub-menu .sub-menu.sub-menu__one .sub-menu.sub-menu__two { padding-left: 56px; background-color: #004f98; }', ' .croCustomMenuMarker { display: block; width: 20px; height: 20px; position: absolute; right: 15px; top: 14px; }', ' .markerLeftSide { display: block; width: 10px; height: 10px; position: absolute; left: 0; top: 0; border-right: 2px solid #FFF; border-bottom: 2px solid #FFF; }', ' .markerRightSide { display: block; width: 10px; height: 10px; position: absolute; right: 2px; bottom: 2px; border-left: 2px solid #FFF; border-top: 2px solid #FFF; }', ' .croOpen .markerLeftSide { border-right: none; }', ' .croOpen .markerRightSide { border-left: none; }', "}", ".croAllCourseLink a { text-transform: uppercase; text-decoration: underline !important; font-weight: normal !important; }", ]; css = css.join("\n"); head.appendChild(style); style.type = "text/css"; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } } changeLayout(); addStyle(); })(jQuery);
Leave a Comment