PageSourceSearch

https://www.pcc.edu/wp-content/themes/pcc/_source/scripts/pcc.min.js

js pcc.edu collected 2026-10-01 09:11:25 UTC 29,285 bytes, 2 lines download raw bytes

1// Created:  2026-09-01_10:49:40
2var debug=true;var $=jQuery;$(document).ready(function(){pcc_ajax();pcc_animation();pcc_calendars();pcc_cards();pcc_consent();pcc_feeds();pcc_forms();pcc_fortune_teller();pcc_header();pcc_iframes();pcc_links();pcc_open_sesame();pcc_presentation();pcc_sliders();pcc_tables();pcc_tabs()});$(window).on("load",function(){});var window_w=window.innerWidth;$(window).on("resize",function(e){if(window.innerWidth!=window_w){$(document).trigger("pcc:resize_width")}window_w=window.innerWidth});function log(v){if(debug){console.log(v)}}function pcc_ajax(){$(".pcc-ajax").each(function(){var url=$(this).data("url");if(!pcc_ajax_local(url)){return}var t=$(this);$.get(url,function(data){var regex=RegExp("<(script|html)[> ]");regex.test(data)?t.html('<a href="'+url+'" target="_blank">Data currently unavailable...</a>'):t.html(data);var callback=t.data("callback");if(callback){window[callback]()}})})}function pcc_ajax_local(url){var regex_root=new RegExp("^/[^/]");var regex_full=new RegExp("^(https:)?//(www|wwwdev|wwwtest).pcc.edu/");if(regex_root.test(url)||regex_full.test(url)){return true}return false}function pcc_animation(){}function pcc_calendars(){pcc_mini_calendar();if($("#content div.consult-the-oracle")[0]){$.ajax({url:PCC_SOURCE+"vendor/moment/moment.min.js",dataType:"script",cache:true}).done(pcc_consult_the_oracle)}else{}}function pcc_mini_calendar(){$(".mini-calendar").each(function(){if($(this).data("creditonly")===true){$(this).load("/feeds/mini-calendar/credit-only/")}else{$(this).load("/feeds/mini-calendar/")}})}var columnHeaders=columnHeaders||["what","where","when"];var showDuration=showDuration||true;var seasonOpener=seasonOpener||"";var simpleSyrup=simpleSyrup||false;var funCalendarMods=funCalendarMods||"";var limit=limit||250;var show=show||250;var showDesc=showDesc||true;var showWhere=showWhere||true;var showCaption=showCaption||true;var showAdd=showAdd||true;var ajax_calls=0;var moment;var now;function pcc_consult_the_oracle(){now=moment();$("div.consult-the-oracle").each(function(index){var temp;columnHeaders=$(this).data("headers")?$(this).data("headers").split(","):columnHeaders;showDuration=$(this).data("duration")==false?false:showDuration;seasonOpener=$(this).data("start")||seasonOpener;simpleSyrup=$(this).data("simple")==true?true:simpleSyrup;limit=$(this).data("limit")||limit;show=$(this).data("show")||show;showDesc=$(this).data("description")==false?false:showDesc;showWhere=$(this).data("where")==false?false:showWhere;showCaption=$(this).data("caption")==false?false:showCaption;showAdd=$(this).data("add")==false?false:showAdd;let calendarID;ajax_calls++;if($(this).text()!==""){calendarID=$(this).text();calendarID=$.trim(calendarID);calendarID=encodeURIComponent(calendarID);$(this).text("");$(this).append('<span class="loading"></span>');get_calendar($(this),calendarID,index)}})}function get_calendar(div,cal,index){var sortableDate;var summaryText;var startDate;var endDate;var eventDescription;var eventLocation;var hangoutText;var pastEncode;var futureEncode;var past=moment(now);var future=moment(now).add("M",6);var currentYear=moment(now).get("year");if(seasonOpener){seasonOpener=moment(seasonOpener,"MM-DD");if(moment(seasonOpener).isValid()===true){if(now.format("DDDD")>seasonOpener.format("DDDD")){seasonOpener.set("year",currentYear)}else{seasonOpener.set("year",currentYear-1)}past=seasonOpener;future=moment(seasonOpener).add(1,"y")}}pastEncode=encodeURIComponent(past.toISOString());futureEncode=encodeURIComponent(future.toISOString());var url="https://www.googleapis.com/calendar/v3/calendars/"+cal+"/events?&orderBy=startTime"+"&q="+"&maxResults="+limit+"&timeMin="+pastEncode+"&timeMax="+futureEncode+"&singleEvents=true"+"&fields=items%28description%2Cstart%2Clocation%2ChangoutLink%2ChtmlLink%2Csummary%2Cend%29"+"%2Csummary"+"&timeZone=America%2FLos_Angeles"+"&key=AIzaSyDuCYK-Uv2JYbtYWrvwyzNvN1s-RnUST6s";$.getJSON(url+"&callback=?",function(data){var showlimit=show;if(data.error){div.find("span.loading").addClass("fineprint").html("This calendar could not be found."+"<br/><small>error "+data.error.code+"</small>")}else{div.find("span.loading").remove();if(simpleSyrup){div.append('<ul class="oracle"></ul>');div.prepend("<h3>"+data.summary+"</h3>")}else{var calendarHref="https://www.google.com/calendar/render?cid=https://www.google.com/calendar/feeds/"+cal+"/public/basic1";var calendarLink='<a target="_blank" class="alignright" href="'+calendarHref+'">'+'<img src="/wp-content/themes/pcc/_source/images/add-to-my-google-cal.svg" onerror="this.src=&quot;/wp-content/themes/pcc/_source/images/add-to-my-google-cal.png&quot;; this.onerror=null;" alt="Add to my Google Calendar" style="position:relative; z-index:100;"></a>';if(showAdd===true){div.append(calendarLink)}div.append('<table class="oracle clear turntable"></table>');if(showWhere===true){div.find("table").append('<thead><tr><th data-sort="string">'+columnHeaders[0]+'</th><th data-sort="string">'+columnHeaders[1]+'</th><th data-sort="int">'+columnHeaders[2]+"</th></tr></thead><tbody></tbody>")}else{div.find("table").append('<thead><tr><th data-sort="string">'+columnHeaders[0]+'</th><th data-sort="int">'+columnHeaders[2]+"</th></tr></thead><tbody></tbody>")}if(showCaption===true){div.find("thead").before("<caption>"+data.summary+"</caption>")}else{div.find("thead").before('<caption class="hide">'+data.summary+"</caption>")}}if($(data.items).length>0){var eventText="";$(data.items).each(function(){if(this.start.dateTime){sortableDate=moment(this.start.dateTime).format("YYYYMMDDHHmm");
2if(simpleSyrup){startDate=moment(this.start.dateTime).format("M[/]D")}else{startDate=moment(this.start.dateTime).format("MMM D, ddd, h:mma ");startDate=startDate.replace(":00","")}}else{sortableDate=moment(this.start.date).format("YYYYMMDD[0000]");if(simpleSyrup){startDate=moment(this.start.date).format("M[/]D")}else{startDate=moment(this.start.date).format("MMM D, ddd")}}if(this.end.dateTime&&showDuration===true){endDate=moment(this.end.dateTime).format("h:mma ");endDate=" to "+endDate.replace(":00","")}else if(this.end.date){endDate=moment(this.end.date);endDate=moment(endDate).subtract(1,"day");endDate=endDate.format("MMM D, ddd");if(endDate===startDate){endDate=""}else{endDate=" - "+endDate}}else{endDate=""}if(this.description&&showDesc===true){eventDescription='<br/><span class="fineprint">'+this.description+"</span>"}else{eventDescription=""}var loc_re=/(https?:\/\/[^\s,]+)/gi;eventLocation=!this.location?"":"<p>"+this.location.replace(loc_re,'<a href="$1" target="_blank">$1</a>')+"</p>";hangoutText=!this.hangoutLink?"":'<p><a href="'+this.hangoutLink+'" target="_blank">Join Hangouts Meet</a><br/><span class="fineprint">'+this.hangoutLink.replace(/(^\w+:|^)\/\//,"")+"</span></p>";summaryText=this.summary;var eid=this.htmlLink.split("=")[1].split("&")[0];var eventAdd="https://calendar.google.com/calendar/b/1/r/eventedit/copy/"+eid;var hide="";if(showlimit<=0){hide=' class="hide"'}if(simpleSyrup){eventText=eventText+'<li data-sort-value="'+sortableDate+'">'+startDate+" "+summaryText+"</li>"}else{eventText=eventText+"<tr"+hide+'><th scope="row">'+summaryText+eventDescription+"</th>";if(showWhere===true){eventText=eventText+"<td>"+eventLocation+hangoutText+"</td>"}eventText=eventText+'<td data-sort-value="'+sortableDate+'"><a href="'+eventAdd+'" title="add \''+summaryText+'\' event to your gcal" target="_blank">'+startDate+endDate+"</a></td></tr>"}showlimit-=1});if(simpleSyrup){div.find(".oracle").append(eventText)}else{div.find(".oracle tbody").append(eventText)}}else{div.find(".oracle").replaceWith('<span class="no-events fineprint">No upcoming events.</span>')}var tfoot='<a href="https://calendar.google.com/calendar/b/1/embed?src='+cal+'&ctz=America/Los_Angeles" target="_blank">View full calendar &raquo;</a>';if(showlimit<0){tfoot='<a href="" onclick="show_hidden($(this)); return false;">+ Show '+-showlimit+" more events</a> |"+tfoot}div.find("table").append('<tfoot><tr><td style="text-align:right;background:transparent;border:none;" colspan="3">'+tfoot+"</td></tr></tfoot>")}ajax_done()})}function ajax_done(){ajax_calls--;if(!ajax_calls){pcc_tables();if(typeof funCalendarMods=="function"){funCalendarMods()}}}function show_hidden(el){$(el).closest("table").find("tr.hide").removeClass("hide");$(el).closest("tfoot").remove();return false}function pcc_cards(){pcc_card_basics();pcc_card_columns()}function pcc_card_basics(){$(".info,.action,.related,.bulletin,.highlight").each(function(){$(this).addClass("card");$(this).find(":header:first").addClass("card-heading")})}function pcc_card_columns(){$(".card-columns").addClass("grid-x grid-margin-x")}function pcc_feeds(){pcc_load_alerts();pcc_proxy_feeds();pcc_feed_links()}function pcc_load_alerts(){if(window.location.hostname!=="alert.pcc.edu"){$.getJSON("https://www.pcc.edu/_feeds/alerts/alert.json",function(data){$.each(data,function(key,val){if(val["text"].trim()){switch(val["path"]){case"/test/":if(window.location.hostname==="wwwtest.pcc.edu"){$("#global-header").before('<div id="alert" role="complementary" aria-label="Test announcement"><div class="grid-container"><div class="grid-x grid-margin-x"><div class="cell small-12 medium-1"><i class="fas fa-exclamation-triangle"></i></div><div class="cell small-12 medium-11"><p style="min-width:300px;">'+val["text"]+"</p></div></div></div>")}break;case"/":$("#global-header").before('<div id="alert" role="complementary" aria-label="Alert announcement"><div class="grid-container"><div class="grid-x grid-margin-x"><div class="cell small-12 medium-1"><i class="fas fa-exclamation-triangle"></i></div><div class="cell small-12 medium-11"><p style="min-width:300px;">'+val["text"]+"</p></div></div></div>");break;case"/announcement/":$("#main").before('<div id="alert-announcement" role="complementary" aria-label="Urgent announcement"><p>'+val["text"]+"</p></div>");break}}})})}}function pcc_proxy_feeds(){$(".pccnews").each(function(){var feed_string=encodeURI($(this).attr("title"));$(this).load("/feeds/news/?"+feed_string)})}function pcc_feed_links(){$("head").append('<link rel="alternate" type="application/rss+xml" title="News Releases | Portland Community College" href="https://www.pcc.edu/news/feed/" />');$("head").append('<link rel="alternate" type="application/rss+xml" title="Profiles | Portland Community College" href="https://www.pcc.edu/news/category/homepage-feature/feed/" />');$("head").append('<link rel="alternate" type="application/rss+xml" title="Videos | Portland Community College" href="https://www.youtube.com/feeds/videos.xml?channel_id=UCN466LfbD0UoUAFM9MbNQIA" />')}function pcc_forms(){$("form").on("submit",pcc_form_submit).on("reset",pcc_form_reset)}function pcc_form_reset(){return confirm("Are you sure you want to clear the form?\nYou will have to start over...")}function pcc_form_submit(){return pcc_form_validate($(this))}function pcc_form_validate(form){if(form.hasClass("dont-validate")){return}var i,j,ok,field,errors=[],devErrors=[];form.find(":input").each(function(){var mess="";var field=$(this)[0];if($(this).hasClass("required")){switch(field.type){case"text":case"textarea":case"password":if(!/\w+/.test(field.value)){errors.push(field)}else if($(this).hasClass("pccemail")){if(!re.pccemail.test(field.value)){errors.push(field)}}else if($(this).hasClass("email")){if(field.value.toLowerCase()=="none"){field.value="[email protected]"}else if(!re.email.test(field.value)){errors.push(field)}}break;case"select-one":case"select-multiple":if(field.selectedIndex<0||field.options[field.selectedIndex].value=="null"){errors.push(field)}break;case"radio":for(j=0,ok=false;j<frm[field.name].length;j++){if(frm[field.name][j].checked){ok=true;break}}if(!ok){for(j=0,ok=false;j<errors.length;j++){if(errors[j].name==field.name){ok=true;break}}if(!ok){errors.push(field)}}break;case"checkbox":if(!field.checked){errors.push(field)}break}}});if(devErrors.length>0){mess="Warning - this form contains errors...\n\n";for(i in devErrors){mess+="     "+devErrors[i]+"\n"}mess+="\nPlease contact [email protected]\n";alert(mess);return false}else if(errors.length>0){mess="The form appears to be incomplete, please include...\n\n";for(i in errors){if(errors[i].title){j=errors[i].title}else if(errors[i].parentNode.nodeName=="LABEL"&&errors[i].parentNode.title){j=errors[i].parentNode.title}else{j=errors[i].name}mess+="    * "+j+"\n"}alert(mess);errors[0].focus();return false}return true}var re={protocol:new RegExp("(ftp|https?)://"),index:new RegExp("(/|((default|index)\\.(htm|html|cfm|php)))$"),email:new RegExp("^\\s*(mailto:)?\\w+([+\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,})+\\s*$"),pccemail:new RegExp("^\\s*(mailto:)?\\w+([\\.-]?\\w+)*@pcc\\.edu\\s*$")};function pcc_fortune_teller(){$("form.fortune-teller input").prop("checked",false);$("form.fortune-teller input").on("click",function(){if($(this).parents("div.answer-group").children("div.answer").is(":visible")==false){$(this).parents("div.answer-group").children("div.answer").animate({height:45},"fast")}$(this).parents("div.answer-group").children("label").removeClass("arrow");var answer=$(this).parents("label").attr("class");$(this).parents("div.answer-group").children("div.answer").children("p").not("."+answer).fadeOut(400,function(){$(this).parents("div.answer-group").children("div.answer").children("p."+answer).fadeIn(400)});$(this).parents("label").addClass("arrow")})}function pcc_header(){pcc_menu_icon();pcc_megamenu()}function pcc_menu_icon(){$("#navigation div.title-bar button.menu-icon").on("mousedown focus click",function(e){switch(e.type){case"mousedown":if(!$(this).is(":focus")){$(this).data("mdown",true)}break;case"focus":if(!$(this).data("mdown")){pcc_menu_icon_toggle($(this));$(this).parent().foundation("toggleMenu")}$(this).removeData("mdown");break;case"click":pcc_menu_icon_toggle($(this));break}});$("#mypcc-li a").on("blur",function(e){$("#navigation div.title-bar button.menu-icon").click()})}function pcc_menu_icon_toggle($el){if(!$el.hasClass("active")){$el.addClass("active").attr("aria-expanded","true")}
2else{$el.removeClass("active").attr("aria-expanded","false")}}function pcc_top_bar(){$("main li.toggle-topbar a").on("mousedown focus click",function(e){switch(e.type){case"mousedown":if(!$(this).is(":focus")){$(this).data("mdown",true)}break;case"focus":if(!$(this).data("mdown")){$("main nav.top-bar").addClass("expanded");$("main nav.top-bar .top-bar-section .dropdown").removeClass("dropdown");$("main nav.top-bar .top-bar-section li.back, .top-bar-section .has-dropdown > a").remove()}$(this).removeData("mdown");break;case"click":e.preventDefault();break}})}function pcc_megamenu(){$("#mega-apply li#mega-apply-content").load(PCC_SOURCE+"scripts/content/megamenu.html",function(){$(this).find("#pcc-term-dates").load("/feeds/content/term-dates/")});$("#megamenu-apply").on("mouseenter",function(){pcc_megamenu_focus()}).on("mouseleave",function(){pcc_megamenu_blur()});$("#megamenu-apply a:first").on("click touchend",function(event){if(Foundation.MediaQuery.atLeast("medium")){event.preventDefault();pcc_megamenu_toggle()}});$("#megamenu-apply a:first").on("focus",function(){pcc_megamenu_focus()});$("#megamenu-programs a").on("focus",function(){pcc_megamenu_blur()});$(document).on("pcc:resize_width",function(e){pcc_megamenu_blur()});$(window).on("changed.zf.mediaquery",function(){pcc_megamenu_close();$("#title-bar-icon button").removeClass("active");$("#main-nav.invisible").removeClass("invisible")})}function pcc_megamenu_toggle(action){var w=$("#global-header").width();if(w<=640){$("#mega-apply").addClass("dropdown").css({height:"",width:"","margin-left":"","max-height":"",display:""});return}switch(action){case"focus":$("#megamenu-apply").addClass("enabled").find("a#get-started").attr("aria-expanded","true");var l=$("#megamenu-apply").offset().left;l=-l;$("#mega-apply").removeClass("dropdown").css({width:w,"margin-left":l}).stop().slideDown();break;case"blur":$("#megamenu-apply").removeClass("enabled").find("a#get-started").attr("aria-expanded","false");$("#mega-apply").stop().slideUp();break;case"close":$("#megamenu-apply").removeClass("enabled").find("a#get-started").attr("aria-expanded","false");$("#mega-apply").stop().hide();break;default:$("#megamenu-apply").hasClass("enabled")?pcc_megamenu_toggle("blur"):pcc_megamenu_toggle("focus")}}function pcc_megamenu_focus(){pcc_megamenu_toggle("focus")}function pcc_megamenu_blur(){pcc_megamenu_toggle("blur")}function pcc_megamenu_close(){pcc_megamenu_toggle("close")}function pcc_iframes(){$('iframe[src*="youtube.com"]').wrap("<div class='youtube-container'></div>")}function pcc_links(){pcc_quick_links();pcc_sidebar_more();$("#page-title a[href], #content a[href], footer a[href]").each(function(){pcc_link_type($(this));pcc_link_email($(this));pcc_link_popup($(this))})}function pcc_quick_links(){var clicked=false;$("#hnav a.quick-links").on("click",function(e){e.preventDefault();clicked?$(this).mouseout():$(this).mouseover();clicked=clicked?false:true})}function pcc_sidebar_more(){$("#snav-view-more").on("keydown click",function(event){if(event.which==13||event.which==1){$("#side-nav-children li.hide").removeClass("hide");$(this).parent("li").remove()}if(event.which==13){$("#side-nav-children li a").eq(5).focus()}return false})}function pcc_link_type(link){if(link.has("img").length){return}if(window.location.hostname!=="intranet.pcc.edu"){if(link.is("a[href*='//intranet.pcc.edu']")){link.append(' <em class="link-type" title="Only Available on PCC Campus - www.pcc.edu/help/">[intranet]</em>');return}}var ext=link.attr("href").substr(link.attr("href").lastIndexOf(".")+1);switch(ext){case"pdf":link.append(' <em class="link-type" title="Portable Document Format - www.pcc.edu/help/">[pdf]</em>');break;case"doc":case"docx":link.append(' <em class="link-type" title="Microsoft Word Document - www.pcc.edu/help/">[doc]</em>');break;case"xls":case"xlsx":link.append(' <em class="link-type" title="Microsoft Excel Document - www.pcc.edu/help/">[xls]</em>');break;case"ppt":case"pptx":link.append(' <em class="link-type" title="Microsoft PowerPoint Document - www.pcc.edu/help/">[ppt]</em>');break}}function pcc_link_popup(link){if(link.is($("a[class^=popup]:not([onclick])"))){var t=link.attr("title")?link.attr("title")+" [opens in new window]":link.text()+" [opens in new window]";link.attr("target","_blank").attr("title",t).append('<em class="link-type visually-hide"> [opens in new window]</em>')}}function pcc_link_email(link){if(link.is($("a[href^='mailto:'][href$='@pcc.edu']:not([onclick])"))){var address=link.prop("href").replace("mailto:","");var linkHtml=link.html();if(link.attr("title")){address+="&subject="+link.attr("title")}else{link.attr("title","Send mail to "+address)}link.attr("href","//www.pcc.edu/web-services/email/?to="+address).html(linkHtml).addClass("popup")}}var pcc_icon_open="fa fa-plus",pcc_icon_close="fa fa-minus",headerLevel;function pcc_open_sesame(){$("div.open-sesame").each(open_sesame)}
2function open_sesame(divIndex){headerLevel=$(this).find(":header:first").prop("tagName");$(this).children(headerLevel).each(function(headerIndex){if($(this).nextUntil(headerLevel).length){$(this).prepend('<i role="presentation" class="'+pcc_icon_open+'"></i>');var divID="collapse"+divIndex+"-"+headerIndex;$(this).wrapInner('<a aria-expanded="false" href="#'+divID+'" />');$(this).nextUntil(headerLevel).wrapAll('<div class="facade" tabindex="-1" id="'+divID+'"></div>');$("div#"+divID).wrapInner('<div class="hidden-content" aria-hidden="true"></div>');$("div#"+divID+" div.hidden-content").hide();$(this).click(function(event){if($(event.target).is("a:not([href^='#'])")){}else if(!$(this).hasClass("open")){event.preventDefault();$(this).find("a").attr("aria-expanded","true");let $div=$("#"+divID);$div.find("div.hidden-content:first").attr("aria-hidden","false").slideDown("fast");$div.focus();if($div.find("div.tabs").length){pcc_tabs_wrapping();$div.find(".tabs .tabs-panel:visible").removeAttr("style")}$(this).addClass("open").find("i").removeClass(pcc_icon_open).addClass(pcc_icon_close)}else{event.preventDefault();$("div#"+divID+" div.hidden-content:first").slideUp("fast").attr("aria-hidden","true");$(this).find("a").attr("aria-expanded","false");$(this).removeClass("open").find("i").removeClass(pcc_icon_close).addClass(pcc_icon_open);$(this).find("i").focus()}$(window).trigger("resize")})}})}function pcc_presentation(){pcc_button_arrows()}function pcc_button_arrows(){$("#content .button, #content button").append('<i class="fa-solid fa-angle-right"></i>')}function pcc_sliders(){if($("#content div.slideshow")[0]){$.ajax({url:PCC_SOURCE+"/vendor/royalslider-9.5.7/jquery.royalslider.min.js",dataType:"script",cache:true}).done(pcc_sliders_ready)}else{}}function pcc_sliders_ready(){$("#content div.slideshow").each(function(){var w=$(this).data("width")!==undefined?$(this).data("width"):360;var h=$(this).data("height")!==undefined?$(this).data("height"):240;$(this).children("div").children("img").addClass("rsImg");$(this).children("div").children("div, p").addClass("rsContent");$(this).royalSlider({keyboardNavEnabled:true,autoScaleSlider:true,autoScaleSliderWidth:w,autoScaleSliderHeight:h,imageScaleMode:"fill",controlsInside:false,loop:true,transitionType:"fade",autoPlay:{enabled:true,pauseOnHover:true,delay:5e3}})})}var pcc_icon_sort="fas fa-sort";var pcc_icon_asc="fas fa-sort-down";var pcc_icon_desc="fas fa-sort-up";function pcc_tables(){if($("#content table")[0]){pcc_table_responsive();if($("#content table.turntable")[0]){$.ajax({url:PCC_SOURCE+"/vendor/stupidtable/stupidtable.min.js",dataType:"script",cache:true}).done(pcc_table_sort)}}}function pcc_table_responsive(){$("table").wrap('<div class="table"></div>').after('<div class="shadow-left"></div><div class="shadow-right"></div>').on("scroll",pcc_table_shadows);$(window).resize(function(){$("table").each(pcc_table_shadows)});$(window).on("load",function(){$(this).resize()})}function pcc_table_shadows(){if($(this).outerWidth()<$(this).get(0).scrollWidth){var left=$(this).scrollLeft();var right=Math.floor($(this).get(0).scrollWidth-$(this).outerWidth()-left);left?$(this).parent().find("div.shadow-left").fadeIn(300):$(this).parent().find("div.shadow-left").fadeOut(300);right?$(this).parent().find("div.shadow-right").fadeIn(300):$(this).parent().find("div.shadow-right").fadeOut(300)}else{$(this).parent().find("div.shadow-left,div.shadow-right").hide()}}function pcc_table_sort(){var $table=$("#content table.turntable").each(function(){if(!$(this).find("th[data-sort]")[0]){$(this).find("thead th").attr("data-sort","string")}$(this).stupidtable()});$table.find("th[data-sort]").each(function(i){let text=$(this).text();$(this).append(' <i class="'+pcc_icon_sort+'" role="presentation" title="Sort by '+text+'" ><span class="hide">Sort by '+text+"</span></i>");$(this).attr("aria-label","Sort by "+text).attr("tabindex",0);$(this).on("keypress",function(e){if(e.key==="Enter"){$(this).trigger("click")}});if(i==0){$(this).attr("aria-sort","none")}});$table.on("aftertablesort",function(event,data){let th=$(this).find("th");let dir=$.fn.stupidtable.dir;th.removeAttr("aria-sort").find("i").removeClass(pcc_icon_asc+" "+pcc_icon_desc).addClass(pcc_icon_sort);let arrow=data.direction===dir.ASC?pcc_icon_asc:pcc_icon_desc;let aria=data.direction===dir.ASC?"ascending":"descending";th.eq(data.column).attr("aria-sort",aria).find("i").removeClass(pcc_icon_sort).addClass(arrow)})}function pcc_tabs(){$("div.tabs").each(function(i){headerLevel=$(this).children(":header:first").prop("tagName");if(!headerLevel){return}let $tab_header=$('<ul id="tabs-'+i+'" class="tabs" data-responsive-accordion-tabs="tabs small-tabs" data-deep-link="true" data-update-history="true" data-deep-link-smudge="true" data-deep-link-smudge-offset="150" />');let $tab_body=$('<div class="tabs-content" data-tabs-content="tabs-'+i+'"/>');first_class="is-active";$(this).children(headerLevel).each(function(headerIndex){let title=$
2(this).text();let slug=title.toString().toLowerCase().trim().replace(/[\s\W-]+/g,"-");if(i){slug="tabs"+i+"-"+slug}let $content=$(this).nextUntil(headerLevel);let heading="<"+headerLevel+' class="visually-hide">'+title+"</"+headerLevel+">";$tab_header.append('<li class="tabs-title '+first_class+'"><a href="#'+slug+'">'+title+"</a></li>");$tab_body.append($('<div id="'+slug+'" class="tabs-panel '+first_class+'">').append(heading).append($content));first_class=""});$(this).html($tab_header).append($tab_body);$("#tabs-"+i).on("init.zf.tabs",function(e){pcc_tabs_wrapping()});var tabs_element=new Foundation.ResponsiveAccordionTabs("#tabs-"+i);$("#tabs-"+i).on("down.zf.accordion",function(e,$target){let tab="#"+$target.attr("id")+"-label";let offset=50;let t_top=$(tab).offset().top-offset;let w_top=$(window).scrollTop();if(t_top<w_top){Foundation.SmoothScroll.scrollToLoc(tab,{threshold:50,offset:50})}});$("#tabs-"+i).on("change.zf.tabs down.zf.accordion",function(e,$target){$(this).attr("role","tablist");let id=$(this).attr("id");let $panel=$(".tabs .tabs-content[data-tabs-content="+id+"] .tabs-panel:visible");$panel.css("display","");$panel.find("div.slideshow").each(function(){$(this).royalSlider("updateSliderSize",true)});$panel.find("table").each(pcc_table_shadows)})})}$(document).on("pcc:resize_width",function(e){pcc_tabs_wrapping()});function pcc_tabs_wrapping(){$("div.tabs ul:first-child").each(function(){let padding=10;let id=$(this).attr("id");let ul_w=$(this).innerWidth();let li_w=0;$(this).find(".accordion-title,.tabs-title").each(function(){$(".accordion-title").css("display","inline");li_w+=$(this).outerWidth()+padding;$(".accordion-title").css("display","")});li_w-=padding;let tabs=$(this).hasClass("tabs");let wrap=li_w>ul_w?true:false;if(id&&tabs&&wrap){$(this).data("responsive-accordion-tabs","tabs small-accordion");$(this).removeClass("tabs").addClass("accordion");$(this).foundation("_destroy");var tabs_element=new Foundation.ResponsiveAccordionTabs($(this))}else if(id&&!tabs&&!wrap){$(this).data("responsive-accordion-tabs","tabs small-tabs");$(this).removeClass("accordion").addClass("tabs");$(this).foundation("_destroy");var tabs_element=new Foundation.ResponsiveAccordionTabs($(this))}})}let consent_debug=false;let pcc_marketing_granted=false;function pcc_consent(){if($("#privacy-consent").length){$.get(PCC_SOURCE+"scripts/content/consent.html",function(data){pcc_consent_privacy(data,JSON.parse(localStorage.getItem("consentMode")));pcc_consent_event("000")})}else{if(localStorage.getItem("consentMode")===null||consent_debug===true){$.get(PCC_SOURCE+"scripts/content/consent.html",function(data){pcc_consent_banner(data);pcc_consent_event("000")})}}}function pcc_consent_privacy(data,json){$banner=$("#privacy-consent");$banner.html(data);if(json!==null){if(json.pcc_analytics==="denied"){$("#consent_analytics_switch").prop("checked",false)}if(json.pcc_marketing==="denied"){$("#consent_marketing_switch").prop("checked",false)}else{pcc_marketing_granted=true}}$button=$banner.find("#consent-button-selected");$button.click(function(event){event.preventDefault();pcc_consent_update({pcc_required:true,pcc_analytics:$("#consent_analytics_switch").is(":checked")?true:false,pcc_marketing:$("#consent_marketing_switch").is(":checked")?true:false});let d=new Date;let time=d.toLocaleTimeString();$banner.find("#consent-success").html('<h4>Success <i class="fa-solid fa-circle-check"></i></h4><p>Your options were updated at '+time+"</p>")})}function pcc_consent_banner(data){$("body").append(data);$banner=$("#consent");$banner.slideDown("slow");$banner.find("#content-button-customize").click(function(event){event.preventDefault();$(this).hide();$("#consent-button-all, #consent-button-nope").hide();$("#consent-customize").slideDown("slow")});$banner.find("#consent-button-all, #consent-button-nope, #consent-button-selected").click(function(event){event.preventDefault();if(event.target.id==="consent-button-nope"){$("#consent_analytics_switch, #consent_marketing_switch").prop("checked",false)}pcc_consent_update({pcc_required:true,pcc_analytics:$("#consent_analytics_switch").is(":checked")?true:false,pcc_marketing:$("#consent_marketing_switch").is(":checked")?true:false});$banner.fadeOut()});let equalizer=new Foundation.Equalizer($banner.find("#consent-buttons"));Foundation.reInit("equalizer")}function pcc_consent_update(consent){const consentMode={pcc_required:consent.pcc_required?"granted":"denied",pcc_analytics:consent.pcc_analytics?"granted":"denied",pcc_marketing:consent.pcc_marketing?"granted":"denied",analytics_storage:consent.pcc_analytics?"granted":"denied",ad_storage:consent.pcc_marketing?"granted":"denied",ad_user_data:consent.pcc_marketing?"granted":"denied",ad_personalization:consent.pcc_marketing?"granted":"denied"};gtag("consent","update",consentMode);localStorage.setItem("consentMode",JSON.stringify(consentMode));if(consent.pcc_marketing&&!pcc_marketing_granted){dataLayer.push({event:"pcc_consent_marketing_granted"});pcc_marketing_granted=true}let choice_data=""+(consent.pcc_required+0)+(consent.pcc_analytics+0)+(consent.pcc_marketing+0);pcc_consent_event(choice_data)}function pcc_consent_event(id){$.ajax({url:"https://www.pcc.edu/feeds/data/xmny6tmh5d/"+id+"/"})}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.