1//(function($) { 2$(function() { 3//------------------------------------------------------------------------------ 4var screen_xs = 1; // 0 em 5var screen_sm = 544; // 34 em 6var screen_md = 768; // 48 em 7var screen_lg = 992; // 62 em 8var screen_xl = 1200; // 75 em 9 10// 11function init_load(){ 12 //NProgress.configure({ easing: 'ease', speed: 750, showSpinner: false, parent: '.i_sect-1' }); 13 //NProgress.start(); 14 //setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000); 15 16 //$('[data-toggle="tooltip"]').tooltip(); 17 //$('[data-toggle="tooltip"]').hover(function() { $('#'+$(this).attr('aria-describedby')).addClass('i_tooltip--'+$(this).attr('data-style')); }); 18} 19init_load(); 20 21var elem = $('.i_foot'); 22var container = $('.i_wrap'); 23var pos = elem.position().top + container.scrollTop() - container.position().top; 24//alert(pos); 25$('.btn[data-target="#collapse11"]').click(function(){ container.delay(0).animate({ scrollTop: pos }, 500); }); 26$('.btn[data-target="#collapse22"]').click(function(){ container.delay(0).animate({ scrollTop: pos }, 500); }); 27 28//$('.i_box-2 .card').matchHeight({ byRow: true, property: 'min-height', target: null, remove: false }); 29//$('.i_box-2 .card').matchHeight({ byRow: false, property: 'height', target: $('.i_box-2'), remove: false }); 30 31var owl_1 = $('.i_menu__slider'); 32function start_owl_1(){ 33 //i = $(".i_box-3 .card.active").closest(".owl-item").index(); 34 i = $(".i_menu__slider .nav-item.active").index(); 35 if(i > 0) { 36 return i; 37 } else { 38 return 0; 39 } 40} 41function init_owl_1(){ 42 owl_1.addClass("owl-carousel"); 43 owl_1.owlCarousel({ 44 items: 2, 45 startPosition: start_owl_1(),//function() { $(".i_box-3 .card.active").closest(".owl-item").index(); }, //0, //"URLHash", //function() {}, 46 slideBy: 1, 47 center: false, 48 loop: false, 49 //mouseDrag: false, 50 //stagePadding: 30, 51 margin: 24, 52 //dots: true, 53 //nav: true, 54 //navText:[0,1], 55 //navElement: 'div', 56 //autoWidth: true, 57 //autoHeight: true, 58 //autoHeight: false, autoHeightClass: 'owl-height', 59 //animateOut: 'fadeOut', 60 //animateIn: 'fadeIn', 61 smartSpeed: 1000, 62 //autoplay: true, 63 //autoplayTimeout: 2000, 64 //autoplayHoverPause: true, 65 responsiveClass:true, 66 responsive: { 67 544: { items: 2, stagePadding: 0 }, 68 768: { items: 3, stagePadding: 0 }, 69 992: { items: 1, stagePadding: 0 }, 70 1200: { items: 1, stagePadding: 0 } 71 }, 72 onInitialized: function(event) { 73 if (event.item.index===0){ 74 $(".i_box-1__btn-prev").hide(); 75 } else { 76 $(".i_box-1__btn-prev").show(); 77 } 78 if ((event.item.count-event.page.size)===event.item.index){ 79 $(".i_box-1__btn-next").hide(); 80 } else { 81 $(".i_box-1__btn-next").show(); 82 } 83 }, 84 onChange: function(event) {}, 85 onChanged: function(event) {}, 86 onTranslated: function(event) { 87 if (event.item.index===0){ 88 $(".i_box-1__btn-prev").hide(); 89 } else { 90 $(".i_box-1__btn-prev").show(); 91 } 92 if ((event.item.count-event.page.size)===event.item.index){ 93 $(".i_box-1__btn-next").hide(); 94 } else { 95 $(".i_box-1__btn-next").show(); 96 } 97 }, 98 }); 99} 100function dest_owl_1(){ 101 owl_1.trigger('destroy.owl.carousel'); 102 owl_1.removeClass("owl-carousel"); 103} 104 105var owl_3 = $('.i_box-3__slider'); 106function start_owl_3(){ 107 //i = $(".i_box-3 .card.active").closest(".owl-item").index(); 108 i = $(".i_box-3 .card.active").index(); 109 if(i > 0) { 110 return i; 111 } else { 112 return 0; 113 } 114} 115function init_owl_3(){ 116 owl_3.addClass("owl-carousel"); 117 owl_3.owlCarousel({ 118 items: 1, 119 startPosition: start_owl_3(),//function() { $(".i_box-3 .card.active").closest(".owl-item").index(); }, //0, //"URLHash", //function() {}, 120 slideBy: 1, 121 center: false, 122 loop: false, 123 //mouseDrag: false, 124 //stagePadding: 30, 125 margin: 24, 126 //dots: true, 127 //nav: true, 128 //navText:[0,1], 129 //navElement: 'div', 130 //autoWidth: true, 131 //autoHeight: true, 132 //autoHeight: false, autoHeightClass: 'owl-height', 133 //animateOut: 'fadeOut', 134 //animateIn: 'fadeIn', 135 smartSpeed: 1000, 136 //autoplay: true, 137 //autoplayTimeout: 2000, 138 //autoplayHoverPause: true, 139 responsiveClass:true, 140 responsive: { 141 544: { items: 2, stagePadding: 0 }, 142 //768: { items: 2, stagePadding: 0 }, 143 //992: { items: 1, stagePadding: 0 }, 144 //1200: { items: 1, stagePadding: 0 } 145 }, 146 onInitialized: function(event) { 147 if (event.item.index===0){ 148 $(".i_box-3__btn-prev").hide(); 149 } else { 150 $(".i_box-3__btn-prev").show(); 151 } 152 if ((event.item.count-event.page.size)===event.item.index){ 153 $(".i_box-3__btn-next").hide(); 154 } else { 155 $(".i_box-3__btn-next").show(); 156 } 157 }, 158 onChange: function(event) {}, 159 onChanged: function(event) {}, 160 onTranslated: function(event) { 161 if (event.item.index===0){ 162 $(".i_box-3__btn-prev").hide(); 163 } else { 164 $(".i_box-3__btn-prev").show(); 165 } 166 if ((event.item.count-event.page.size)===event.item.index){ 167 $(".i_box-3__btn-next").hide(); 168 } else { 169 $(".i_box-3__btn-next").show(); 170 } 171 }, 172 }); 173} 174function dest_owl_3(){ 175 owl_3.trigger('destroy.owl.carousel'); 176 owl_3.removeClass("owl-carousel"); 177} 178var mcsb_3 = $('.i_box-3__scroll'); 179function init_mcsb_3(){ 180 mcsb_3.mCustomScrollbar({ 181 theme:"dark", 182 //axis:"yx", 183 axis:"y", 184 mouseWheel:{ 185 //enable: false, 186 axis: "y", 187 //scrollAmount: 300, 188 preventDefault: true, 189 }, 190 //scrollInertia: 3000, 191 //documentTouchScroll: true, 192 contentTouchScroll: false, //(25) 193 autoHideScrollbar: true, 194 //scrollbarPosition:"inside", 195 scrollButtons:{ 196 enable:true, 197 //scrollAmount:"auto", //[integer](auto) 198 //scrollType: "stepped", //(stepless) 199 }, 200 advanced:{ updateOnContentResize: true }, 201 callbacks:{ 202 onInit:function(){ 203 if (this.mcs.topPct === 100) { $(".i_box-3 .mCSB_buttonDown").hide(); } else { $(".i_box-3 .mCSB_buttonDown").show(); } 204 if (this.mcs.topPct === 0) { $(".i_box-3 .mCSB_buttonUp").hide(); } else { $(".i_box-3 .mCSB_buttonUp").show(); } 205 }, 206 onBeforeUpdate:function(){}, 207 onUpdate:function(){ 208 }, 209 whileScrolling:function(){ 210 if (this.mcs.topPct === 100) { $(".i_box-3 .mCSB_buttonDown").hide(); } else { $(".i_box-3 .mCSB_buttonDown").show(); } 211 if (this.mcs.topPct === 0) { $(".i_box-3 .mCSB_buttonUp").hide(); } else { $(".i_box-3 .mCSB_buttonUp").show(); } 212 }, 213 alwaysTriggerOffsets:false 214 } 215 }); 216} 217function disable_mcsb_3(){ 218 mcsb_3.mCustomScrollbar('scrollTo',['top', null], { 219 scrollInertia: 0, 220 timeout:0 221 }); 222 mcsb_3.mCustomScrollbar("disable", true); 223} 224function update_mcsb_3(){ 225 mcsb_3.mCustomScrollbar("update"); 226} 227$('.i_box-3__btn-next').click(function() { 228 owl_3.trigger('next.owl.carousel'); 229 //owl_3.trigger('next.owl.carousel', [300]); 230}); 231$('.i_box-3__btn-prev').click(function() { 232 owl_3.trigger('prev.owl.carousel'); 233 //owl_3.trigger('prev.owl.carousel', [300]); 234}); 235 236var owl_4 = $('.i_box-4__slider'); 237function init_owl_4(){ 238 owl_4.addClass("owl-carousel"); 239 owl_4.owlCarousel({ 240 items: 1, 241 startPosition: 0, 242 slideBy: 1, 243 center: false, 244 loop: false, 245 margin: 24, 246 stagePadding: 0, 247 //mouseDrag: false, 248 //dots: true, 249 //nav: true, 250 //navText:[0,1], 251 //navElement: 'div', 252 //autoWidth: true, 253 //autoHeight: true, 254 autoHeight: false, autoHeightClass: 'owl-height', 255 //animateOut: 'fadeOut', 256 //animateIn: 'fadeIn', 257 smartSpeed: 1000, 258 //autoplay: true, 259 //autoplayTimeout: 2000, 260 //autoplayHoverPause: true, 261 responsiveClass:true, 262 responsive: { 263 544: { items: 2, slideBy: 2, margin: 24, stagePadding: 0 }, 264 //768: { items: 3, margin: 24, stagePadding: 0 }, 265 //992: { items: 3, margin: 24, stagePadding: 0 }, 266 //1200: { items: 3, margin: 24, stagePadding: 0 } 267 1648: { items: 3, slideBy: 3, margin: 24, stagePadding: 0 } 268 }, 269 onInitialized: function(event) { 270 if (event.item.index===0){ 271 $(".i_box-4__btn-prev").hide(); 272 } else { 273 $(".i_box-4__btn-prev").show(); 274 } 275 if ((event.item.count-event.page.size)===event.item.index){ 276 $(".i_box-4__btn-next").hide(); 277 } else { 278 $(".i_box-4__btn-next").show(); 279 } 280 }, 281 onChange: function(event) {}, 282 onChanged: function(event) {}, 283 onTranslated: function(event) { 284 if (event.item.index===0){ 285 $(".i_box-4__btn-prev").hide(); 286 } else { 287 $(".i_box-4__btn-prev").show(); 288 } 289 if ((event.item.count-event.page.size)===event.item.index){ 290 $(".i_box-4__btn-next").hide(); 291 } else { 292 $(".i_box-4__btn-next").show(); 293 } 294 //console.log((event.item.count-event.page.size)+"-"+event.item.index); 295 //console.log(event.item.count); 296 //console.log(event.item.index); 297 //console.log(event.page.count); 298 //console.log(event.page.index); 299 //console.log(event.page.size); 300 }, 301 }); 302} 303function dest_owl_4(){ 304 owl_4.trigger('destroy.owl.carousel'); 305 owl_4.removeClass("owl-carousel"); 306} 307$('.i_box-4__btn-next').click(function() { 308 owl_4.trigger('next.owl.carousel'); 309 //owl_4.trigger('next.owl.carousel', [300]); 310}); 311$('.i_box-4__btn-prev').click(function() { 312 owl_4.trigger('prev.owl.carousel'); 313 //owl_4.trigger('prev.owl.carousel', [300]); 314}); 315 316function maxwidth(){ 317 //mw = (Modernizr.mq('(max-width: 991px)')) ? 'md' : 'lg'; 318 if(Modernizr.mq('(max-width: 543px)')) { mw = "xs"; } 319 else if(Modernizr.mq('(max-width: 767px)')) { mw = "sm"; } 320 else if(Modernizr.mq('(max-width: 991px)')) { mw = "md"; } 321 else if(Modernizr.mq('(max-width: 1199px)')) { mw = "lg"; } 322 else { mw = "xl"; } 323 return mw; 324} 325var scr = maxwidth(); 326var isTouch = Modernizr.touch; 327var isFlex = Modernizr.flexbox; 328$(window) 329.bind('load', function(){ 330 init_mcsb_3(); 331 init_owl_4(); 332 if (scr === 'xs' || scr === 'sm' || scr === 'md') { 333 init_owl_1(); 334 init_owl_3(); 335 disable_mcsb_3(); 336 } 337 if (scr === 'lg' || scr === 'xl') { 338 //dest_owl_1(); 339 //dest_owl_3(); 340 } 341}) 342.bind('resize', function(){ 343 var newscr; 344 newscr = maxwidth(); 345 if (newscr !== scr && (newscr === 'xs' || newscr === 'sm' || newscr === 'md')) { 346 init_owl_1(); 347 init_owl_3(); 348 disable_mcsb_3(); 349 } else if (newscr !== scr && (newscr === 'lg' || newscr === 'xl')) { 350 dest_owl_1(); 351 dest_owl_3(); 352 update_mcsb_3(); 353 } 354 scr = newscr; 355 return false;
356}).trigger('resize'); 357 358//------------------------------------------------------------------------------ 359}); 360//})(jQuery);
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.