1$('document').ready(function(){ /* Doc Ready start */ 2 3/***************Split title********************/ 4if($('.inner-title').length>0){ 5 $('.inner-title').each(function(){ 6 var me = $(this); 7 if(/\s/g.test( $.trim(me.html()))) 8 me.html(me.html().replace(/(\w+)./, '<div class="first-word">$1</div>')); 9}); 10} 11 12/******** Floating Menu ***********/ 13if (Modernizr.touchevents){ 14 console.log('Touch'); 15} else { 16 console.log('not touch'); 17 if($('#s4-workspace').hasScrollBar()){ 18 $(".floating-menu").css('right','17px'); 19 } 20} 21 22$('.sb-social .twitter').attr('title','Share to Twitter'); 23$('.sb-social .facebook').attr('title','Share on Facebook'); 24$('.sb-social .googlePlus').attr('title','Share on Google Plus'); 25$('.sb-social .email').attr('title','Share via Email'); 26$('.social .insta').attr('title','Follow us on Instagram'); 27$('.social .twitter').attr('title','Follow us on Twitter'); 28$('.accessibility-theme').attr('title','High contrast mode'); 29$('.increase-font').attr('title','Increase font'); 30$('.decrease-font').attr('title','Decrease font'); 31$('.default-font').attr('title','Reset to default'); 32$('.ms-helperText').attr('placeholder','Search this site ...'); 33/******** Text trimming ***********/ 34$(".hl-data h2").dotdotdot({ 35 ellipsis: '... ',watch: true, 36 height: 102 37}); 38$(".hl-data span").dotdotdot({ 39 ellipsis: '... ',watch: true, 40 height: 350 41}); 42 43 44/*******************************************/ 45 if($('.marquee-content-items > li').length > 0){ 46var newsWidth=$('.marquee-content-items').width()> $(window).width() ? $('.marquee-content-items').width() : $(window).width(); 47var mq=$('.marquee-content-items').marquee({ 48 pauseOnHover: true,direction: 'left', 49 allowCss3Support: true, 50 duration: 10*newsWidth, 51 delayBeforeStart:3000, 52 }); 53$('.js-marquee a').click(function(){ 54 mq.marquee('resume'); 55}); 56 57} 58 59// initiate slick carousel 60if($(".slider-sponsors").length>0){ 61 $(".slider-sponsors").slick({ 62 slide : ".item", 63 dots: false, 64 infinite: false, 65 slidesToShow: 4,slidesToScroll: 4, 66 prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-chevron-circle-left"></i></button>', 67 nextArrow: '<button type="button" class="slick-next"><i class="fa fa-chevron-circle-right"></i></button>', 68 responsive: [ 69 { 70 breakpoint: 992, 71 settings: { 72 slidesToShow: 3, 73 slidesToScroll: 3, 74 75 } 76 }, 77 78 { 79 80 breakpoint: 768, 81 settings: { 82 slidesToShow: 2, 83 slidesToScroll: 2, 84 } 85 }, 86 { 87 breakpoint: 550, 88 settings: { 89 slidesToShow: 1, 90 slidesToScroll: 1, 91 } 92 } 93 ] 94 }); 95} 96 97if ($(".prev-win-list").length > 0) { 98 99 $('[id$="isWinner"]').each(function () { 100 if ($(this).val() == "" || $(this).val() == "False") { 101 $(this).siblings('.prev-win-list').hide(); 102 $(this).siblings('.no-prev-win').show(); 103 } else { 104 $(this).siblings('.prev-win-list').show(); 105 $(this).siblings('.no-prev-win').hide(); 106 } 107 }); 108 $('[id$="isGCCWinner"]').each(function () { 109 if ($(this).val() == "" || $(this).val() == "False") { 110 $(this).parent('li').hide(); 111 } 112 }); 113 $('[id$="isWSWinner"]').each(function () { 114 if ($(this).val() == "" || $(this).val() == "False") { 115 $(this).parent('li').hide(); 116 } 117 }); 118 $('[id$="isNationalCompetitionWinner"]').each(function () { 119 if ($(this).val() == "" || $(this).val() == "False") { 120 $(this).parent('li').hide(); 121 } 122 }); 123 124 125 126 127$(".prev-win-list").each(function(){ 128 var itemLength=$(this).find("[value='True']").length; 129 if(itemLength > 1){ 130 $(this).slick({ 131 dots: false, 132 slidesToShow: 1, 133 prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-chevron-circle-left"></i></button>', 134 nextArrow: '<button type="button" class="slick-next"><i class="fa fa-chevron-circle-right"></i></button>', 135 infinite: false 136 137 }); 138 139 } 140}); 141 142}; 143 144if($('[id$="ImagesDiv"]').length>0){ 145 $('[id$="ImagesDiv"]').slick({ 146 arrows: true, 147 dots: false, 148 slidesToShow: 4,slidesToScroll: 4, 149 infinite: false, 150 responsive: [ 151 { 152 breakpoint: 1280, 153 settings: { 154 slidesToShow: 3, 155 slidesToScroll: 3, 156 } 157 } 158 ] 159 }); 160} 161 162 163/************* Gallery Popup **************/ 164 165$('.gallery-item').parent().click(function () { 166 var itemIndex = $(this).children('.gallery-item').next('[id$=hdnIndex]').val(); 167 var mtype =$(this).children('.mediaType').val(); 168 if(mtype != "AlbumMediaCT") 169 { 170 if ($('.gallery-carousel>div').length > 1) { 171 $('.gallery-carousel').not('.slick-initialized').slick({ dots: false, infinite: false, centerMode: true, 172 nextArrow: '<i class="fa fa-chevron-right insta-next"></i>', 173 prevArrow: '<i class="fa fa-chevron-left insta-prev"></i>' 174 }); 175 $('.gallery-carousel').slick('slickGoTo', itemIndex - 1); 176 //$('.gallery-carousel').slick('slickGoTo', itemIndex); 177 $('.popup-overlay').show(); 178 $('.gallery-carousel')[0].slick.refresh();
179 } 180 else { 181 $('.popup-overlay').show(); 182 } 183 } 184 185}); 186 187/********* Carousels ***********/ 188// initiate slick carousel 189if($(".carousel-home-main .item").length>1){ 190 $(".carousel-home-main").on('init', function (slick) { 191 handleQuote(); 192 193 if($('.count-down').length>0){startCountdown();} 194 }).slick({ 195 slide : ".item", 196 dots: true, 197 infinite: false, 198 slidesToShow: 1, 199 slidesToScroll: 1, 200 autoplay: true, 201 autoplaySpeed: 8000, 202 pauseOnHover:false, 203 arrows:false,cssEase:'linear',fade:true, 204 infinite: true 205 206 207 /* 208 prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>', 209 nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>'*/ 210 }).on('afterChange', function (slick) { 211 if($('.count-down').length>0){ 212 startCountdown();} 213 console.log("next slide"); 214 clearQuote(); 215 handleQuote(); 216 }); 217} 218 219 220$('.insta-carousel').slick({ 221 slidesToShow: 6, 222 slidesToScroll: 6, 223 infinite: true, 224 arrows: true, 225 autoplaySpeed: 3000, 226 autoplay: false, 227 dots:false, 228 nextArrow: '<i class="fa fa-chevron-right insta-next"></i>', 229 prevArrow: '<i class="fa fa-chevron-left insta-prev"></i>', 230 231 responsive: [ 232 { 233 breakpoint: 1280, 234 settings: { 235 slidesToShow: 5, 236 slidesToScroll: 5, 237 } 238 }, 239 { 240 breakpoint: 992, 241 settings: { 242 slidesToShow: 3, 243 slidesToScroll: 3, 244 245 } 246 }, 247 { 248 breakpoint: 768, 249 settings: { 250 slidesToShow: 2, 251 slidesToScroll: 2, 252 253 } 254 }, 255 { 256 breakpoint: 500, 257 settings: { 258 slidesToShow: 1, 259 slidesToScroll: 1, 260 261 } 262 }] 263 264}); 265/********************Related media*************/ 266$('.related-downloads').slick({ 267 slidesToShow: 4, 268 slidesToScroll: 4, 269 infinite: true, 270 arrows: true, 271 autoplay: false, 272 dots:false, 273nextArrow: '<i class="fa fa-chevron-circle-right"></i>', 274 prevArrow: '<i class="fa fa-chevron-circle-left"></i>', 275 276 responsive: [ 277 { 278 breakpoint: 1280, 279 settings: { 280 slidesToShow: 3, 281 slidesToScroll: 3, 282 } 283 }, 284 285 { 286 breakpoint: 768, 287 settings: { 288 slidesToShow: 2, 289 slidesToScroll: 2, 290 291 } 292 }, 293 { 294 breakpoint: 500, 295 settings: { 296 slidesToShow: 1, 297 slidesToScroll: 1, 298 299 } 300 }] 301 302}); 303 304/* Insta carousel height */ 305if($('.inner-page .insta-item a').length>0){ 306 var instaWidth = $('.inner-page .insta-item').width(); 307 $('.inner-page .insta-item a').css('height',instaWidth - 16 ); 308} 309 310 311 312}); /* Doc Ready end */ 313function clearQuote(){ 314$(".quotes-wrapper p.carousel-desc i").remove(); 315} 316 317function handleQuote(){ 318 319$(".item.slick-slide input[type='hidden']").each(function(){ 320var getQuote=$(this); 321 322if( getQuote.val() == "Quotes"){ 323getQuote.parent().addClass("quotes-wrapper"); 324console.log("true"); 325var quoteWriterClone = $(".quotes-wrapper.slick-active h3.carousel-title").clone(); 326$(".quotes-wrapper.slick-active h3.carousel-title").remove(); 327quoteWriterClone.insertAfter(".quotes-wrapper.slick-active p.carousel-desc"); 328} 329}); 330 331} 332
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.