InfoTrek | Course Details (2023)

Filter by

"; function initSearch(url) { var filterCount = 0; if (url !== 'undefined' && url !== null) { var arr = url.split('/'); } else { var arr = location.pathname.split('/'); } //var arr = location.pathname.split('/'); var f = false; $f = $("div.search-result-right-result-sort"); var kwd = arr.find(function (x) { return x.indexOf("_keyword") > -1 }), str = arr.find(function (x) { return x.indexOf("_crating") > -1 }), mth = arr.find(function (x) { return x.indexOf("_month") > -1 }), level1 = arr.find(function (x) { return x.indexOf("_clevel1") > -1 }), level2 = arr.find(function (x) { return x.indexOf("_clevel2") > -1 }), //level1 = arr[arr.lastIndexOf("category") + 1], //level2 = arr[arr.indexOf("principal") + 1], level3 = arr.find(function (x) { return x.indexOf("_clevel3") > -1 }), level4 = arr.find(function (x) { return x.indexOf("_clevel4") > -1 }), prc = arr.find(function (x) { return x.indexOf("_prange") > -1 }), trainer = arr.find(function (x) { return x.indexOf("_trainer") > -1 }), provider = arr.find(function (x) { return x.indexOf("_provider") > -1 }), specifictype = arr.find(function (x) { return x.indexOf("_type") > -1 }), sortrevelance = arr.find(function (x) { return x.indexOf("rel_sortby") > -1 }), newrevelance = arr.find(function (x) { return x.indexOf("new_sortby") > -1 }), phighrevelance = arr.find(function (x) { return x.indexOf("pdesc_sortby") > -1 }), plowrevelance = arr.find(function (x) { return x.indexOf("pasc_sortby") > -1 }), ptimeticker = arr.find(function (x) { return x.indexOf("tt_features") > -1 }) //trainer = arr[arr.indexOf("trainer") + 1], //provider = arr[arr.indexOf("provider") + 1] ; var text = $('.search-result-mobile-nav-label.selected-timetaker').text(); var el = $("#f-promo"); replaceselection(el, text); replacemobile($('.search-result-mobile-nav-label.selected-timetaker').parent()); if (typeof ptimeticker !== 'undefined') { $id = $("#tt_features"); replace($id, ptimeticker, ""); $idmobile = $(".mobile-tt_features"); replaceOnClick($idmobile, $id, prc, ""); f = true; filterCount++; } if (typeof sortrevelance !== 'undefined') { $idmobile = $("#sort-rel"); replacemobile($idmobile); var text = $idmobile.find('.search-result-mobile-nav-label').text(); var el = $('#sortby'); replaceselection(el, text); $('#desktop-rel').css('color', '#F53C7F !important'); filterCount++; } if (typeof newrevelance !== 'undefined') { $idmobile = $("#sort-new"); replacemobile($idmobile); var text = $idmobile.find('.search-result-mobile-nav-label').text(); var el = $('#sortby'); replaceselection(el, text); $('#desktop-new').css('color', '#F53C7F !important'); filterCount++; } if (typeof phighrevelance !== 'undefined') { $idmobile = $("#sort-phigh"); replacemobile($idmobile); var text = $idmobile.find('.search-result-mobile-nav-label').text(); var el = $('#sortby'); replaceselection(el, text); $('#desktop-phigh').css('color', '#F53C7F !important'); filterCount++; } if (typeof plowrevelance !== 'undefined') { $idmobile = $("#sort-plow"); replacemobile($idmobile); var text = $idmobile.find('.search-result-mobile-nav-label').text(); var el = $('#sortby'); replaceselection(el, text); $('#desktop-plow').css('color', '#F53C7F !important'); filterCount++; } if (typeof kwd !== 'undefined') { if (kwd.indexOf("%") > -1) { kwd = decodeURIComponent(kwd); } $("#Search-Bar-2").val(unescape(kwd.replace("_keyword", "").replace(/\[\-\]/g, "@dash@").replace(/-/g, " ").replace(/@dash@/g, "-"))); $('#Header-Search').val(unescape(kwd.replace("_keyword", "").replace(/\[\-\]/g, "@dash@").replace(/-/g, " ").replace(/@dash@/g, "-"))); } if (typeof str !== 'undefined') { var n = str.replace("_crating", ""); $id = $("#" + n + "-star"); replace($id, str, ""); f = true; } if (typeof mth !== 'undefined') { var n = mth.replace("_month", ""); $id = $("#" + n); replace($id, mth, ""); $idmobile = $("#" + n + "-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-month'); replaceselection(el, text); replaceOnClick($idmobile, $id, mth, ""); f = true; filterCount++; } if (typeof level1 !== 'undefined') { var n = level1.replace("_clevel1", ""); $id = $("#" + n + "-level1"); replace($id, level1, ",1"); $idmobile = $("#" + n + "-level1-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-category'); replaceselection(el, text); replaceOnClick($idmobile, $id, level1, ",1"); f = true; filterCount++; } if (typeof level2 !== 'undefined') { var n = level2.replace("_clevel2", ""); $id = $("#" + n + "-level2"); replace($id, level2, ",2"); $idmobile = $("#" + n + "-level2-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-level2'); replaceselection(el, text); replaceOnClick($idmobile, $id, level2, ",2"); f = true; filterCount++; } if (typeof level3 !== 'undefined') { var n = level3.replace("_clevel3", ""); $id = $("#" + n + "-level3"); replace($id, level3, ",3"); $idmobile = $("#" + n + "-level3-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-level3'); replaceselection(el, text); replaceOnClick($idmobile, $id, level3, ",3"); f = true; filterCount++; } if (typeof level4 !== 'undefined') { var n = level4.replace("_clevel4", ""); $id = $("#" + n + "-level4"); replace($id, level4, ",4"); $idmobile = $("#" + n + "-level4-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-level4'); replaceselection(el, text); replaceOnClick($idmobile, $id, level4, ",4"); f = true; filterCount++; } if (typeof prc !== 'undefined') { var n = prc.replace("_prange", ""); $id = $("#" + n); replace($id, prc, ""); $idmobile = $("#" + n + "-mobile"); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-price'); replaceselection(el, text); replaceOnClick($idmobile, $id, prc, ""); f = true; filterCount++; } if (typeof trainer !== 'undefined') { var n = trainer.replace("_trainer", ""); $id = $("#" + n + '-trainer'); replace($id, trainer, ""); $idmobile = $("#" + n + '-trainer-mobile'); replacemobile($idmobile); var text = $id.attr("desc"); var el = $('#f-trainer'); replaceselection(el, text); replaceOnClick($idmobile, $id, trainer, ""); f = true; filterCount++; } //if (typeof provider !== 'undefined') { // var n = provider.replace("_provider", ""); // $id = $("#" + n + '-provider'); // replace($id, provider, ""); // f = true; //} if (typeof specifictype !== 'undefined') { var n = specifictype.replace("_type", ""); $id = $("#" + n + '-type'); var index = parseInt(n); $idmobile = $("#" + n + '-type-mobile'); replacemobile($idmobile); filterCount++; var text = $id.attr("desc"); var el = $('#f-classtype'); replaceselection(el, text); switch (index) { case 0: specifictype = 'private'; break; case 1: specifictype = 'public'; break; case 3: specifictype = 'livevirtual'; break; case 4: specifictype = 'ms-on-demand'; break; } replace($id, specifictype, ""); replaceOnClick($idmobile, $id, specifictype, ""); f = true; } if (f) $f.css({ "display": "" }); $('#search-result-content-right-filter-mobile').text("Filter(" + filterCount + ")") } function replaceOnClick(el1, el2, f, pr) { el1.attr("onclick", "rFilter('" + f + "'" + pr + ")"); } function replaceselection(el, text) { el.text(text); } function replacemobile(el) { el.find('.search-result-mobile-nav-icon-2-level').addClass('search-result-mobile-nav-icon-2-level-active') el.find('.fa').addClass('fa-circle').removeClass('fa-circle-o') } function replace(el, f, pr) { el.find('.search-result-categories-label').css('font-weight', 700); el.find('.search-result-categories-count').css('font-weight', 700); $f.append(temp.replace("##TEXT##", el.attr("desc")).replace("##FILTER##", f).replace("##PARENT##", pr)); } function rFilter(v, pr) { var s = location.pathname.replace(v + "/", "").replace(v, ""); if (typeof filterurl != 'undefined' && filterurl !== '') { s = /courses/ + filterurl; } var j = true; if (v.indexOf('_provider') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('provider') + 1, 1); p.splice(p.indexOf('provider'), 1); s = p.join('/'); } if (v.indexOf('_clevel1') !== -1) { var p = s.split('/'); if (p.lastIndexOf('category') !== -1) { j = false; } p.splice(p.lastIndexOf('category') + 1, 1); p.splice(p.lastIndexOf('category'), 1); s = p.join('/'); } if (v.indexOf('_clevel2') !== -1) { var p = s.split('/'); if (p.lastIndexOf('principal') !== -1) { j = false; } p.splice(p.indexOf('principal') + 1, 1); p.splice(p.indexOf('principal'), 1); s = p.join('/'); } if (v.indexOf('_clevel3') !== -1) { var p = s.split('/'); if (p.lastIndexOf('product') !== -1) { j = false; } p.splice(p.indexOf('product') + 1, 1); p.splice(p.indexOf('product'), 1); s = p.join('/'); } if (v.indexOf('_clevel4') !== -1) { var p = s.split('/'); j = false; p.splice(p.indexOf('pdetails') + 1, 1); p.splice(p.indexOf('pdetails'), 1); s = p.join('/'); } if (v.indexOf('_trainer') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('trainer') + 1, 1); p.splice(p.indexOf('trainer'), 1); s = p.join('/'); } if (v.indexOf('tt_features') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('tt_features'), 1); s = p.join('/'); } if (v.indexOf('private') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('private'), 1); s = p.join('/'); } if (v.indexOf('public') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('public'), 1); s = p.join('/'); } if (v.indexOf('ms-on-demand') !== -1) { j = false; var p = s.split('/'); p.splice(p.indexOf('ms-on-demand'), 1); s = p.join('/'); } if (v.indexOf('prange') !== -1) { j = false; var p = s.split('/'); var ind; for (var i = 0; i < p.length; i++) { if (p[i].indexOf('prange') !== -1) ind = i; } p.splice(ind, 1); s = p.join('/'); } if (typeof pr !== 'undefined') { for (var i = pr + 1; i <= 4; i++) { if (i === 2 && p.indexOf('principal') !== -1) { var p = s.split('/'); p.splice(p.indexOf('principal') + 1, 1); p.splice(p.indexOf('principal'), 1); s = p.join('/'); } else if (i === 3 && p.indexOf('product') !== -1) { var p = s.split('/'); p.splice(p.indexOf('product') + 1, 1); p.splice(p.indexOf('product'), 1); s = p.join('/'); } else if (i === 4 && p.indexOf('pdetails') !== -1) { var p = s.split('/'); p.splice(p.indexOf('pdetails') + 1, 1); p.splice(p.indexOf('pdetails'), 1); s = p.join('/'); } } } var x = location.pathname.replace(v + "/", "").replace(v, ""); var ks = x.split('/'); if (typeof pr !== 'undefined' && j) { if (ks.indexOf('pdetails') !== -1) { ks.splice(ks.indexOf('pdetails') + 1, 1); ks.splice(ks.indexOf('pdetails'), 1); } for (var i = pr + 1; i <= 4; i++) { if (pr < ks.length && [pr].indexOf('_prange') === -1 && ks[pr].indexOf('_crating') === -1 && ks[pr].indexOf('_month') === -1 && ks[pr].indexOf('_type') === -1) { ks.splice(pr, 1); } } s = ks.join('/'); if (pr === 1) s = '/courses' + ks.join('/'); } if (s.indexOf('courses/category') !== -1) { s = s.replace("/courses/category", ""); } if (s === "") s = "/courses/"; if (removePage(s).slice(-1) !== '/') s = removePage(s) + '/'; //location.pathname = s; var newurl = window.location.protocol + "//" + window.location.host + s; window.history.pushState({ path: newurl }, '', newurl); window.parent.GoTOFilter(newurl); } function cleanArray(actual) { var newArray = new Array(); for (var i = 0; i < actual.length; i++) { if (actual[i]) { newArray.push(actual[i]); } } return newArray; } function checkConstraint(p) { if (p.indexOf('/') !== -1) { p = p.replace(/\//ig, 'wxy'); } if (p.indexOf('@') !== -1) { p = p.replace(/@/g, 'vwx'); } if (p.indexOf('&') !== -1) { p = p.replace(/&/g, 'xyz'); } if (p.indexOf('(') !== -1) { p = p.replace(/[(]/g, 'aaa'); } if (p.indexOf(')') !== -1) { p = p.replace(/[)]/g, 'bbb'); } if (p.indexOf('-') !== -1) { p = p.replace(/-/g, 'ccc'); } return p; } function sClick(v, d, pr) { debugger; var p = new RegExp("[\\d\\s\\w\\-]+" + d + "[\/]?", "g"); var s = location.pathname.replace(p, ""); if (s[s.length - 1] !== '/') { s = s + '/'; } var splitS = s.split('/'); for (var i = 0; i < splitS.length; i++) { if (splitS[i].match(/[0-9]+_page/g)) { splitS.splice(i, 1); } } s = splitS.join('/'); var isProviderOrCategoryOrPrincipalOrTrainer = false; if (typeof pr !== 'undefined') { for (var i = pr + 1; i <= 4; i++) { p = new RegExp("[\\d\\s\\w]+_clevel" + i + "[\/]?", "g"); s = s.replace(p, ""); } } if (d.indexOf('provider') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('provider'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (d.indexOf('category') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('category'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (d.indexOf('principal') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('principal'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (d.indexOf('product') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('product'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (d.indexOf('tt_features') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; if (v == '1') { var p = s.split('/'); p.push('tt_features'); p = cleanArray(p); s = p.join('/'); } else if (v == '0') { var p = s.split('/'); p.splice(p.indexOf('tt_features'), 1); p = cleanArray(p); s = p.join('/'); } } if (d.indexOf('pdetails') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('pdetails'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (d.indexOf('trainer') !== -1) { isProviderOrCategoryOrPrincipalOrTrainer = true; v = checkConstraint(v); v = v.replace(/\s/g, '-'); var p = s.split('/'); p.push('trainer'); p.push(v); p = cleanArray(p); s = p.join('/'); } if (isProviderOrCategoryOrPrincipalOrTrainer) { //location.pathname = s + "/"; var newurl = window.location.protocol + "//" + window.location.host + '/' + s + '/'; window.history.pushState({ path: newurl }, '', newurl); window.parent.GoTOFilter(newurl); } else { //location.pathname = removePage(s) + v + "/"; var newurl = window.location.protocol + "//" + window.location.host + removePage(s) + v + "/"; window.history.pushState({ path: newurl }, '', newurl); window.parent.GoTOFilter(); } } function removePage(s) { var p = new RegExp("[\\d]+_page[\/]?", "g"); return s.replace(p, ""); }

Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated: 03/08/2023

Views: 5712

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.