1$(document).ready(function () { 2 3 //disable auto complete on contact us page 4 if ($("#contact_form_page_section")) { 5 $('form').attr('autocomplete', 'off'); 6 $('input').attr('autocomplete', 'off'); 7 } 8 9 //Notification Icon start 10 var container = document.getElementById('eventsContainer'); 11 var holidays = document.getElementsByClassName('holidayCount'); 12 var topNews = document.getElementsByClassName('topNewsCount'); 13 14 if (topNews.length !== 0 || holidays.length !== 0) { 15 container.style.display = "block"; 16 } 17 18 $('#notif_dropdown') 19 .on('shown.bs.dropdown', function () { 20 $('#notif_icon').removeClass('fa-bell').addClass('fa-times'); 21 $("#notif_icon").attr("title", "Close") 22 }) 23 .on('hidden.bs.dropdown', function () { 24 $('#notif_icon').removeClass('fa-times').addClass('fa-bell'); 25 $("#notif_icon").attr("title", "Trending Events") 26 }) 27 //Notification Icon End 28 29 $(function () { 30 $('#navbarSupportedContent') 31 .on('shown.bs.collapse', function () { 32 $('#navbar-hamburger').addClass('hidden'); 33 $('#navbar-close').removeClass('hidden'); 34 }) 35 .on('hidden.bs.collapse', function () { 36 $('#navbar-hamburger').removeClass('hidden'); 37 $('#navbar-close').addClass('hidden'); 38 }); 39 40 }); 41 // Clients carousel (uses the Owl Carousel library) 42 $(".clients-carousel").owlCarousel({ 43 autoplay: true, 44 dots: true, 45 loop: true, 46 responsive: { 47 0: { 48 items: 2 49 }, 50 768: { 51 items: 4 52 }, 53 900: { 54 items: 6 55 } 56 } 57 }); 58 59 // Carousel on news 60 $('#carousel-news').owlCarousel({ 61 center: true, 62 loop: true, 63 margin: 0, 64 autoplay: true, 65 autoplayTimeout: 10000, 66 nav: true, 67 navContainer: ['.main-content .custom-nav'], 68 navText: [ 69 '<i class="fas fa-chevron-left txt_subtitle txt_black upd_ctrl prev"></i>', 70 '<i class="fas fa-chevron-right txt_subtitle txt_black upd_ctrl next"></i>', 71 ], 72 navClass: [ 73 'owl-prev', 74 'owl-next' 75 ], 76 dots: true, 77 responsive: { 78 0: { 79 items: 1 80 }, 81 600: { 82 items: 2 83 }, 84 1000: { 85 items: 3 86 } 87 } 88 }); 89 90 // Carousel on twitter 91 $('#carousel-twitter').owlCarousel({ 92 center: true, 93 loop: true, 94 margin: 0, 95 autoplay: true, 96 autoplayTimeout: 10000, 97 nav: true, 98 navContainer: ['.main-content-twitter .custom-nav-twitter'], 99 navText: [ 100 '<i class="fas fa-chevron-left txt_subtitle txt_black upd_ctrl prev"></i>', 101 '<i class="fas fa-chevron-right txt_subtitle txt_black upd_ctrl next"></i>', 102 ], 103 navClass: [ 104 'owl-prev', 105 'owl-next' 106 ], 107 dots: true, 108 responsive: { 109 0: { 110 items: 1 111 }, 112 600: { 113 items: 2 114 }, 115 1000: { 116 items: 3 117 } 118 } 119 }); 120}); 121 122$('.qa_annonce').vTicker({ 123 speed: 1E3, 124 pause: 4E3, 125 animation: "slide", 126 mousePause: true, 127 showItems: 2, 128 direction: 'up' 129 }); 130 131// When the user scrolls down 20px from the top of the document, show the button 132window.onscroll = function () { 133 scrollFunction() 134}; 135 136function scrollFunction() { 137 if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 138 document.getElementById("backToTop").style.display = "block"; 139 } else { 140 document.getElementById("backToTop").style.display = "none"; 141 } 142} 143 144function tweetcarousel() { 145 var currenttweet = 1; 146 var lasttweet = totaltweets; 147 var tweetheight = new Array(); 148 var totalheight = 0; 149 var sliderheight = feedheight; 150 151 for (var i=1; i<=totaltweets; i++) { 152 tweetheight[i] = parseInt($('#t'+i).css('height')) + parseInt($('#t'+i).css('padding-top')) + parseInt($('#t'+i).css('padding-bottom')); 153 if (slideinitial == false) { 154 sliderheight = 0; 155 } 156 if (i > 1) { 157 158 $('#t'+i).css('top', tweetheight[i-1] + totalheight + sliderheight); 159 $('#t'+i).animate({'top':tweetheight[i-1]+ totalheight}, slidetime); 160 totalheight += tweetheight[i-1]; 161 } else { 162 $('#t'+i).css('top', sliderheight); 163 $('#t'+i).animate({'top':0}, slidetime); 164 } 165 } 166 totalheight += tweetheight[totaltweets]; 167 168 setInterval(scrolltweets, pausetime); 169 170 function scrolltweets() { 171 var currentheight = 0; 172 //totalheight = 0; 173 for (var i=0; i<tweetshift; i++) { 174 var nexttweet = currenttweet+i; 175 if (nexttweet > totaltweets) { 176 nexttweet -= totaltweets; 177 } 178 console.log(nexttweet + " "+ currenttweet); 179 currentheight += tweetheight[nexttweet]; 180 } 181 182 for (var i=1; i<=totaltweets; i++) { 183 $('#t'+i).animate({'top': (parseInt($('#t'+i).css('top'))-currentheight) }, slidetime, function(){ 184 185 var animatedid = parseInt($(this).attr('id').substr(1,2)); 186 187 if (animatedid==totaltweets) { 188 for (j=1; j<=totaltweets; j++) { 189 if (parseInt($('#t'+j).css('top')) < -50) { 190 var toppos = parseInt($('#t'+lasttweet).css('top')) + tweetheight[lasttweet]; 191 $('#t'+j).css('top', toppos); 192 lasttweet = j; 193 194 if (currenttweet >= totaltweets) { 195 var newcurrent = currenttweet - totaltweets + 1; 196 currenttweet = newcurrent; 197 } else { 198 currenttweet++; 199 }; 200 } 201 } 202 203 } 204 }); 205 } 206 } 207 } 208 tweetcarousel(); 209 210// When the user clicks on the button, scroll to the top of the document
211function topFunction() { 212 window.scroll({ 213 top: 0, 214 left: 0, 215 behavior: 'smooth' 216 }); 217} 218 219 220new WOW().init(); 221 222$(document).on('click', function () { 223 $('.collapse').collapse('hide'); 224}); 225 226if (document.getElementById('h') != null) { 227 function run(interval, frames) { 228 var int = 1; 229 230 function func() { 231 document.getElementById('h').id = "b" + int; 232 int++; 233 if (int === frames) { int = 1; } 234 } 235 236 var swap = window.setInterval(func, interval); 237 } 238 239 240 run(1000, 10); //milliseconds, frames 241 }
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.