1(function($) { 2 "use strict"; // Start of use strict 3 4 // Document Ready 5 $( "document" ).ready(function(){ 6 7 // Slider 8 $(".man_slider").owlCarousel({ 9 items:1, 10 autoplay:1, 11 dots:1, 12 nav:1, 13 mouseDrag:true, 14 animateOut: 'fadeOut', 15 loop:true, 16 autoHeight:true, 17 navText:['<i class="bau_angle"><span></span></i>','<i class="bau_angle"><span></span></i>'], 18 responsive:{ 19 0:{ 20 nav:0 21 }, 22 768: { 23 nav:1 24 }, 25 26 }, 27 }); 28 29 // Video Link 30 $('.sm_video_link').on('click',function( event ){ 31 var url = $(this).attr('href'); 32 event.preventDefault(); 33 elementorFrontend.utils.lightbox.showModal({ 34 url: url, 35 videoAspectRatio: '169', 36 type: 'video', 37 }); 38 }); 39 40 // Hover Effect 41 $('.man_hover_margin').each(function(){ 42 $(this).parents('.elementor-widget').addClass('man_hover_margin_parents') 43 }); 44 45 46 47 /* Timeline */ 48 49 $('.man_timeline_pin_cont p').each(function(){ 50 $(this).text($(this).text().substr(0,45)); 51 }); 52 $(".man_timeline_carousel").owlCarousel({ 53 items:4, 54 autoplay:0, 55 dots:1, 56 nav:1, 57 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 58 responsiveRefreshRate:200, 59 responsive:{ 60 0:{ 61 items:1, 62 }, 63 650:{ 64 items:2, 65 }, 66 767:{ 67 items:3, 68 }, 69 1024:{ 70 items:4, 71 }, 72 } 73 }); 74 75 // News 76 $('.man_news').each(function(){ 77 var items = $(this).attr('data-items'); 78 $(this).owlCarousel({ 79 items:items, 80 autoplay:0, 81 dots:1, 82 nav:0, 83 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 84 responsiveRefreshRate:200, 85 responsive:{ 86 0:{ 87 items:1, 88 }, 89 767:{ 90 items:items, 91 } 92 } 93 }); 94 }); 95 96 // News 97 $('.man_products_slider').each(function(){ 98 var items = $(this).attr('data-items'); 99 $(this).owlCarousel({ 100 items:items, 101 autoplay:0, 102 dots:1, 103 nav:0, 104 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 105 responsiveRefreshRate:200, 106 responsive:{ 107 0:{ 108 items:1, 109 }, 110 767:{ 111 items:2, 112 }, 113 1024:{ 114 items:3, 115 }, 116 1200:{ 117 items:items, 118 } 119 } 120 }); 121 }); 122 123 // Prodcuts 124 $('.man_vertical_products').each(function(){ 125 var items = 5; 126 $(this).owlCarousel({ 127 items:items, 128 autoplay:0, 129 dots:1, 130 nav:0, 131 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 132 responsiveRefreshRate:200, 133 responsive:{ 134 0:{ 135 items:1, 136 }, 137 520:{ 138 items:2, 139 }, 140 767:{ 141 items:items, 142 } 143 } 144 }); 145 }); 146 147 var classes = ["product_one", "product_two", "product_three"]; 148 $('.man_vertical_products .product, .man_vertical_products_default .product').on({ 149 150 mouseenter:function(){
151 $(this).addClass(classes[~~(Math.random()*classes.length)]); 152 },mouseleave:function(){ 153 $(this).removeClass('product_one'); 154 $(this).removeClass('product_two'); 155 $(this).removeClass('product_three'); 156 } 157 }); 158 159 160 $('.man_gallery_slider').each(function(){ 161 var items = $(this).attr('data-items'); 162 $(this).find('.gallery').addClass('owl-carousel').owlCarousel({ 163 items:items, 164 autoplay:0, 165 dots:0, 166 nav:0, 167 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 168 responsiveRefreshRate:200, 169 responsive:{ 170 0:{ 171 items:2, 172 }, 173 650:{ 174 items:3, 175 }, 176 767:{ 177 items:4, 178 }, 179 1024:{ 180 items:items, 181 }, 182 } 183 }); 184 }); 185 186 187 // Offices 188 $('.man_map_pin_cont_mobile_close').on("click", function(){ 189 $(this).parents('.man_map_pin_cont_mobile').removeClass('active'); 190 }); 191 $('.man_map_pin').on("click", function(){ 192 var id = $(this).attr('data-id'); 193 $(this).parents('.man_map_pins').find('.man_map_pin_cont_mobile').removeClass('active'); 194 $(this).parents('.man_map_pins').find('.man_map_pin_cont_mobile-'+id).toggleClass('active'); 195 }); 196 $('.man_map').addClass('active'); 197 $('.man_map_pin').on({ 198 mouseenter:function(){ 199 $(this).parents('.man_map').removeClass('active'); 200 },mouseleave:function(){ 201 } 202 }); 203 $('.man_map_pin').each(function(){ 204 var pin_right = $(this).parents('.man_map').width() - $(this).position().left; 205 if (pin_right < 200 ) { 206 $(this).addClass('man_map_pin_right') 207 } 208 }) 209 210 211 //Advantages 212 $('.man_adv_carousel .man_adv_box_img').each(function(i, el){ 213 if ( i === 0) { 214 $(el).addClass('first-item'); 215 } 216 $(this).insertBefore($(this).parents('.elementor-container')); 217 }); 218 $('.man_adv_box').on({ 219 mouseenter:function(){ 220 var box_id = $(this).attr('id'); 221 $('.man_adv_box_img_'+box_id+'').addClass('active'); 222 },mouseleave:function(){ 223 var box_id = $(this).attr('id'); 224 $('.man_adv_box_img_'+box_id+'').removeClass('active'); 225 } 226 }); 227 228 229 // Testimonials 230 $('.man_testimonials').each(function(){ 231 var items = $(this).attr('data-items'); 232 var ipad_items = 1; 233 $(this).owlCarousel({ 234 items:items, 235 autoplay:0, 236 dots:1, 237 nav:0, 238 navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'], 239 responsiveRefreshRate:200, 240 responsive:{ 241 0:{ 242 items:1, 243 nav:false 244 }, 245 767:{ 246 items:ipad_items, 247 nav:false 248 }, 249 1024:{ 250 items:items, 251 nav:false, 252 loop:false 253 } 254 } 255 }); 256 }); 257 258 259 /* Fixed for Parallax */ 260 $(".man_fixed").css("background-attachment","fixed"); 261 262 263 });// Document Ready End 264 265 $(window).on('load',function(){ 266 /*SkrollR*/ 267 if( !device.tablet() && !device.mobile() ) { 268 var s = skrollr.init({ 269 forceHeight: false, 270 }); 271 $(window).stellar({ 272 horizontalScrolling: false, 273 responsive: true, 274 verticalOffset: 50 275 }); 276 } 277 }); 278 279 280 281 /** 282 * @param $scope The Widget wrapper element as a jQuery element 283 * @param $ The jQuery alias 284 */ 285 286 var WidgetHelloWorldHandler = function( $scope, $ ) { 287 console.log( $scope ); 288 }; 289 290 // Make sure you run this code under Elementor. 291 $( window ).on( 'elementor/frontend/init', function() { 292 elementorFrontend.hooks.addAction( 'frontend/element_ready/hello-world.default', WidgetHelloWorldHandler ); 293 } ); 294 295 296})(jQuery); 297 298 299(function($) { 300 301 "use strict"; 302 var previousDevice, _addClass, _doc_element, _find, _handleOrientation, _hasClass, _orientation_event, _removeClass, _supports_orientation, _user_agent; 303 304 previousDevice = window.device; 305 306 window.device = {}; 307 308 _doc_element = window.document.documentElement; 309 310 _user_agent = window.navigator.userAgent.toLowerCase(); 311 312 device.ios = function() { 313 return device.iphone() || device.ipod() || device.ipad(); 314 }; 315 316 device.iphone = function() { 317 return _find('iphone'); 318 }; 319 320 device.ipod = function() { 321 return _find('ipod'); 322 }; 323 324 device.ipad = function() { 325 return _find('ipad'); 326 }; 327 328 device.android = function() { 329 return _find('android'); 330 }; 331 332 device.androidPhone = function() { 333 return device.android() && _find('mobile'); 334 }; 335 336 device.androidTablet = function() { 337 return device.android() && !_find('mobile'); 338 }; 339 340 device.blackberry = function() { 341 return _find('blackberry') || _find('bb10') || _find('rim'); 342 }; 343 344 device.blackberryPhone = function() { 345 return device.blackberry() && !_find('tablet'); 346 }; 347 348 device.blackberryTablet = function() { 349 return device.blackberry() && _find('tablet'); 350 }; 351 352 device.windows = function() { 353 return _find('windows'); 354 }; 355 356 device.windowsPhone = function() { 357 return device.windows() && _find('phone'); 358 }; 359 360 device.windowsTablet = function() { 361 return device.windows() && _find('touch'); 362 }; 363 364 device.fxos = function() { 365 return (_find('(mobile;') || _find('(tablet;')) && _find('; rv:'); 366 }; 367 368 device.fxosPhone = function() { 369 return device.fxos() && _find('mobile'); 370 }; 371 372 device.fxosTablet = function() { 373 return device.fxos() && _find('tablet'); 374 }; 375 376 device.meego = function() { 377 return _find('meego'); 378 }; 379 380 device.cordova = function() { 381 return window.cordova && location.protocol === 'file:'; 382 }; 383 384 device.mobile = function() { 385 return device.androidPhone() || device.iphone() || device.ipod() || device.windowsPhone() || device.blackberryPhone() || device.fxosPhone() || device.meego(); 386 }; 387 388 device.tablet = function() { 389 return device.ipad() || device.androidTablet() || device.blackberryTablet() || device.windowsTablet() || device.fxosTablet(); 390 }; 391 392 device.desktop = function() { 393 return !device.tablet() && !device.mobile(); 394 }; 395 396 device.portrait = function() { 397 return (window.innerHeight / window.innerWidth) > 1; 398 }; 399 400 device.landscape = function() { 401 return (window.innerHeight / window.innerWidth) < 1; 402 }; 403 404 device.noConflict = function() { 405 window.device = previousDevice; 406 return this; 407 }; 408 409 _find = function(needle) { 410 return _user_agent.indexOf(needle) !== -1; 411 }; 412 413 _hasClass = function(class_name) { 414 var regex; 415 regex = new RegExp(class_name, 'i'); 416 return _doc_element.className.match(regex); 417 }; 418 419 _addClass = function(class_name) { 420 if (!_hasClass(class_name)) { 421 return _doc_element.className += " " + class_name; 422 } 423 }; 424 425 _removeClass = function(class_name) { 426 if (_hasClass(class_name)) { 427 return _doc_element.className = _doc_element.className.replace(class_name, ""); 428 } 429 }; 430 431 if (device.ios()) { 432 if (device.ipad()) { 433 _addClass("ios ipad tablet"); 434 } else if (device.iphone()) { 435 _addClass("ios iphone mobile"); 436 } else if (device.ipod()) { 437 _addClass("ios ipod mobile"); 438 } 439 } else if (device.android()) { 440 if (device.androidTablet()) { 441 _addClass("android tablet"); 442 } else { 443 _addClass("android mobile"); 444 } 445 } else if (device.blackberry()) { 446 if (device.blackberryTablet()) { 447 _addClass("blackberry tablet"); 448 } else { 449 _addClass("blackberry mobile"); 450 } 451 } else if (device.windows()) { 452 if (device.windowsTablet()) { 453 _addClass("windows tablet"); 454 } else if (device.windowsPhone()) { 455 _addClass("windows mobile"); 456 } else { 457 _addClass("desktop"); 458 } 459 } else if (device.fxos()) { 460 if (device.fxosTablet()) { 461 _addClass("fxos tablet"); 462 } else { 463 _addClass("fxos mobile"); 464 } 465 } else if (device.meego()) { 466 _addClass("meego mobile"); 467 } else { 468 _addClass("desktop"); 469 } 470 471 if (device.cordova()) { 472 _addClass("cordova"); 473 } 474 475 _handleOrientation = function() { 476 if (device.landscape()) { 477 _removeClass("portrait"); 478 return _addClass("landscape"); 479 } else { 480 _removeClass("landscape"); 481 return _addClass("portrait"); 482 } 483 }; 484 485 _supports_orientation = "onorientationchange" in window; 486 487 _orientation_event = _supports_orientation ? "orientationchange" : "resize"; 488 489 if (window.addEventListener) { 490 window.addEventListener(_orientation_event, _handleOrientation, false); 491 } else if (window.attachEvent) { 492 window.attachEvent(_orientation_event, _handleOrientation); 493 } else { 494 window[_orientation_event] = _handleOrientation; 495 } 496 497 _handleOrientation(); 498 499}).call(this);
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.