PageSourceSearch

https://www.fisglobal.com/-/media/25E7A15E1A884045B8B771641801367A.ashx?home-news-swiper_js

js fisglobal.com collected 2026-09-27 20:54:07 UTC 4,671 bytes, 188 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){
2    
3    
4    var isIE11 = !!navigator.userAgent.match(/Trident.*rv\:11\./);
5    var head = document.getElementsByTagName('head')[0];
6    var script = document.createElement('script');
7    
8    function isElementInViewport (el) {
9        var rect = el.getBoundingClientRect();
10        return (
11            rect.top >= 0 &&
12            rect.left >= 0 &&
13            rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&     
14            rect.right <= (window.innerWidth || document.documentElement.clientWidth)
15        );
16    }
17    
18    if (isIE11 === true){
19    
20        console.log("User is using IE 11");
21    
22        $.getScript("https://www.fisglobal.com/-/media/8716FEC5E3AC4DD981CF0366B776C5EC.ashx?swiperjs", function() {
23    
24            var swiper = new Swiper('.swiper-container', {
25                watchSlidesVisibility: true,
26                slidesPerView: 'auto',
27                spaceBetween: 12,
28                slidesPerGroup: 1,
29                pagination: {
30                    el: '.swiper-pagination',
31                    clickable: true,
32                },
33                navigation: {
34                    nextEl: '.swiper-button-next',
35                    prevEl: '.swiper-button-prev',
36                },
37    
38            });
39        });
40    
41    
42    
43    } else {
44        console.log('User not using IE11');
45    
46        $.getScript("https://www.fisglobal.com/-/media/8716FEC5E3AC4DD981CF0366B776C5EC.ashx?swiperjs", function() {
47    
48            var swiper = new Swiper('.swiper-container', {
49                watchSlidesVisibility: true,
50                slidesPerView: 'auto',
51                spaceBetween: 12,
52                slidesPerGroup: 1,
53                pagination: {
54                    el: '.swiper-pagination',
55                    clickable: true,
56                },
57                navigation: {
58                    nextEl: '.swiper-button-next',
59                    prevEl: '.swiper-button-prev',
60                },
61    
62            });
63        });
64    
65    
66    } 
67    
68    
69    /*END create horizontal swiper*/
70    
71        });
72    
73
74    
75    
76var slide;
77var slidePos;
78var windowXSize;
79/*BEGIN create horizontal swiper*/
80function getOffset(el) {
81    const rect = el.getBoundingClientRect();
82    return {
83      left: rect.left + window.scrollX,
84      top: rect.top + window.scrollY
85    };
86  }
87
88/*BEGIN swiper overlay*/  
89function dimEdges () {
90    $('.swiper-slide').each(function(){
91        slide = $(this);
92        slideWidth = slide.width();
93        
94        windowXSize = $(window).width();
95        slide.removeClass('out-of-view');
96    
97        slidePos = getOffset(slide[0]).left;
98
99        overallWidth = slidePos + slideWidth;
100
101        if (overallWidth > windowXSize) {
102            slide.addClass('out-of-view');
103        } 
104
105        if (slidePos < 0) {
106            slide.addClass('out-of-view');
107        } 
108        
109      });
110}  
111
112$.getScript("https://www.fisglobal.com/-/media/8716FEC5E3AC4DD981CF0366B776C5EC.ashx?swiperjs", function() {
113	
114	var swiper = new Swiper('.swiper-container', {
115	 watchSlidesVisibility: true,
116	 slidesPerView: 'auto',
117	 spaceBetween: 12,
118	 slidesPerGroup: 1,
119     
120	 navigation: {
121	   nextEl: '.swiper-button-next',
122	   prevEl: '.swiper-button-prev',
123	 },
124     on: {
125        init: function () {
126
127          if($(window).width() > 991){
128            dimEdges();
129          }  
130          
131        },
132      },
133	
134	});
135
136    swiper.on('slideChange', function () {
137        if($(window).width() > 991){
138        setTimeout(function(){
139
140            
141            dimEdges();
142          
143            
144        },500);
145        }
146        
147      });
148
149      
150
151      $(document).on('click', '.swiper-button-next', function(){
152
153        
154        if($(window).width() > 991){
155            setTimeout(function(){
156    
157                
158                dimEdges();
159              
160                
161            },500);
162            }
163
164      });
165
166      $(document).on('click','.swiper-button-prev', function(){
167        if($(window).width() > 991){
168            setTimeout(function(){
169    
170                
171                dimEdges();
172              
173                
174            },500);
175            }
176      });
177
178
179/*$('.primary-nav .menu-item > a, .secondary-nav .menu-item > a').on('click', function() {
180if ($(this).hasClass("active-navigation")) {
181console.log('toggle-working');
182$(this).removeClass("active-navigation");
183}
184});*/
185
186
187	});
188	/*END swiper overlay*/

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.