1jQuery(document).ready(function() { 2 'use strict'; 3 4 /*-----------------------------------------------------------------------------------*/ 5 /* WordPress Stuff 6 /*-----------------------------------------------------------------------------------*/ 7 jQuery('.slide-portfolio-item-content').appendTo('body'); 8 jQuery('p:empty').remove(); 9 10 /*-----------------------------------------------------------------------------------*/ 11 /* SCROLL NAVIGATION HIGHLIGHT 12 /*-----------------------------------------------------------------------------------*/ 13 var headerWrapper = parseInt(jQuery('.navbar').height(), 10); 14 var header_height = jQuery('.navbar').height(); 15 var shrinked_header_height = 70; 16 var offsetTolerance = -(header_height); 17 //Detecting user's scroll 18 jQuery(window).scroll(function() { 19 //Check scroll position 20 var scrollPosition = parseInt(jQuery(this).scrollTop(), 10); 21 //Move trough each menu and check its position with scroll position then add current-menu-parent class 22 jQuery('.navbar ul a[href^="#"]').not('.navbar ul a[href="#"], .navbar ul a[href="#!"]').each(function() { 23 var thisHref = jQuery(this).attr('href'); 24 25 if( jQuery(thisHref).length ){ 26 var thisTruePosition = parseInt(jQuery(thisHref).offset().top, 10); 27 var thisPosition = thisTruePosition - headerWrapper - offsetTolerance; 28 if (scrollPosition >= ( thisPosition - 70 ) ) { 29 jQuery('.current-menu-parent').removeClass('current-menu-parent'); 30 jQuery('.navbar ul a[href=' + thisHref + ']').parent('li').addClass('current-menu-parent'); 31 } 32 } 33 34 }); 35 //If we're at the bottom of the page, move pointer to the last section 36 var bottomPage = parseInt(jQuery(document).height(), 10) - parseInt(jQuery(window).height(), 10); 37 if (scrollPosition == bottomPage || scrollPosition >= bottomPage) { 38 jQuery('.current-menu-parent').removeClass('current-menu-parent'); 39 jQuery('.navbar ul a[href^="#"]:last').parent('li').addClass('current-menu-parent'); 40 } 41 }); 42 /*-----------------------------------------------------------------------------------*/ 43 /* MENU 44 /*-----------------------------------------------------------------------------------*/ 45 jQuery('.js-activated').dropdownHover({ 46 instantlyCloseOthers: false, 47 delay: 0 48 }).dropdown(); 49 jQuery('.btn.responsive-menu').on('click', function() { 50 jQuery(this).toggleClass('opn'); 51 }); 52 jQuery('.onepage .navbar .nav li a').on('click', function() { 53 jQuery('.navbar .navbar-collapse.in').collapse('hide'); 54 jQuery('.btn.responsive-menu').removeClass('opn'); 55 }); 56 jQuery('.offset').css('padding-top', jQuery('.navbar').height() + 'px'); 57 /*-----------------------------------------------------------------------------------*/ 58 /* STICKY FILTER HIGHLIGHT 59 /*-----------------------------------------------------------------------------------*/ 60 var stickyWrapper = parseInt(jQuery('#sticky-filter').height(), 10); 61 var stickyOffsetTolerance = 70; 62 //Detecting user's scroll 63 jQuery(window).scroll(function() { 64 //Check scroll position 65 var stickyScrollPosition = parseInt(jQuery(this).scrollTop(), 10); 66 //Move trough each menu and check its position with scroll position then add current class 67 jQuery('#sticky-filter').find('a').each(function() { 68 var stickyThisHref = jQuery(this).attr('href'); 69 var stickyThisTruePosition = parseInt(jQuery(stickyThisHref).offset().top, 10); 70 var stickyThisPosition = stickyThisTruePosition - stickyWrapper - stickyOffsetTolerance; 71 if(stickyScrollPosition >= stickyThisPosition) { 72 jQuery('.current').removeClass('current'); 73 jQuery('#sticky-filter').find('a[href='+ stickyThisHref +']').parent('li').addClass('current'); 74 } 75 }); 76 //If we're at the bottom of the page, move pointer to the last section
77 var stickyBottomPage = parseInt(jQuery(document).height(), 10) - parseInt(jQuery(window).height(), 10); 78 if(stickyScrollPosition == stickyBottomPage || stickyScrollPosition >= stickyBottomPage) { 79 jQuery('.current').removeClass('current'); 80 jQuery('#sticky-filter').find('a:last').parent('li').addClass('current'); 81 } 82 }); 83 /*-----------------------------------------------------------------------------------*/ 84 /* LOCALSCROLL 85 /*-----------------------------------------------------------------------------------*/ 86 jQuery('.navbar, .scroll').localScroll({ 87 hash: true, 88 offset: {top:-70, left:0} 89 }); 90 jQuery('#sticky-filter').find('ul').localScroll({ 91 offset: {top:-134, left:0} 92 }); 93 /*-----------------------------------------------------------------------------------*/ 94 /* STICKY FILTER 95 /*-----------------------------------------------------------------------------------*/ 96 if( jQuery('body').hasClass('admin-bar') ){ 97 var theSpacing = 102; 98 } else { 99 var theSpacing = 70; 100 } 101 jQuery("#sticky-filter").sticky({ topSpacing: theSpacing, className:"sfilter", responsiveBreakpoint: 0 }); 102 /*-----------------------------------------------------------------------------------*/ 103 /* CUBE PORTFOLIO 104 /*-----------------------------------------------------------------------------------*/ 105 jQuery('.cbp-onepage-grid').cubeportfolio({ 106 filters: '#js-filters-full-width', 107 loadMore: '#cbp-onepage-grid-more', 108 loadMoreAction: 'click', 109 layoutMode: 'mosaic', 110 sortToPreventGaps: true, 111 defaultFilter: '*', 112 animationType: 'quicksand', 113 gapHorizontal: 10, 114 gapVertical: 10, 115 gridAdjustment: 'responsive', 116 mediaQueries: [{ 117 width: 768, 118 cols: 3 119 }, { 120 width: 767, 121 cols: 1 122 }], 123 caption: 'fadeIn', 124 displayType: 'lazyLoading', 125 displayTypeSpeed: 100, 126 127 // lightbox 128 lightboxDelegate: '.cbp-lightbox', 129 lightboxGallery: true, 130 lightboxTitleSrc: 'data-title', 131 lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>', 132 // singlePageInline 133 singlePageInlineDelegate: '.cbp-singlePageInline', 134 singlePageInlinePosition: 'top', 135 singlePageDeeplinking: true, 136 singlePageInlineInFocus: true, 137 offsetValue: 100, 138 singlePageInlineCallback: function(url, element) { 139 // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) 140 var t = this; 141 jQuery.ajax({ 142 url: url, 143 type: 'GET', 144 dataType: 'html', 145 timeout: 10000 146 }).done(function(result) { 147 result = jQuery(result).find('.ebor-single-post').addClass('cbp-l-inline'); 148 t.updateSinglePageInline(result); 149 }).fail(function() { 150 t.updateSinglePageInline('AJAX Error! Please refresh the page!'); 151 }); 152 } 153 }); 154 jQuery('#js-grid-full-width').cubeportfolio({ 155 filters: '#js-filters-full-width', 156 loadMore: '#js-grid-full-width-more', 157 loadMoreAction: 'click', 158 layoutMode: 'mosaic', 159 sortToPreventGaps: true, 160 defaultFilter: '*', 161 animationType: 'quicksand', 162 gapHorizontal: 0, 163 gapVertical: 0, 164 gridAdjustment: 'responsive', 165 mediaQueries: [{ 166 width: 2560, 167 cols: 6 168 }, { 169 width: 1920, 170 cols: 5 171 }, { 172 width: 1450, 173 cols: 4 174 }, { 175 width: 1024, 176 cols: 3 177 }, { 178 width: 768, 179 cols: 2 180 }, { 181 width: 650, 182 cols: 1 183 }], 184 caption: 'fadeIn', 185 displayType: 'lazyLoading', 186 displayTypeSpeed: 100, 187 188 // lightbox 189 lightboxDelegate: '.cbp-lightbox', 190 lightboxGallery: true, 191 lightboxTitleSrc: 'data-title', 192 lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>', 193 // singlePageInline 194 singlePageInlineDelegate: '.cbp-singlePageInline', 195 singlePageInlinePosition: 'top', 196 singlePageDeeplinking: true, 197 singlePageInlineInFocus: true, 198 offsetValue: 100, 199 singlePageInlineCallback: function(url, element) { 200 // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) 201 var t = this; 202 jQuery.ajax({ 203 url: url, 204 type: 'GET', 205 dataType: 'html', 206 timeout: 10000 207 }).done(function(result) { 208 result = jQuery(result).find('.ebor-single-post').addClass('cbp-l-inline'); 209 210 result.find('.light-wrapper').removeClass('light-wrapper').addClass('dark-wrapper').remove(); 211 result.find('.inner.bp0').addClass('tp0'); 212 213 jQuery('.swiper-container.gallery', result).each(function(){ 214 jQuery(this).swiper({ 215 grabCursor: true, 216 slidesPerView: 'auto', 217 wrapperClass: 'swiper', 218 slideClass: 'item', 219 offsetPxBefore: 0, 220 offsetPxAfter: 0 221 }); 222 223 var $swipers = jQuery(this); 224 225 $swipers.siblings('.arrow-left').on( "click", function(){ 226 $swipers.data('swiper').swipeTo($swipers.data('swiper').activeIndex-1); 227 return false;
228 }); 229 $swipers.siblings('.arrow-right').on( "click", function(){ 230 $swipers.data('swiper').swipeTo($swipers.data('swiper').activeIndex+1); 231 return false; 232 }); 233 }); 234 235 t.updateSinglePageInline(result); 236 237 jQuery('.cbp-l-inline .basic-slider').owlCarousel({ 238 items: 1, 239 nav: true, 240 navText: ['', ''], 241 dots: true, 242 autoHeight: false, 243 loop: true, 244 margin: 0 245 }); 246 247 }).fail(function() { 248 t.updateSinglePageInline('AJAX Error! Please refresh the page!'); 249 }); 250 } 251 }); 252 jQuery('#js-grid-mosaic').cubeportfolio({ 253 filters: '#js-filters-mosaic', 254 loadMore: '#js-grid-mosaic-more', 255 loadMoreAction: 'click', 256 layoutMode: 'mosaic', 257 sortToPreventGaps: true, 258 defaultFilter: '*', 259 animationType: 'quicksand', 260 gapHorizontal: 0, 261 gapVertical: 0, 262 gridAdjustment: 'responsive', 263 mediaQueries: [{ 264 width: 768, 265 cols: 4 266 }, { 267 width: 767, 268 cols: 2 269 }], 270 caption: 'fadeIn', 271 displayType: 'lazyLoading', 272 displayTypeSpeed: 100, 273 274 // lightbox 275 lightboxDelegate: '.cbp-lightbox', 276 lightboxGallery: true, 277 lightboxTitleSrc: 'data-title', 278 lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>', 279 // singlePageInline 280 singlePageInlineDelegate: '.cbp-singlePageInline', 281 singlePageInlinePosition: 'top', 282 singlePageDeeplinking: true, 283 singlePageInlineInFocus: true, 284 offsetValue: 100, 285 singlePageInlineCallback: function(url, element) { 286 // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) 287 var t = this; 288 jQuery.ajax({ 289 url: url, 290 type: 'GET', 291 dataType: 'html', 292 timeout: 10000 293 }).done(function(result) { 294 result = jQuery(result).find('.ebor-single-post').addClass('cbp-l-inline'); 295 t.updateSinglePageInline(result); 296 }).fail(function() { 297 t.updateSinglePageInline('AJAX Error! Please refresh the page!'); 298 }); 299 } 300 }); 301 302 jQuery('.cbp-l-loadMore-link').on('click.cbp', function(e) { 303 e.preventDefault(); 304 var clicks, me = jQuery(this), 305 oMsg; 306 307 if (me.hasClass('cbp-l-loadMore-button-stop')) { 308 return; 309 } 310 311 // set loading status 312 oMsg = me.text(); 313 me.text(me.attr('data-loading-text')); 314 315 // perform ajax request 316 jQuery.ajax({ 317 url: me.attr('href'), 318 type: 'GET', 319 dataType: 'HTML' 320 }).done(function(result) { 321 var items = jQuery(result).find('.ebor-load-more'); 322 jQuery('#js-grid-mosaic').cubeportfolio('appendItems', items.html()); 323 me.remove(); 324 }).fail(function() { 325 alert('fail'); 326 }); 327 328 }); 329 /*-----------------------------------------------------------------------------------*/ 330 /* OWL CAROUSEL 331 /*-----------------------------------------------------------------------------------*/ 332 jQuery('.carousel-boxed').owlCarousel({ 333 loop: false, 334 margin: 30, 335 nav: true, 336 navText: ['', ''], 337 dots: false, 338 responsive: { 339 0: { 340 items: 1 341 }, 342 768: { 343 items: 2 344 }, 345 992: { 346 items: 3 347 } 348 } 349 }); 350 jQuery('.basic-slider').owlCarousel({ 351 items: 1, 352 nav: true, 353 navText: ['', ''], 354 dots: true, 355 autoHeight: false, 356 loop: true, 357 margin: 0 358 }); 359 jQuery('.blog-carousel').owlCarousel({ 360 items: 5, 361 nav: true, 362 navText: ['', ''], 363 dots: false, 364 loop: false, 365 margin: 0, 366 autoWidth: false, 367 responsive: { 368 0: { 369 items: 1 370 }, 371 600: { 372 items: 2 373 }, 374 1441: { 375 items: 3 376 }, 377 1921: { 378 items: 4 379 } 380 } 381 }); 382 jQuery('.clients').owlCarousel({ 383 autoplay: true, 384 autoplayTimeout: 3000, 385 loop: true, 386 margin: 50, 387 nav: false, 388 dots: false, 389 responsive: { 390 0: { 391 items: 3 392 }, 393 768: { 394 items: 5 395 }, 396 1200: { 397 items: 6 398 } 399 } 400 }); 401 jQuery('.testimonials').owlCarousel({ 402 items: 1, 403 nav: false, 404 dots: false, 405 autoHeight: true, 406 autoplay: true, 407 autoplayTimeout: 5000, 408 loop: true, 409 margin: 0 410 }); 411 /*-----------------------------------------------------------------------------------*/ 412 /* SWIPER 413 /*-----------------------------------------------------------------------------------*/ 414 jQuery('.swiper-container.gallery').each(function(){ 415 jQuery(this).swiper({ 416 grabCursor: true, 417 slidesPerView: 'auto', 418 wrapperClass: 'swiper', 419 slideClass: 'item', 420 offsetPxBefore: 0, 421 offsetPxAfter: 0 422 }); 423 424 var $swipers = jQuery(this); 425 426 $swipers.siblings('.arrow-left').on( "click", function(){ 427 $swipers.data('swiper').swipeTo($swipers.data('swiper').activeIndex-1); 428 return false;
429 }); 430 $swipers.siblings('.arrow-right').on( "click", function(){ 431 $swipers.data('swiper').swipeTo($swipers.data('swiper').activeIndex+1); 432 return false; 433 }); 434 }); 435 /*-----------------------------------------------------------------------------------*/ 436 /* FITVIDS VIDEO 437 /*-----------------------------------------------------------------------------------*/ 438 jQuery('.player').fitVids(); 439 /*-----------------------------------------------------------------------------------*/ 440 /* IMAGE ICON HOVER 441 /*-----------------------------------------------------------------------------------*/ 442 jQuery('.icon-overlay a').prepend('<span class="icn-more"></span>'); 443 /*-----------------------------------------------------------------------------------*/ 444 /* FANCYBOX 445 /*-----------------------------------------------------------------------------------*/ 446 jQuery(".fancybox-media").fancybox({ 447 arrows: true, 448 padding: 0, 449 closeBtn: true, 450 openEffect: 'fade', 451 closeEffect: 'fade', 452 prevEffect: 'fade', 453 nextEffect: 'fade', 454 helpers: { 455 media: {}, 456 overlay: { 457 locked: false 458 },
459 buttons: false, 460 thumbs: false, 461 title: { 462 type: 'inside' 463 } 464 }, 465 beforeLoad: function() { 466 var el, id = jQuery(this.element).data('title-id'); 467 if (id) { 468 el = jQuery('#' + id); 469 if (el.length) { 470 this.title = el.html(); 471 } 472 } 473 } 474 }); 475 /*-----------------------------------------------------------------------------------*/ 476 /* PROGRESS BAR 477 /*-----------------------------------------------------------------------------------*/ 478 jQuery('.progress-list .progress .bar').progressBar({ 479 shadow : false, 480 percentage : false, 481 animation : true, 482 height: 15 483 }); 484 485 /*-----------------------------------------------------------------------------------*/ 486 /* BACKGROUND VIDEO PARALLAX 487 /*-----------------------------------------------------------------------------------*/ 488 jQuery('#video-office').backgroundVideo({ 489 $outerWrap: jQuery('.outer-wrap'), 490 pauseVideoOnViewLoss: false, 491 parallaxOptions: { 492 effect: 1.9 493 } 494 }); 495 /*-----------------------------------------------------------------------------------*/ 496 /* PARALLAX MOBILE 497 /*-----------------------------------------------------------------------------------*/ 498 if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i)) { 499 jQuery('.parallax').addClass('mobile'); 500 } 501 /*-----------------------------------------------------------------------------------*/ 502 /* DATA REL 503 /*-----------------------------------------------------------------------------------*/ 504 jQuery('a[data-rel]').each(function() { 505 jQuery(this).attr('rel', jQuery(this).data('rel')); 506 }); 507 /*-----------------------------------------------------------------------------------*/ 508 /* TOOLTIP 509 /*-----------------------------------------------------------------------------------*/ 510 if (jQuery("[rel=tooltip]").length) { 511 jQuery("[rel=tooltip]").tooltip(); 512 } 513 /*-----------------------------------------------------------------------------------*/ 514 /* INPUT FOCUS 515 /*-----------------------------------------------------------------------------------*/ 516 jQuery('.comment-form input[title], .comment-form textarea').each(function () { 517 if (jQuery(this).val() === '') { 518 jQuery(this).val(jQuery(this).attr('title')); 519 } 520 521 jQuery(this).focus(function () { 522 if (jQuery(this).val() == jQuery(this).attr('title')) { 523 jQuery(this).val('').addClass('focused'); 524 } 525 }); 526 jQuery(this).blur(function () { 527 if (jQuery(this).val() === '') { 528 jQuery(this).val(jQuery(this).attr('title')).removeClass('focused'); 529 } 530 }); 531 }); 532 /*-----------------------------------------------------------------------------------*/ 533 /* WIDTH CLASS 534 /*-----------------------------------------------------------------------------------*/ 535 assign_bootstrap_mode(); 536 jQuery(window).resize(function() { 537 assign_bootstrap_mode(); 538 }); 539 function assign_bootstrap_mode() { 540 var width = jQuery(window).width(); 541 var mode = ''; 542 if (width < 768) { 543 mode = "mode-xs"; 544 } else if (width < 992) { 545 mode = "mode-sm"; 546 } else if (width < 1200) { 547 mode = "mode-md"; 548 } else if (width > 1200) { 549 mode = "mode-lg"; 550 } 551 jQuery("body").removeClass("mode-xs").removeClass("mode-sm").removeClass("mode-md").removeClass("mode-lg").addClass(mode); 552 } 553 554 var instagramFeed2 = new Instafeed({ 555 target: 'instafeed-widget', 556 get: 'user', 557 limit: 6, 558 userId: 1215763826, 559 accessToken: '1215763826.467ede5.aa54392aa9eb46f0b9e7191f7211ec3a', 560 resolution: 'low_resolution', 561 template: '<div class="item"><figure class="icon-overlay"><a href="{{link}}"><img src="{{image}}" /></a></figure></div>', 562 after: function() { 563 jQuery('#instafeed-widget').find('.item .icon-overlay a').prepend('<span class="icn-more"></span>'); 564 var $portfoliogrid = jQuery('.image-grid .isotope'); 565 $portfoliogrid.isotope({ 566 itemSelector: '.item', 567 transitionDuration: '0.7s', 568 masonry: { 569 columnWidth: $portfoliogrid.width() / 12 570 }, 571 layoutMode: 'masonry' 572 }); 573 jQuery(window).resize(function() { 574 $portfoliogrid.isotope({ 575 masonry: { 576 columnWidth: $portfoliogrid.width() / 12 577 } 578 }); 579 }); 580 $portfoliogrid.imagesLoaded(function() { 581 $portfoliogrid.isotope('layout'); 582 }); 583 } 584 }); 585 jQuery('#instafeed-widget').each(function() { 586 instagramFeed2.run(); 587 }); 588 /*-----------------------------------------------------------------------------------*/ 589 /* ISOTOPE GRID VIEW COL3 590 /*-----------------------------------------------------------------------------------*/ 591 var $gridviewcol3 = jQuery('.grid-view.col3 .isotope'); 592 $gridviewcol3.isotope({ 593 itemSelector: '.grid-view-post', 594 transitionDuration: '0.6s', 595 masonry: { 596 columnWidth: '.col-sm-6.col-md-4' 597 }, 598 layoutMode: 'masonry' 599 }); 600 jQuery(window).resize(function() { 601 $gridviewcol3.isotope({ 602 masonry: { 603 columnWidth: '.col-sm-6.col-md-4' 604 } 605 }); 606 }); 607 $gridviewcol3.imagesLoaded(function() { 608 $gridviewcol3.isotope('layout'); 609 }); 610 /*-----------------------------------------------------------------------------------*/ 611 /* ISOTOPE GRID VIEW COL2 612 /*-----------------------------------------------------------------------------------*/ 613 var $gridviewcol2 = jQuery('.grid-view.col2 .isotope'); 614 $gridviewcol2.isotope({ 615 itemSelector: '.grid-view-post', 616 transitionDuration: '0.6s', 617 masonry: { 618 columnWidth: '.col-md-6.col-sm-12' 619 }, 620 layoutMode: 'masonry' 621 }); 622 jQuery(window).resize(function() { 623 $gridviewcol2.isotope({ 624 masonry: { 625 columnWidth: '.col-md-6.col-sm-12' 626 } 627 }); 628 }); 629 $gridviewcol2.imagesLoaded(function() { 630 $gridviewcol2.isotope('layout'); 631 }); 632 /*-----------------------------------------------------------------------------------*/ 633 /* ISOTOPE PORTFOLIO GRID 634 /*-----------------------------------------------------------------------------------*/ 635 var $portfoliogrid = jQuery('.image-grid .isotope'); 636 $portfoliogrid.isotope({ 637 itemSelector: '.item', 638 transitionDuration: '0.7s', 639 masonry: { 640 columnWidth: $portfoliogrid.width() / 12 641 }, 642 layoutMode: 'masonry' 643 }); 644 jQuery(window).resize(function() { 645 $portfoliogrid.isotope({ 646 masonry: { 647 columnWidth: $portfoliogrid.width() / 12 648 } 649 }); 650 }); 651 $portfoliogrid.imagesLoaded(function() { 652 $portfoliogrid.isotope('layout'); 653 }); 654 655 jQuery('.owl-carousel').owlCarousel({ 656 loop:true, 657 margin:10, 658 nav:false, 659 autoplay:true, 660 responsive:{ 661 0:{ 662 items:1 663 }, 664 800:{ 665 items:2 666 }, 667 1000:{ 668 items:2 669 } 670 } 671 }) 672}); 673/*-----------------------------------------------------------------------------------*/ 674/* LOADING 675/*-----------------------------------------------------------------------------------*/ 676jQuery(window).load(function() { 677 jQuery('#status').fadeOut(); 678 jQuery('#preloader').delay(350).fadeOut('slow'); 679 jQuery('#preloader .textload').delay(0).fadeOut('slow'); 680}); 681 682/*-----------------------------------------------------------------------------------*/ 683/* STICKY HEADER 684/*-----------------------------------------------------------------------------------*/
685function init() { 686"use strict"; 687 // window.addEventListener('scroll', function(e){ 688 // var distanceY = window.pageYOffset || document.documentElement.scrollTop, 689 // shrinkOn = 100, 690 // header = document.querySelector(".navbar"); 691 // if (distanceY > shrinkOn) { 692 // classie.add(header,"fixed"); 693 // } else { 694 // if (classie.has(header,"fixed")) { 695 // classie.remove(header,"fixed"); 696 // } 697 // } 698 // }); 699 } 700 window.onload = init(); 701jQuery(window).resize(function() { 702 jQuery('.offset').css('padding-top', jQuery('.navbar').height() + 'px'); 703});
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.