1/*! 2 3 ========================================================= 4 * Now UI Kit Pro - v1.3.1 5 ========================================================= 6 7 * Product Page: https://www.creative-tim.com/product/now-ui-kit-pro 8 * Copyright 2019 Creative Tim (http://www.creative-tim.com) 9 10 * Designed by www.invisionapp.com Coded by www.creative-tim.com 11 12 ========================================================= 13 14 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 15 16 */ 17 18 19var transparent = true; 20var big_image; 21 22var transparentDemo = true; 23var fixedTop = false; 24 25var navbar_initialized, 26 backgroundOrange = false, 27 toggle_initialized = false; 28 29var nowuiKit, 30 $navbar, 31 scroll_distance, 32 oVal; 33 34$(document).ready(function() { 35 // Activate the Tooltips 36 $('[data-toggle="tooltip"], [rel="tooltip"]').tooltip(); 37 38 // Activate bootstrap-select 39 if ($(".selectpicker").length != 0) { 40 $(".selectpicker").selectpicker({ 41 iconBase: "now-ui-icons", 42 tickIcon: "ui-1_check" 43 }); 44 }; 45 46 if ($(window).width() >= 768) { 47 big_image = $('.header[data-parallax="true"]'); 48 if (big_image.length != 0) { 49 $(window).on('scroll', nowuiKit.checkScrollForParallax); 50 } 51 } 52 53 // Activate Popovers and set color for popovers 54 $('[data-toggle="popover"]').each(function() { 55 color_class = $(this).data('color'); 56 $(this).popover({ 57 template: '<div class="popover popover-' + color_class + '" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>' 58 }); 59 }); 60 61 //Activate tags 62 // we style the badges with our colors 63 var tagClass = $('.tagsinput').data('color'); 64 65 if ($(".tagsinput").length != 0) { 66 $('.tagsinput').tagsinput(); 67 } 68 69 $('.bootstrap-tagsinput').addClass('badge-' + tagClass + ''); 70 71 // Activate the image for the navbar-collapse 72 nowuiKit.initNavbarImage(); 73 74 75 // Adding class show on the navbar-collapse for animation working properly 76 $('.navbar-collapse').addClass('show'); 77 78 $navbar = $('.navbar[color-on-scroll]'); 79 scroll_distance = $navbar.attr('color-on-scroll') || 500; 80 81 // Check if we have the class "navbar-color-on-scroll" then add the function to remove the class "navbar-transparent" so it will transform to a plain color. 82 if ($('.navbar[color-on-scroll]').length != 0) { 83 nowuiKit.checkScrollForTransparentNavbar(); 84 $(window).on('scroll', nowuiKit.checkScrollForTransparentNavbar) 85 } 86 87 $('.form-control').on("focus", function() { 88 $(this).parent('.input-group').addClass("input-group-focus"); 89 }).on("blur", function() { 90 $(this).parent(".input-group").removeClass("input-group-focus"); 91 }); 92 93 // Activate bootstrapSwitch 94 $('.bootstrap-switch').each(function() { 95 $this = $(this); 96 data_on_label = $this.data('on-label') || ''; 97 data_off_label = $this.data('off-label') || ''; 98 99 $this.bootstrapSwitch({ 100 onText: data_on_label, 101 offText: data_off_label 102 }); 103 }); 104 105 if ($(window).width() >= 992) { 106 big_image = $('.page-header-image[data-parallax="true"]'); 107 108 $(window).on('scroll', nowuiKit.checkScrollForParallax); 109 } 110 111 // Activate Carousel 112 $('.carousel').carousel({ 113 interval: 4000 114 }); 115 116 if ($(".datetimepicker").length != 0) { 117 $('.datetimepicker').datetimepicker({ 118 icons: { 119 time: "now-ui-icons tech_watch-time", 120 date: "now-ui-icons ui-1_calendar-60", 121 up: "fa fa-chevron-up", 122 down: "fa fa-chevron-down", 123 previous: 'now-ui-icons arrows-1_minimal-left', 124 next: 'now-ui-icons arrows-1_minimal-right', 125 today: 'fa fa-screenshot', 126 clear: 'fa fa-trash', 127 close: 'fa fa-remove' 128 } 129 }); 130 } 131 132 if ($(".datepicker").length != 0) { 133 $('.datepicker').datetimepicker({ 134 format: 'MM/DD/YYYY', 135 icons: { 136 time: "now-ui-icons tech_watch-time", 137 date: "now-ui-icons ui-1_calendar-60", 138 up: "fa fa-chevron-up", 139 down: "fa fa-chevron-down", 140 previous: 'now-ui-icons arrows-1_minimal-left', 141 next: 'now-ui-icons arrows-1_minimal-right', 142 today: 'fa fa-screenshot',
143 clear: 'fa fa-trash', 144 close: 'fa fa-remove' 145 } 146 }); 147 } 148 149 if ($(".timepicker").length != 0) { 150 $('.timepicker').datetimepicker({ 151 // format: 'H:mm', // use this format if you want the 24hours timepicker 152 format: 'h:mm A', //use this format if you want the 12hours timpiecker with AM/PM toggle 153 icons: { 154 time: "now-ui-icons tech_watch-time", 155 date: "now-ui-icons ui-1_calendar-60", 156 up: "fa fa-chevron-up", 157 down: "fa fa-chevron-down", 158 previous: 'now-ui-icons arrows-1_minimal-left', 159 next: 'now-ui-icons arrows-1_minimal-right', 160 today: 'fa fa-screenshot', 161 clear: 'fa fa-trash', 162 close: 'fa fa-remove' 163 } 164 }); 165 } 166}); 167 168$(window).on('resize', function() { 169 nowuiKit.initNavbarImage(); 170}); 171 172$(document).on('click', '.navbar-toggler', function() { 173 $toggle = $(this); 174 175 if (nowuiKit.misc.navbar_menu_visible == 1) { 176 $('html').removeClass('nav-open'); 177 nowuiKit.misc.navbar_menu_visible = 0; 178 $('#bodyClick').remove(); 179 setTimeout(function() { 180 $toggle.removeClass('toggled'); 181 }, 550); 182 } else { 183 setTimeout(function() { 184 $toggle.addClass('toggled'); 185 }, 580); 186 div = '<div id="bodyClick"></div>'; 187 $(div).appendTo('body').click(function() { 188 $('html').removeClass('nav-open'); 189 nowuiKit.misc.navbar_menu_visible = 0; 190 setTimeout(function() { 191 $toggle.removeClass('toggled'); 192 $('#bodyClick').remove(); 193 if ($('#navbar-right').length != 0 && $('#navbar-middle').length != 0) { 194 $('#navbar-right').append($('#navbar-middle>.navbar-extend')); 195 $('#navbar-right').find('.navbar-extend').removeClass('navbar-extend'); 196 } 197 }, 550); 198 }); 199 200 $('html').addClass('nav-open'); 201 nowuiKit.misc.navbar_menu_visible = 1; 202 if ($('#navbar-right').length != 0 && $('#navbar-middle').length != 0) { 203 $('#navbar-right').find('li').addClass('navbar-extend'); 204 $('#navbar-middle').append($('#navbar-right>li')); 205 } 206 } 207}); 208 209 210nowuiKit = { 211 misc: { 212 navbar_menu_visible: 0 213 }, 214 215 checkScrollForTransparentNavbar: debounce(function() { 216 if ($(document).scrollTop() > scroll_distance) { 217 if (transparent) { 218 transparent = false; 219 $('.navbar[color-on-scroll]').removeClass('navbar-transparent'); 220 } 221 } else { 222 if (!transparent) { 223 transparent = true; 224 $('.navbar[color-on-scroll]').addClass('navbar-transparent'); 225 } 226 } 227 }, 17), 228 229 initNavbarImage: function() { 230 var $navbar = $('.navbar').find('.navbar-translate').siblings('.navbar-collapse'); 231 var background_image = $navbar.data('nav-image'); 232 233 if (background_image != undefined) { 234 if ($(window).width() < 991 || $('body').hasClass('burger-menu')) { 235 $navbar.css('background', "url('" + background_image + "')") 236 .removeAttr('data-nav-image') 237 .css('background-size', "cover") 238 .addClass('has-image'); 239 } else { 240 $navbar.css('background', "") 241 .attr('data-nav-image', '' + background_image + '') 242 .css('background-size', "") 243 .removeClass('has-image'); 244 } 245 } 246 }, 247 248 initSliders: function() { 249 // Sliders for demo purpose in refine cards section 250 var slider = document.getElementById('sliderRegular'); 251 252 noUiSlider.create(slider, { 253 start: 40, 254 connect: [true, false], 255 range: { 256 min: 0, 257 max: 100 258 } 259 }); 260 261 var slider2 = document.getElementById('sliderDouble'); 262 263 noUiSlider.create(slider2, { 264 start: [20, 60], 265 connect: true, 266 range: { 267 min: 0, 268 max: 100 269 } 270 }); 271 }, 272 273 checkScrollForParallax: debounce(function() { 274 275 oVal = ($(window).scrollTop() / 3); 276 big_image.css({ 277 'transform': 'translate3d(0,' + oVal + 'px,0)', 278 '-webkit-transform': 'translate3d(0,' + oVal + 'px,0)', 279 '-ms-transform': 'translate3d(0,' + oVal + 'px,0)', 280 '-o-transform': 'translate3d(0,' + oVal + 'px,0)' 281 }); 282 283 }, 6), 284 285 initContactUsMap: function() { 286 var myLatlng = new google.maps.LatLng(40.748817, -73.985428); 287 var mapOptions = { 288 zoom: 13, 289 center: myLatlng, 290 scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page 291 styles: [{ 292 "featureType": "water", 293 "elementType": "geometry", 294 "stylers": [{ 295 "color": "#e9e9e9" 296 }, { 297 "lightness": 17 298 }] 299 }, { 300 "featureType": "landscape", 301 "elementType": "geometry", 302 "stylers": [{ 303 "color": "#f5f5f5" 304 }, { 305 "lightness": 20 306 }] 307 }, { 308 "featureType": "road.highway", 309 "elementType": "geometry.fill", 310 "stylers": [{ 311 "color": "#ffffff" 312 }, { 313 "lightness": 17 314 }] 315 }, { 316 "featureType": "road.highway", 317 "elementType": "geometry.stroke", 318 "stylers": [{ 319 "color": "#ffffff" 320 }, { 321 "lightness": 29 322 }, { 323 "weight": 0.2 324 }] 325 }, { 326 "featureType": "road.arterial", 327 "elementType": "geometry", 328 "stylers": [{ 329 "color": "#ffffff" 330 }, { 331 "lightness": 18 332 }] 333 }, { 334 "featureType": "road.local", 335 "elementType": "geometry", 336 "stylers": [{ 337 "color": "#ffffff" 338 }, { 339 "lightness": 16 340 }] 341 }, { 342 "featureType": "poi", 343 "elementType": "geometry", 344 "stylers": [{ 345 "color": "#f5f5f5" 346 }, { 347 "lightness": 21 348 }] 349 }, { 350 "featureType": "poi.park", 351 "elementType": "geometry", 352 "stylers": [{ 353 "color": "#dedede" 354 }, { 355 "lightness": 21 356 }] 357 }, { 358 "elementType": "labels.text.stroke", 359 "stylers": [{ 360 "visibility": "on" 361 }, { 362 "color": "#ffffff" 363 }, { 364 "lightness": 16 365 }] 366 }, { 367 "elementType": "labels.text.fill", 368 "stylers": [{ 369 "saturation": 36 370 }, { 371 "color": "#333333" 372 }, { 373 "lightness": 40 374 }] 375 }, { 376 "elementType": "labels.icon", 377 "stylers": [{ 378 "visibility": "off" 379 }] 380 }, { 381 "featureType": "transit", 382 "elementType": "geometry", 383 "stylers": [{ 384 "color": "#f2f2f2" 385 }, { 386 "lightness": 19 387 }] 388 }, { 389 "featureType": "administrative", 390 "elementType": "geometry.fill", 391 "stylers": [{ 392 "color": "#fefefe" 393 }, { 394 "lightness": 20 395 }] 396 }, { 397 "featureType": "administrative", 398 "elementType": "geometry.stroke", 399 "stylers": [{ 400 "color": "#fefefe" 401 }, { 402 "lightness": 17 403 }, { 404 "weight": 1.2 405 }] 406 }] 407 }; 408 409 var map = new google.maps.Map(document.getElementById("contactUsMap"), mapOptions); 410 411 var marker = new google.maps.Marker({ 412 position: myLatlng, 413 title: "Hello World!" 414 }); 415 416 // To add the marker to the map, call setMap();
417 marker.setMap(map); 418 }, 419 420 421 initContactUs2Map: function() { 422 var myLatlng = new google.maps.LatLng(40.748817, -73.985428); 423 var mapOptions = { 424 zoom: 13, 425 center: myLatlng, 426 scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page 427 styles: [{ 428 "featureType": "water", 429 "elementType": "geometry", 430 "stylers": [{ 431 "color": "#e9e9e9" 432 }, { 433 "lightness": 17 434 }] 435 }, { 436 "featureType": "landscape", 437 "elementType": "geometry", 438 "stylers": [{ 439 "color": "#f5f5f5" 440 }, { 441 "lightness": 20 442 }] 443 }, { 444 "featureType": "road.highway", 445 "elementType": "geometry.fill", 446 "stylers": [{ 447 "color": "#ffffff" 448 }, { 449 "lightness": 17 450 }] 451 }, { 452 "featureType": "road.highway", 453 "elementType": "geometry.stroke", 454 "stylers": [{ 455 "color": "#ffffff" 456 }, { 457 "lightness": 29 458 }, { 459 "weight": 0.2 460 }] 461 }, { 462 "featureType": "road.arterial", 463 "elementType": "geometry", 464 "stylers": [{ 465 "color": "#ffffff" 466 }, { 467 "lightness": 18 468 }] 469 }, { 470 "featureType": "road.local", 471 "elementType": "geometry", 472 "stylers": [{ 473 "color": "#ffffff" 474 }, { 475 "lightness": 16 476 }] 477 }, { 478 "featureType": "poi", 479 "elementType": "geometry", 480 "stylers": [{ 481 "color": "#f5f5f5" 482 }, { 483 "lightness": 21 484 }] 485 }, { 486 "featureType": "poi.park", 487 "elementType": "geometry", 488 "stylers": [{ 489 "color": "#dedede" 490 }, { 491 "lightness": 21 492 }] 493 }, { 494 "elementType": "labels.text.stroke", 495 "stylers": [{ 496 "visibility": "on" 497 }, { 498 "color": "#ffffff" 499 }, { 500 "lightness": 16 501 }] 502 }, { 503 "elementType": "labels.text.fill", 504 "stylers": [{ 505 "saturation": 36 506 }, { 507 "color": "#333333" 508 }, { 509 "lightness": 40 510 }] 511 }, { 512 "elementType": "labels.icon", 513 "stylers": [{ 514 "visibility": "off" 515 }] 516 }, { 517 "featureType": "transit", 518 "elementType": "geometry", 519 "stylers": [{ 520 "color": "#f2f2f2" 521 }, { 522 "lightness": 19 523 }] 524 }, { 525 "featureType": "administrative", 526 "elementType": "geometry.fill", 527 "stylers": [{ 528 "color": "#fefefe" 529 }, { 530 "lightness": 20 531 }] 532 }, { 533 "featureType": "administrative", 534 "elementType": "geometry.stroke", 535 "stylers": [{ 536 "color": "#fefefe" 537 }, { 538 "lightness": 17 539 }, { 540 "weight": 1.2 541 }] 542 }] 543 }; 544 545 var map = new google.maps.Map(document.getElementById("contactUs2Map"), mapOptions); 546 547 var marker = new google.maps.Marker({ 548 position: myLatlng, 549 title: "Hello World!" 550 }); 551 552 // To add the marker to the map, call setMap(); 553 marker.setMap(map); 554 } 555} 556 557// Returns a function, that, as long as it continues to be invoked, will not 558// be triggered. The function will be called after it stops being called for 559// N milliseconds. If `immediate` is passed, trigger the function on the 560// leading edge, instead of the trailing. 561 562function debounce(func, wait, immediate) { 563 var timeout; 564 return function() { 565 var context = this, 566 args = arguments; 567 clearTimeout(timeout); 568 timeout = setTimeout(function() { 569 timeout = null; 570 if (!immediate) func.apply(context, args); 571 }, wait); 572 if (immediate && !timeout) func.apply(context, args); 573 }; 574};
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.