PageSourceSearch

https://oyaschool.com/wp-content/themes/oyaschool/js/action.js?ver=6.3.10

js oyaschool.com collected 2026-09-25 09:11:41 UTC 24,761 bytes, 901 lines download raw bytes

1$ = jQuery;
2//------------COLLEGE CONTENT NAVIGATION MENU POSITION------
3nav_bar = $(".details-navigation");
4if (nav_bar.length) {
5  nav_offset = nav_bar.offset().top;
6  nav_height = nav_bar.height();
7  nav_width = nav_bar.width() / 4;
8  action_spot = nav_offset + nav_height / 2;
9  content_width = $(".college-content").outerWidth();
10  content_offset = $(".college-content").offset().left;
11  nav_bottom_offset = nav_height + nav_offset;
12  scrolled = false;
13
14  var nav_position = function() {
15    scroll_position = $(document).scrollTop();
16
17    if ($(document).width() >= 992) {
18      nav_bar.removeClass("sticky-mobile-nav");
19      if (scroll_position >= action_spot) {
20        nav_bar.removeClass("col-12").addClass("col-3");
21        nav_bar.parent().css("padding-top", nav_height);
22        nav_bar.find(".row").addClass("flex-column");
23        nav_bar.find(".nav-tab").each(function() {
24          $(this).removeClass("col");
25        });
26        nav_bar
27          .find(".row")
28          .width("")
29          .offset({ left: 0 });
30
31        nav_bar
32          .find(".container")
33          .addClass("sticky-navbar")
34          .outerWidth(nav_width + 5);
35      } else {
36        nav_bar.addClass("col-12").removeClass("col-3");
37        nav_bar.parent().css("padding-top", 0);
38        nav_bar.find(".row").removeClass("flex-column");
39        nav_bar
40          .find(".container")
41          .removeClass("sticky-navbar")
42          .outerWidth("");
43        nav_bar.find(".nav-tab").each(function() {
44          $(this).addClass("col");
45        });
46        nav_bar
47          .find(".row")
48          .width(content_width)
49          .offset({ left: content_offset });
50      }
51    } else {
52      nav_bar.addClass("col-12").removeClass("col-3");
53      nav_bar.find(".row").removeClass("flex-column");
54      nav_bar
55        .find(".container")
56        .removeClass("sticky-navbar")
57        .outerWidth("");
58      nav_bar.find(".nav-tab").each(function() {
59        $(this).addClass("col");
60      });
61
62      if (scroll_position >= action_spot) {
63        nav_bar.addClass("sticky-mobile-nav");
64      } else {
65        nav_bar.parent().css("padding-top", 0);
66        nav_bar.removeClass("sticky-mobile-nav");
67        nav_bar
68          .find(".row")
69          .width(content_width)
70          .offset({ left: content_offset });
71      }
72    }
73  };
74
75  $(window).scroll(function() {
76    nav_position();
77  });
78  $(document).ready(function() {
79    nav_position();
80  });
81  $(window).resize(function() {
82    nav_offset = nav_bar.offset().top;
83    nav_width = $("#body-content").width() / 4;
84    action_spot = nav_offset + nav_height / 2;
85    content_width = $(".college-content").outerWidth();
86    content_offset = $(".college-content").offset().left;
87    nav_position();
88  });
89
90  //---------MOBILE CONTENT NAVIGATION MENU WORKING------
91  win_height = $(window).height();
92  //defining the offsets
93  overview = $("#college-overview").offset().top;
94  overview_bottom = overview + $("#college-overview").height() - win_height / 4;
95
96  learning = $("#college-learning").offset().top;
97  learning_bottom = learning + $("#college-learning").height() - win_height / 4;
98
99  if ($("#college-paying").length) {
100    paying = $("#college-paying").offset().top;
101    paying_bottom = paying + $("#college-paying").height() - win_height / 4;
102  }
103
104  applying = $("#college-applying").offset().top;
105  applying_bottom = applying + $("#college-applying").height() - win_height / 4;
106
107  scholarship = $("#college-scholarship").offset().top;
108  scholarship_bottom =
109    scholarship + $("#college-scholarship").height() - win_height / 4;
110
111  if ($("#college-students").length) {
112    students = $("#college-students").offset().top;
113    students_bottom =
114      students + $("#college-students").height() - win_height / 4;
115  }
116
117  //---ACTIVE MENU CHANGE
118  nav_on_scroll = function() {
119    scroll_top = $(document).scrollTop();
120
121    if (scroll_top < overview_bottom) {
122      $('.nav-tab[data-target="college-overview"]').addClass("active-tab");
123    } else {
124      $('.nav-tab[data-target="college-overview"]').removeClass("active-tab");
125    }
126
127    if (
128      scroll_top > learning - win_height / 2 &&
129      scroll_top < learning_bottom
130    ) {
131      $('.nav-tab[data-target="college-learning"]').addClass("active-tab");
132    } else {
133      $('.nav-tab[data-target="college-learning"]').removeClass("active-tab");
134    }
135
136    if ($("#college-paying").length) {
137      if (scroll_top > paying - win_height / 2 && scroll_top < paying_bottom) {
138        $('.nav-tab[data-target="college-paying"]').addClass("active-tab");
139      } else {
140        $('.nav-tab[data-target="college-paying"]').removeClass("active-tab");
141      }
142    }
143
144    if (
145      scroll_top > applying - win_height / 2 &&
146      scroll_top < applying_bottom
147    ) {
148      $('.nav-tab[data-target="college-applying"]').addClass("active-tab");
149    } else {
150      $('.nav-tab[data-target="college-applying"]').removeClass("active-tab");
151    }
152
153    if (
154      scroll_top > scholarship - win_height / 2 &&
155      scroll_top < scholarship_bottom
156    ) {
157      $('.nav-tab[data-target="college-scholarship"]').addClass("active-tab");
158    } else {
159      $('.nav-tab[data-target="college-scholarship"]').removeClass(
160        "active-tab"
161      );
162    }
163
164    if ($("#college-students").length) {
165      if (
166        scroll_top > students - win_height / 2 &&
167        scroll_top < students_bottom
168      ) {
169        $('.nav-tab[data-target="college-students"]').addClass("active-tab");
170      } else {
171        $('.nav-tab[data-target="college-students"]').removeClass("active-tab");
172      }
173    }
174  };
175
176  $(document).ready(function() {
177    nav_on_scroll();
178  });
179  $(document).scroll(function() {
180    nav_on_scroll();
181  });
182
183  //-----MENU CLICK TARGETING
184  $(".nav-tab").click(function() {
185    target_topic = $(this).attr("data-target");
186    target_position = $("#" + target_topic).offset().top - 60;
187    $("html, body").animate(
188      {
189        scrollTop: target_position
190      },
191      500
192    );
193  });
194}
195var i = 0;
196var n = 0;
197$(document).ready(function() {
198  typewriter();
199});
200
201typewriter = function() {
202  timer = setTimeout(function() {
203    content = $(".hero-text-1");
204    total = content.length;
205    hero_text = $(content[0]).text();
206    length = hero_text.length;
207    i++;
208    $display_string = hero_text.substring(0, i);
209    $(".hero-text > h2").text($display_string);
210    if (i == length) {
211      n++;
212      n = n < total ? n : 0;
213      i = 0;
214    }
215    typewriter();
216  }, 200);
217};
218
219if ($(".frame-for-carousel").length && typeof carousel_clg != "undefined") {
220  var pics = [];
221  var names = [];
222  var links = [];
223
224  $.each(carousel_clg, function(key, value) {
225    names.push(value[0]);
226    pics.push(value[1]);
227    links.push(value[2]);
228  });
229
230  $(".frame-for-carousel").frameCarousel({
231    images: pics,
232    name: names,
233    link: links,
234    frameSize: [
235      { width: 400, minScreenWidth: 992 },
236      { width: 320, maxScreenWidth: 991, minScreenWidth: 768 },
237      { width: 400, maxScreenWidth: 767, minScreenWidth: 576 },
238      { width: 300, maxScreenWidth: 767 }
239    ],
240    autoplay: true,
241    autoplayInterval: 4000
242  });
243}
244
245//IMAGE RESIZING WITH SAME ASPECT RATIO
246resize_image = function() {
247  blog_container = $(".front-blog-listing");
248  featured_image = $(blog_container).find("img");
249  $(featured_image).each(function() {
250    $(this).height(($(this).width() * 9) / 16);
251  });
252};
253
254$(document).ready(resize_image);
255$(window).resize(resize_image);
256
257// NAVIGATION MENU CONTROLLER
258$(".mobile-nav-btn").click(function() {
259  $(".navbar:not('.navbar-secondary')").toggle(200);
260});
261$(document).click(function(e) {
262  if ($(document).width() < 768) {
263    if (!$(e.target).closest(".navigation-menu").length) {
264      $(".navbar:not('.navbar-secondary')").hide(200);
265    }
266  }
267});
268
269$(".has-sub, .has-sub *").click(function(e) {
270  e.stopImmediatePropagation();
271  sub_menu = $(this).find(".sub-menu").length
272    ? $(this).find(".sub-menu")
273    : $(this).next(".sub-menu");
274  hidden = sub_menu.css("display");
275  if (hidden == "none") {
276    e.preventDefault();
277    sub_menu.show();
278  } else if (hidden == "block") {
279    sub_menu.hide();
280  }
281});
282
283mobile_menu = function() {
284  if ($(window).width() < 768) {
285    if (!$(".navbar .sec-menu-item").length) {
286      $(".sec-menu-item").each(function() {
287        $(this)
288          .clone()
289          .appendTo("ul.navbar");
290      });
291    }
292
293    if (!$(".btn-close").length) {
294      $("<i/>")
295        .addClass("fa fa-times btn-close")
296        .appendTo("ul.navbar");
297    }
298  }
299};
300$(document).ready(mobile_menu);
301$(window).resize(mobile_menu);
302
303$("body").on("click", ".btn-close", function() {
304  $(this)
305    .closest("ul.navbar")
306    .hide(200);
307});
308
309// ---- STYLING THE ADVANCED SEARCH ----
310$(".accordion-group > header").click(function() {
311  $(this)
312    .closest(".accordion-group")
313    .toggleClass("active");
314});
315
316height_options = function() {
317  window_height = $(window).height();
318  opt_height = $(window).width() >= 768 ? window_height - 50 : 270;
319  opt = $(".advanced-search-options footer.toggle-options");
320  $(".advanced-search-options").css("max-height", opt_height);
321  opt.addClass("options-hidden");
322  opt.removeClass("options-shown");
323  opt.attr("data-toggle-state", "hidden");
324  opt.text("Show all options");
325  // ----- SEARCH RESULTS MARGIN -----
326  w_margin = $(".search-results").width();
327  wo_margin = $(".search-results .search-filter-results").width();
328  $(".search-results .search-filter-results").css(
329    "marginLeft",
330    (w_margin - wo_margin) / 3
331  );
332};
333
334$(document).ready(height_options);
335var width = $(window).width();
336$(window).on("resize", function() {
337  if ($(this).width() != width) {
338    width = $(this).width();
339    height_options;
340  }
341});
342
343$(".advanced-search-options footer.toggle-options").click(function() {
344  state = $(this).attr("data-toggle-state");
345  options_bar = $(this).parent(".advanced-search-options");
346  opt_height = $(window).width() >= 768 ? window_height - 50 : 270;
347  if (state == "hidden") {
348    options_bar.css("max-height", "unset");
349    $(this).removeClass("options-hidden");
350    $(this).addClass("options-shown");
351    $(this).attr("data-toggle-state", "shown");
352    $(this).text("Hide Options");
353  } else if (state == "shown") {
354    options_bar.css("max-height", opt_height);
355    $(this).addClass("options-hidden");
356    $(this).removeClass("options-shown");
357    $(this).attr("data-toggle-state", "hidden");
358    $(this).text("Show all options");
359  }
360});
361
362// ----- ADVANCED SEARCH RANGE VALUE -----
363$(".custom-range").change(function() {
364  score = $(this).val();
365  range_box = $(this).next(".range-value").length
366    ? $(this).next(".range-value")
367    : $(this)
368        .next()
369        .find(".range-value");
370  range_box.val(score);
371});
372
373$(".range-value").change(function() {
374  score = $(this).val();
375  range = $(this).prev(".custom-range").length
376    ? $(this).prev(".custom-range")
377    : $(this)
378        .parent()
379        .prev(".custom-range");
380  max = range.attr("max");
381  min = range.attr("min");
382
383  if (score > max) {
384    score = max;
385  } else if (score < min) {
386    score = min;
387  }
388  $(this).val(score);
389  range.val(score);
390});
391
392// ----- SECONDARY MENU -----
393show_nav = function() {
394  container = $(".sec-menu ul");
395  last_child = container.find("li:last");
396  container
397    .removeClass("justify-content-end")
398    .addClass("justify-content-start");
399  container.css({
400    transform: "translateX(0)"
401  });
402  $(".menu-nav-left").addClass("hide-nav");
403  $(".menu-nav-right").removeClass("hide-nav");
404  $(this)
405    .prev()
406    .removeClass("hide-nav");
407  cont_offset = Math.floor(container.outerWidth() + container.offset().left);
408  last_offset = Math.floor(last_child.offset().left + last_child.outerWidth());
409  if (cont_offset >= last_offset) {
410    container
411      .addClass("justify-content-end")
412      .removeClass("justify-content-start");
413    $(".sec-menu").removeClass("scrollable");
414  } else {
415    container.removeClass("justify-content-end");
416    $(".sec-menu").addClass("scrollable");
417  }
418};
419
420$(document).ready(show_nav);
421$(window).resize(show_nav);
422
423// ----- WORKING OF THE MENU NAVIGATIONS -----
424$(".menu-nav-right").click(function() {
425  container = $(".sec-menu ul");
426  cont_offset = Math.floor(container.outerWidth() + container.offset().left);
427  last_child = container.find("li:last");
428  last_offset = Math.floor(last_child.offset().left + last_child.outerWidth());
429  dist = -(last_offset - cont_offset);
430  container.css({
431    transform: "translateX(" + dist + "px)",
432    transition: "transform 200ms ease 0s"
433  });
434  $(this).addClass("hide-nav");
435  $(this)
436    .prev()
437    .removeClass("hide-nav");
438});
439$(".menu-nav-left").click(function() {
440  container.css({
441    transform: "translateX(0)",
442    transition: "transform 200ms ease 0s"
443  });
444  $(this).addClass("hide-nav");
445  $(this)
446    .next()
447    .removeClass("hide-nav");
448});
449
450// ----- THE PIE CHART -----
451
452$(".pie-chart").each(function() {
453  pie = $(this)[0];
454  type = pie.getAttribute("data-type");
455  other_type = pie.getAttribute("data-other-type");
456  var p = parseFloat(pie.getAttribute("data-percent"));
457  var NS = "http://www.w3.org/2000/svg";
458  var svg = document.createElementNS(NS, "svg");
459  var text_svg = document.createElementNS(NS, "svg");
460  var circle = document.createElementNS(NS, "circle");
461  var legend = document.createElementNS(NS, "text");
462  var other = document.createElementNS(NS, "text");
463  var container = document.createElement("div");
464
465  container.setAttribute("class", "chart");
466  circle.setAttribute("r", 16);
467  circle.setAttribute("cx", 25);
468  circle.setAttribute("cy", 25);
469  circumference = 2 * Math.PI * 16;
470  covered = (circumference * p) / 100;
471  circle.setAttribute("stroke-dasharray", covered + " " + circumference);
472  svg.setAttribute("viewBox", "0 0 50 50");
473  text_svg.setAttribute("viewBox", "-10 -10 180 180");
474
475  angle = covered / 16;
476  var dx = 0;
477  var dy = 0;
478  if (p <= 25) {
479    dx = -10;
480    dy = 15;
481  } else if (p <= 75) {
482    dx = -10;
483    dy = 10;
484  }
485  x = 70 * (1 - Math.sin(Math.PI - angle / 2)) + 15;
486  y = 70 * (1 - Math.cos(Math.PI - angle / 2)) + 15;
487  other.textContent = 100 - p + "%";
488  other.setAttribute("x", x - 10);
489  other.setAttribute("y", y);
490  text_svg.appendChild(other);
491  angle = covered / 16;
492
493  x = Math.abs(160 - x);
494  y = Math.abs(160 - y);
495  legend.textContent = p + "%";
496  legend.setAttribute("x", x + dx);
497  legend.setAttribute("y", y + dy);
498  text_svg.appendChild(legend);
499
500  svg.appendChild(circle);
501  container.appendChild(svg);
502  container.appendChild(text_svg);
503  pie.appendChild(container);
504  fill = $(this)
505    .find("svg circle")
506    .css("fill");
507  stroke = $(this)
508    .find("svg circle")
509    .css("stroke");
510
511  index = $("<div/>").addClass("legend");
512  legend_point = $("<div/>")
513    .addClass("legend-point d-flex")
514    .append("<div class='legend-color'></div><div class='legend-title'></div>");
515  main = legend_point
516    .clone()
517    .appendTo(index)
518    .addClass(type);
519  main.find(".legend-title").text(type + " (" + p + "%)");
520  main.find(".legend-color").css("background", stroke);
521
522  other = legend_point
523    .clone()
524    .appendTo(index)
525    .addClass(other_type);
526  other.find(".legend-title").text(other_type + " (" + (100 - p) + "%)");
527  other.find(".legend-color").css("background", fill);
528
529  index.appendTo($(this));
530});
531
532$(".range-bar").each(function() {
533  low = $(this).attr("data-low");
534  high = $(this).attr("data-high");
535  max = $(this).attr("data-max");
536  min = $(this).attr("data-min");
537
538  left = ((low - min) / (max - min)) * 100;
539  width = ((high - low) / (max - min)) * 100;
540
541  bar_value = $("<div/>").addClass("bar-value");
542  $("<div/>")
543    .addClass("lower-value bar-point")
544    .appendTo(bar_value);
545  $("<div/>")
546    .addClass("higher-value bar-point")
547    .appendTo(bar_value);
548  bar_value.appendTo($(this));
549  bar_value.css({
550    left: left + "%",
551    width: width + "%"
552  });
553  $(this)
554    .find(".lower-value")
555    .text(low);
556  $(this)
557    .find(".higher-value")
558    .text(high);
559});
560
561// ----- MODAL BOX FOR SIGNIN -----
562$(document).click(function(e) {
563  e.stopPropagation;
564  if ($(e.target).attr("role") == "dialog") {
565    $(e.target)
566      .find(".close")
567      .delay(200)
568      .click();
569  }
570});
571
572// ----- PAGE HEADING BAR SEARCH -----
573$(".blog-search-form").submit(function(e) {
574  holder = $(this).find("#blog-search");
575
576  if ($(document).width() <= 768 && holder.css("display") == "none") {
577    holder.animate(
578      {
579        width: "toggle"
580      },
581      200
582    );
583    $(this)
584      .find(".btn span")
585      .hide();
586    $(this)
587      .closest(".page-header")
588      .find(".page-title")
589      .hide();
590    $(this)
591      .closest(".page-header")
592      .find(".country-category-menu")
593      .hide();
594    return false;
595  }
596});
597$("#blog-search").focus(function() {
598  $(window).off("resize");
599});
600$(document).click(function(e) {
601  e.stopImmediatePropagation;
602  holder = $(".blog-search-form").find("#blog-search");
603  if ($(e.target).closest(".blog-search-form").length) return;
604  if (
605    !$(e.target).closest(".blog-search-form").length &&
606    $(document).width() <= 768 &&
607    holder.css("display") != "none"
608  ) {
609    holder.animate(
610      {
611        width: "toggle"
612      },
613      200,
614      function() {
615        $(".blog-search-form")
616          .find(".btn span")
617          .show();
618        $(".page-header")
619          .find(".page-title")
620          .show();
621        $(".page-header")
622          .find(".country-category-menu")
623          .show();
624      }
625    );
626  }
627});
628
629$(window).resize(function() {
630  if ($(document).width() > 768) {
631    $(".blog-search-form")
632      .find("#blog-search")
633      .show()
634      .css("width", "unset");
635  } else {
636    $(".blog-search-form")
637      .find("#blog-search")
638      .hide();
639    $(".blog-search-form")
640      .find(".btn span")
641      .show();
642    $(".page-header")
643      .find(".page-title")
644      .show();
645    $(".page-header")
646      .find(".country-category-menu")
647      .show();
648  }
649});
650// ----- MEDIA UPLOADER FOR SUBMITTING ARTICLE -----
651function previewimg() {
652  var preview = $("#article_featured_img");
653  var file = preview.parent().find("input[type=file]")[0].files[0]; //document.querySelector('input[type=file]').files[0];
654  var reader = new FileReader();
655
656  reader.addEventListener(
657    "load",
658    function() {
659      preview.src = reader.result;
660      preview.attr("src", reader.result);
661      preview
662        .parent()
663        .find("label")
664        .text("Change File");
665    },
666    false
667  );
668
669  if (file) {
670    reader.readAsDataURL(file);
671    preview.show();
672  }
673}
674function previewauthor() {
675  var preview = $("#article_author_img");
676  var file = preview.parent().find("input[type=file]")[0].files[0]; //document.querySelector('input[type=file]').files[0];
677  var reader = new FileReader();
678
679  reader.addEventListener(
680    "load",
681    function() {
682      preview.src = reader.result;
683      preview.attr("src", reader.result);
684      preview
685        .parent()
686        .find("label")
687        .text("Change File");
688    },
689    false
690  );
691
692  if (file) {
693    reader.readAsDataURL(file);
694    preview.show();
695  }
696}
697
698$(document).ready(function() {
699  if ($(".data-tables").length) {
700    $(".data-tables").DataTable();
701  }
702});
703
704// ----- SEARCH AUTOCOMPLETE -----
705$(document).ready(function() {
706  if ($("#searchState").length) {
707    $("#searchState").autocomplete({
708      source: country.availableStates_US,
709      autoFocus: true
710    });
711  }
712});
713
714//featured filter
715$("#select-country-filter").change(function() {
716  country = $(this).val();
717  $(".single-archive-university").each(function() {
718    $(this).show();
719    if ($(this).attr("data-country") != country && country != "all") {
720      $(this).hide();
721    }
722  });
723});
724
725$('#area-selection input[type="radio"]').on("change", function() {
726  url_US = $(".form-college-name-search").attr("data-US");
727  url_AUS = $(".form-college-name-search").attr("data-AUS");
728  url_UK = $(".form-college-name-search").attr("data-UK");
729  if ($(this).val() == "usa") {
730    $("#StateCountry")
731      .find("label")
732      .text("State");
733    $("#searchState").attr("placeholder", "New York");
734    $(".form-college-name-search").attr("action", url_US);
735    $("#advance-search-link").attr("href", url_US);
736    $("#searchState").autocomplete({
737      source: country.availableStates_US
738    });
739  } else if ($(this).val() == "australia") {
740    $("#StateCountry")
741      .find("label")
742      .text("State");
743    $("#searchState").attr("placeholder", "New South Wales");
744    $(".form-college-name-search").attr("action", url_AUS);
745    $("#advance-search-link").attr("href", url_AUS);
746    $("#searchState").autocomplete({
747      source: country.availableStates_AUS
748    });
749  } else if ($(this).val() == "uk") {
750    var availableStates_UK = [
751      "England",
752      "Northern Ireland",
753      "Scotland",
754      "Wales"
755    ];
756    $("#StateCountry")
757      .find("label")
758      .text("Country");
759    $("#searchState").attr("placeholder", "England");
760    $(".form-college-name-search").attr("action", url_UK);
761    $("#advance-search-link").attr("href", url_UK);
762    $("#searchState").autocomplete({
763      source: availableStates_UK
764    });
765  }
766});
767
768jQuery(function($) {
769  if ($("#infinite-scroll-jetpack").length) {
770    $("#infinite-scroll-jetpack").append('<span class="load-more"></span>');
771    var button = $("#infinite-scroll-jetpack .load-more");
772    var page = 2;
773    var loading = false;
774    var scrollHandling = {
775      allow: true,
776      reallow: function() {
777        scrollHandling.allow = true;
778      },
779      delay: 400 //(milliseconds) adjust to the highest acceptable value
780    };
781
782    $(window).scroll(function() {
783      if (!loading && scrollHandling.allow) {
784        scrollHandling.allow = false;
785        setTimeout(scrollHandling.reallow, scrollHandling.delay);
786        var offset = $(button).offset().top - $(window).scrollTop();
787        if (offset < 2000) {
788          loading = true;
789          var data = {
790            action: "be_ajax_load_more",
791            page: page,
792            query: loadmore.query
793          };
794          //if (typeof loadmore.query.s !== "undefined") {
795          //data[s] = loadmore.query.s;
796          //}
797          console.log(loadmore.query);
798          $.post(loadmore.url, data, function(res) {
799            if (res.success) {
800              $("#infinite-scroll-jetpack").append(res.data);
801              button.appendTo($("#infinite-scroll-jetpack"));
802              if (!$(res.data).length) {
803                button.hide();
804              }
805              page = page + 1;
806              loading = false;
807            } else {
808            }
809          }).fail(function(xhr, textStatus, e) {
810            // console.log(xhr.responseText);
811          });
812        }
813      }
814    });
815  }
816});
817
818$(document).ready(function() {
819  if ($(".stagnant-bottom-list").length) {
820    $(".stagnant-bottom-list").stickySidebar({
821      topSpacing: 60,
822      bottomSpacing: 60
823    });
824  }
825});
826
827$("#myTab a").on("click", function(e) {
828  //e.preventDefault();
829  $(".tab-pane.active").removeClass("active show");
830  $($(this).attr("href")).addClass("active show");
831  $(".nav-link.active")
832    .attr("aria-selected", "false")
833    .removeClass("active");
834  $(this)
835    .attr("aria-selected", true)
836    .addClass("active");
837});
838
839$("#category-dropdown").click(function() {
840  $(".country-category-menu .navbar-collapse").toggleClass("show");
841});
842
843// ----- COMPARISION TABLE HIDE -----
844$(document).ready(function() {
845  if ($(".college-comparision-table").length) {
846    enclose = $("#data-fields");
847    var count = [];
848    count["usa"] = enclose.attr("data-US");
849    count["uk"] = enclose.attr("data-UK");
850    count["australia"] = enclose.attr("data-Australia");
851    $("[data-show]").each(function() {
852      countries = $(this).attr("data-show");
853      countries = countries.split(", ");
854      hidden = 0;
855      $.each(countries, function(index, country) {
856        if (count[country] != 1) {
857          hidden = 1;
858        }
859      });
860      if (hidden == 1) {
861        parent_table = $(this).parents(".table");
862        position = parent_table.find("th").index(this) + 1;
863        $(this).hide();
864        parent_table.find("tbody tr").each(function() {
865          $(this)
866            .find("td:nth-child(" + position + ")")
867            .hide();
868        });
869      }
870    });
871  }
872});
873
874$(document).ready(function() {
875  $(".multiple-college-name").fastselect();
876});
877
878//team page
879$(".single_member")
880  .mouseenter(function() {
881    $(this).addClass("single_member_hover");
882    $(this)
883      .find(".border_bottom_animated")
884      .animate(
885        {
886          width: "100%"
887        },
888        500
889      );
890  })
891  .mouseleave(function() {
892    $(this).removeClass("single_member_hover");
893    $(this)
894      .find(".border_bottom_animated")
895      .animate(
896        {
897          width: "0"
898        },
899        500
900      );
901  });

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.