PageSourceSearch

https://www.sciences-reunion.net/wp-content/themes/hello-theme-child-master/charte/js/charte.js?ver=1791373374

js sciences-reunion.net collected 2026-10-07 12:25:56 UTC 2,521 bytes, 75 lines download raw bytes

1jQuery(function($) {
2     loadSvg($);
3     initHomepage($);
4
5});
6
7function initHomepage($){
8     if($('body.home').length > 0){
9          const animateSvgObserver = new IntersectionObserver(animateOnView);
10
11
12           animateSvgObserver.observe($('#svg_services').get(0));
13           animateSvgObserver.observe($('#fusee').get(0));
14          function animateOnView(entries, observer){
15               entries.forEach((entry) => {
16                    if(entry.isIntersecting){
17                         entry.target.classList.add('animated');
18                         animateSvgObserver.unobserve(entry.target);
19                    }
20               });
21          }
22
23          $(document).on('svg-before-fusee',function(e, svg){
24
25          });
26          
27     }
28}
29
30function loadSvg($){
31     const animateSvgObserver = new IntersectionObserver(animateOnView);
32     let loadSvgCount = 0;
33     let loadedSvgCount= 0;
34     var time = (new Date()).getTime();
35     $('.load-svg').each(function(){
36          const imgBlock = $(this);
37          if(imgBlock.find('img').length > 0){
38               let src = imgBlock.find('img').attr('src');
39               if(src.indexOf('?') > 0){
40                    src = src.split('?');
41                    src = src[0];
42               }
43               if(src.endsWith('.svg')){
44                    loadSvgCount++;
45                    $(this).load(src+'?time='+time, function(){
46                         console.log('load'+imgBlock.find('svg').attr('id'));
47                         $(document).trigger('svg-before-'+imgBlock.find('svg').attr('id'),  [imgBlock]);
48                         animateSvgObserver.observe($(this).find('svg').get(0));
49                         loadedSvgCount++;
50                         if(loadedSvgCount == loadSvgCount){
51                              console.log('loaded');
52                              animateHome($);
53                         }
54                         $(document).trigger('svg-loaded-'+imgBlock.find('svg').attr('id'),  [imgBlock]);
55                    });
56               }
57          }
58     });
59
60     function animateOnView(entries, observer){
61          entries.forEach((entry) => {
62               if(entry.isIntersecting){
63                    entry.target.classList.add('animated');
64                    animateSvgObserver.unobserve(entry.target);
65               }
66          });
67     }
68
69}
70
71function animateHome($){
72     if($('#sphere-multi').length > 0) {
73         
74     }
75}

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.