1 2$(window).on('load', function () { 3 AOS.refresh(); 4}); 5$(document).ready(function () { 6 AOS.init(); 7}); 8 9$(document).on('click','.scrolltop', function() { 10 console.log(111); 11 $("html, body").animate({scrollTop: 0}, 0); 12}); 13$(window).scroll(function() { 14 if ($(this).scrollTop() > 800) { 15 $('.scrolltop').addClass('show'); 16 17 } else { 18 $('.scrolltop').removeClass('show'); 19 20 } 21 if ($(this).scrollTop() > 100) { 22 $('.header_main').addClass('not_fixed'); 23 24 } else { 25 $('.header_main').removeClass('not_fixed'); 26 27 } 28}); 29$(document).ready(function() { 30 if ($(window).width() < 768) { 31 var $buttons = $('.div_fpt_button .fpt_button a'); 32 33 function updateActiveButton() { 34 var scrollLeft = $('.div_fpt_button .fpt_button').scrollLeft(); 35 var containerWidth = $('.div_fpt_button .fpt_button').width(); 36 37 $buttons.each(function() { 38 var $this = $(this); 39 var buttonOffset = $this.position().left; 40 41 if (buttonOffset >= 0 && buttonOffset < containerWidth) { 42 $buttons.removeClass('active'); 43 $this.addClass('active'); 44 return false; // Break the loop 45 } 46 }); 47 } 48 49 $('.div_fpt_button .fpt_button').on('scroll', updateActiveButton); 50 51 // Initial check 52 updateActiveButton(); 53 54 $('.philosophie .point:not(:first-of-type) .content ').ellipsis({ 55 type: 'chars', 56 count: 122 57 }); 58 $('.philosophie .point:not(:first-of-type) .content').each(function() { 59 var $this = $(this); 60 var originalText = $this.text(); 61 var btn = $(this).parent().find('.fpt_button').html(); 62 // console.log(btn,'btn'); 63 // Limit the text again to ensure we have the truncated version 64 var truncatedText = originalText.substring(0, 122) + '...'; 65 66 // Replace the text with truncated text and append the button 67 $this.html(truncatedText + btn); 68 }); 69 } 70 // cookies 71 let acceptCookie = localStorage.getItem("timeCookie"); 72 // console.log(acceptCookie,'acceptCookie'); 73 var day = $('#timeCookie').val(); 74 var dateTime = day*24*60*60*1000; 75 76 var newDate = new Date().getTime(); 77 78 var timeCookie = parseInt(dateTime) + parseInt(acceptCookie); 79 80 // console.log(newDate,'newDate'); 81 82 // console.log(timeCookie,'timeCookie'); 83 84 // var date = new Date(newDate); 85 86 var dateC = new Date(timeCookie); 87 88 // console.log(date,'date'); 89 // console.log(dateC,'dateC'); 90 91 if (acceptCookie == undefined || (timeCookie < newDate) || acceptCookie == null) { 92 $(".cookie-overlay").removeClass("d-none").addClass("d-block"); 93 } 94 95 $(".accept-cookies").on("click", function () { 96 localStorage.setItem("timeCookie", new Date().getTime()); 97 document.cookie = "accepted_cookies=yes;"; 98 $(".cookie-overlay").removeClass("d-block").addClass("d-none"); 99 }); 100 101 // expand depending on your needs 102 $(".close-cookies").on("click", function () { 103 $(".cookie-overlay").removeClass("d-block").addClass("d-none"); 104 }); 105 106 document.addEventListener('DOMContentLoaded', (event) => { 107 const video = document.querySelector('.video_section video'); 108 video.play(); 109 110 111 if (video.requestFullscreen) { 112 video.requestFullscreen(); 113 } else if (video.mozRequestFullScreen) { /* Firefox */ 114 video.mozRequestFullScreen(); 115 } else if (video.webkitRequestFullscreen) { /* Chrome, Safari and Opera */ 116 video.webkitRequestFullscreen(); 117 } else if (video.msRequestFullscreen) { /* IE/Edge */ 118 video.msRequestFullscreen(); 119 } 120 }); 121 122 123 124}); 125$(document).ready(function() { 126 if ($(window).width() > 769) { 127 let currentIndex = 0; 128 const boxes = $('.ups_list_row .item_div'); 129 const totalBoxes = boxes.length; 130 let intervalId; 131 132 function activateNextBox() { 133 boxes.removeClass('active'); 134 boxes.eq(currentIndex).addClass('active'); 135 currentIndex = (currentIndex + 1) % totalBoxes; 136 } 137 138 // Function to start the interval 139 function startInterval() { 140 intervalId = setInterval(activateNextBox, 1500); 141 } 142 143 // Function to stop the interval 144 function stopInterval() { 145 clearInterval(intervalId); 146 } 147 148 // Start the interval initially 149 startInterval(); 150 151 // When hovering on a box, stop the interval and activate that box only 152 boxes.on('mouseenter', function() { 153 stopInterval(); 154 boxes.removeClass('active'); 155 $(this).addClass('active'); 156 }); 157 158 // When mouse leaves the box, resume the effect from the next box 159 boxes.on('mouseleave', function() { 160 currentIndex = (boxes.index(this) + 1) % totalBoxes; // Move to the next box after hover 161 startInterval(); 162 }); 163 } 164 165 166 167 $('.related_career_fpt').slick({ 168 slidesToShow: 3, 169 dots: false, 170 swipe: true, 171 infinite: false, 172 speed: 300, 173 adaptiveHeight: true, 174 autoplay: false, 175 autoplaySpeed: 3000, 176 prevArrow: $('.prev_blog'), 177 nextArrow: $('.next_blog'), 178 responsive: [ 179 { 180 breakpoint: 1024, 181 settings: { 182 slidesToShow: 2, 183 slidesToScroll: 1 184 } 185 }, 186 { 187 breakpoint: 768, 188 settings: { 189 slidesToShow: 1.5, 190 slidesToScroll: 1 191 } 192 }, 193 { 194 breakpoint: 480, 195 settings: { 196 slidesToShow: 1, 197 slidesToScroll: 1 198 } 199 } 200 ] 201 }); 202 203 204 205 $('.life_slider').slick({ 206 centerMode: true, 207 centerPadding: '19%', 208 slidesToShow: 1, 209 dots: true, 210 prevArrow: $('.prev_arrow'), 211 nextArrow: $('.next_arrow'), 212 infinite: false, 213 responsive: [ 214 { 215 breakpoint: 769, 216 settings: { 217 slidesToShow: 1, 218 slidesToScroll: 1, 219 centerMode: false 220 } 221 } 222 223 ] 224 });
225 226 $('.related_careers_sliders').slick({ 227 slidesToShow: 3, 228 dots: false, 229 swipe: true, 230 infinite: false, 231 speed: 300, 232 adaptiveHeight: true, 233 autoplay: false, 234 autoplaySpeed: 3000, 235 prevArrow: $('.prev_career'), 236 nextArrow: $('.next_career'), 237 responsive: [ 238 { 239 breakpoint: 1024, 240 settings: { 241 slidesToShow: 2, 242 slidesToScroll: 1 243 } 244 }, 245 { 246 breakpoint: 768, 247 settings: { 248 slidesToShow: 2, 249 slidesToScroll: 1, 250 arrows: false 251 } 252 } 253 ] 254 }); 255 256 if ($(window).width() < 769) { 257 $('.custom-search-careers-list .search_list').attr('placeholder','Search...'); 258 } 259 260 $(document).on('click','.about_slider .learn_more .fpt_btn', function(e){ 261 console.log(1111); 262 e.preventDefault(); 263 $(this).parents('.leader_data').find('.popup_leader').show(); 264 $('body').addClass('hidden-open'); 265 $('html').addClass('hidden-open'); 266 var ids = $(this).parents('.slider-arrow-about').data('id'); 267 console.log($('.popup_leader #row_'+ ids),'ids'); 268 $('.popup_leader .row').removeClass('active'); 269 $('.popup_leader #'+ ids).addClass('active'); 270 }); 271 272 // Close form when clicking outside 273 $(document).on('click', function(e) { 274 if (!$(e.target).closest('.about_slider .learn_more .fpt_btn').length && !$(e.target).closest('.popup_leader .row').length) { 275 $('.popup_leader').hide(); 276 $('body').removeClass('hidden-open'); 277 $('html').removeClass('hidden-open'); 278 } 279 }); 280 281 // Close form when clicking the close button 282 $(document).on('click', '.popup_leader .close', function() { 283 $('.popup_leader').hide(); 284 $('body').removeClass('hidden-open'); 285 $('html').removeClass('hidden-open'); 286 }); 287 288 $(document).on('click', '.mega-toggle-block', function(e) { 289 e.preventDefault(); 290 if($('.mega-menu-toggle').hasClass('mega-menu-open')){ 291 $('html').addClass('hidden--open'); 292 }else{ 293 $('html').removeClass('hidden--open'); 294 } 295 }); 296 297}); 298 299// download pdf 300const downloadButton = document.getElementById('downloadPDF'); 301 302if (downloadButton) { 303 downloadButton.addEventListener('click', function(event) { 304 event.preventDefault(); 305 const fileUrl = this.getAttribute('href'); 306 const fileName = fileUrl.split('/').pop(); 307 const link = document.createElement('a'); 308 link.href = fileUrl; 309 link.download = fileName; 310 document.body.appendChild(link); 311 link.click(); 312 document.body.removeChild(link); 313 }); 314} 315
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.