PageSourceSearch

https://philadelphiaacademy.org/shared/js/scripts.js

js philadelphiaacademy.org collected 2026-10-05 09:48:42 UTC 1,310 bytes, 61 lines download raw bytes

1$(function(){
2
3	$('b').replaceWith(function(){
4	   return $('<strong>').append($(this).html());
5   });
6
7   $('i').replaceWith(function(){
8	   return $('<em>').append($(this).html());
9   });
10
11});
12
13
14
15
16$(".en-news-slider-title").wrapInner("<span>");
17
18
19// Show the first and hide the rest
20$('div.cv-item:nth-child(1)').addClass('active');
21
22// Click function
23$('div.cv-item').mouseenter(function(){
24  $('div.cv-item').removeClass('active');
25 $(this).addClass('active');
26
27  var activeTab = $(this).find('a').attr('href');
28  $(activeTab).fadeIn();
29  return false;
30});
31
32
33
34
35
36
37// Card Slider
38let cardSliders = document.querySelectorAll(`.hp-card-slider`);
39cardSliders.forEach(cardSlider => {
40	new ENCardSlider({
41		container: cardSlider,
42		prevButton: cardSlider.getElementsByClassName("prev_arrow")[0],
43		nextButton: cardSlider.getElementsByClassName("next_arrow")[0],
44		slideSingleCard: true,
45		maxColumnGap: 0
46	});
47})
48
49
50function detectEmptyPageSideWrapper() {
51    try {
52      var pageAsideLeftWrapper = document.querySelector('.pageAsideLeftWrapper')
53      if (pageAsideLeftWrapper && pageAsideLeftWrapper.clientWidth === 0) {
54        pageAsideLeftWrapper.classList.add("empty-content")
55      }
56    } catch (e) {
57      // ignore
58    }
59  }
60  document.addEventListener("DOMContentLoaded", detectEmptyPageSideWrapper);
61  

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.