PageSourceSearch

https://www.univ-angers.fr/skins/UnivAngers-v2/resources/js/custom.js

js univ-angers.fr collected 2026-09-24 08:51:43 UTC 2,168 bytes, 93 lines download raw bytes

1$j('.carousel').carousel({
2  interval: false
3});
4
5$j(document).on('ready', function () {
6  // initialization of go to
7  $j.HSCore.components.HSGoTo.init('.js-go-to');
8
9  // initialization of carousel
10  $j.HSCore.components.HSCarousel.init('.js-carousel');
11  // initialization of counters
12  $j.HSCore.components.HSCounter.init('[class*="js-counter"]');
13
14  // initialization of HSNavigation component
15  $j.HSCore.components.HSNavigation.init($j('.js-navigation'), {
16    breakpointsMap: {
17      'sm': 10000,
18      'md': 10000,
19      'lg': 10000,
20      'xl': 10000
21    }
22  });
23
24  // initialization of masonry
25  $j('.masonry-grid').imagesLoaded().then(function () {
26    $j('.masonry-grid').masonry({
27      columnWidth: '.masonry-grid-sizer',
28      itemSelector: '.masonry-grid-item',
29      percentPosition: true
30    });
31  });
32
33  // initialization of popups
34  $j.HSCore.components.HSPopup.init('.js-fancybox');
35
36});
37
38$j(window).on('load', function () {
39  // initialization of header
40  $j.HSCore.helpers.HSHamburgers.init('.hamburger');
41});
42
43
44$j(document).ready(function () {
45  setHeader();
46  setCarouselHeight();
47});
48
49$j(window).resize(function () {
50  setHeader();
51  setCarouselHeight();
52});
53
54function setHeader() {
55  $j('body').addClass("position-relative");
56  $j('header').addClass("position-absolute");
57  $j('header').addClass("fixed--lg");
58  $j('main').css('padding-top', $j("header").height());
59}
60
61function setCarouselHeight() {
62  var windowWidth = $j(window).width();
63
64  if (windowWidth >= 992) {
65    var windowHeight = $j(window).height();
66    var headerHeight = $j("header").height();
67    var menuHeight = $j("#content").height();
68
69    $j('#carouselIndicators').height(windowHeight - headerHeight - menuHeight);
70  }
71  else {
72    $j('#carouselIndicators').height('auto');
73  }
74}
75
76$j(function () {
77  $j(window).scroll(function () {
78      if ($j(this).scrollTop() > 300) {
79          $j('.u-fleche-scroll').fadeIn();
80      } else {
81          $j('.u-fleche-scroll').fadeOut();
82      }
83  });
84
85  // scroll body to 0px on click
86  $j('.u-fleche-scroll').click(function () {
87      $j('body,html').animate({
88          scrollTop: 0
89      }, 1600);
90      return false;
91  });
92});
93

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.