1/*jslint browser: true, white: true */ 2/*global console,jQuery,megamenu,window,navigator*/ 3 4/** 5 * EDD Ajax Cart 6 */ 7(function($) { 8 "use strict"; 9 10 $(function() { 11 $('body').on('edd_cart_item_added', function(event, data) { 12 $('.mega-menu-edd-cart-total').html(data.total); 13 $('.mega-menu-edd-cart-count').html(data.cart_quantity); 14 }); 15 }); 16 17 $(".max-mega-menu").on("after_mega_menu_init", function() { 18 $('li.mega-menu-megamenu').on('open_panel', function() { 19 // reset default 20 var placeholder = $(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder"); 21 var default_src = placeholder.attr('data-default-src'); 22 var default_alt = placeholder.attr('data-default-alt'); 23 placeholder.attr('src', default_src); 24 placeholder.attr('alt', default_alt); 25 26 // preload 27 $('.mega-sub-menu [data-image-swap-url]', $(this) ).not(['data-preloaded']).each( function() { 28 $('<img/>')[0].src = $(this).attr('data-image-swap-url'); 29 $(this).attr('data-preloaded', 'true'); 30 }); 31 }); 32 33 if ( typeof $.fn.hoverIntent !== "function" ) { 34 return; 35 } 36 37 $('.mega-sub-menu [data-image-swap-url]').hoverIntent({ 38 over: function () { 39 var placeholder = $(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder"); 40 var new_src = $(this).attr('data-image-swap-url'); 41 var new_alt = $(this).is("[data-image-swap-alt]") ? $(this).attr('data-image-swap-alt') : ""; 42 placeholder.attr('src', new_src); 43 placeholder.attr('alt', new_alt); 44 }, 45 out: function() {} 46 }); 47 }); 48 49})(jQuery); 50 51/** 52 * Searchbox jQuery plugin 53 */ 54(function($) { 55 "use strict"; 56 57 $.maxmegamenu_searchbox = function(form, options) { 58 59 var plugin = this; 60 var form = $(form); 61 var $menu = form.parents('.max-mega-menu'); 62 var $wrap = $menu.parent(); 63 var breakpoint = $menu.attr('data-breakpoint'); 64 var input = $('input[type=text]', form); 65 var icon = $('.search-icon', form); 66 67 plugin.isDesktopView = function() { 68 return Math.max(window.outerWidth, $(window).width()) >= breakpoint; // account for scrollbars 69 }; 70 71 plugin.monitorView = function() { 72 if (typeof $menu.data("view") === 'undefined') { 73 if (plugin.isDesktopView()) { 74 $menu.data("view", "desktop"); 75 } else { 76 $menu.data("view", "mobile"); 77 } 78 } 79 80 plugin.checkWidth(); 81 82 $(window).on('resize', function() { 83 plugin.checkWidth(); 84 }); 85 }; 86 87 plugin.checkWidth = function() { 88 var expanding_search = $("li.mega-menu-item .mega-search.expand-to-left input[type=text], li.mega-menu-item .mega-search.expand-to-right input[type=text]", $menu); 89 90 if ( $menu.data("view") === "mobile" ) { 91 var placeholder = expanding_search.attr('data-placeholder'); 92 expanding_search.attr('placeholder', placeholder); 93 } 94 95 if ( $menu.data("view") === "desktop" ) { 96 expanding_search.attr('placeholder', ''); 97 } 98 }; 99 100 plugin.close_search = function(moveFocus = true) { 101 $menu.triggerHandler("mmm:closeSearch"); 102 input.val(""); 103 input.attr('placeholder', ''); 104 input.attr('tabindex', '-1'); 105 form.removeClass('mega-search-open'); 106 form.addClass('mega-search-closed'); 107 icon.attr('aria-expanded', 'false'); 108 109 if (moveFocus) { 110 icon.trigger("focus"); 111 } 112 } 113 114 plugin.open_search = function() { 115 $menu.triggerHandler("mmm:openSearch"); 116 input.attr('placeholder', input.attr('data-placeholder')); 117 input.attr('tabindex', '0'); 118 form.removeClass('mega-search-closed'); 119 form.addClass('mega-search-open'); 120 icon.attr('aria-expanded', 'true'); 121 input.trigger("focus"); 122 } 123 124 plugin.detect_background_click = function() { 125 var dragging = false;
126 127 $(document).on({ 128 "touchmove": function(e) { dragging = true; }, 129 "touchstart": function(e) { dragging = false; } 130 }); 131 132 $(document).on("click touchend", function(e) { // hide menu when clicked away from 133 if ( form.parent().hasClass('mega-static') ) { 134 return; 135 } 136 if ( ! dragging && ! $(e.target).closest(".max-mega-menu li").length && ! $(e.target).closest(".mega-menu-toggle").length ) { 137 plugin.close_search(false); 138 } 139 dragging = false; 140 }); 141 } 142 143 plugin.init_replacements_search = function() { 144 if ( $menu.data("view") === "mobile" ) { 145 input.attr('tabindex', '0'); 146 147 $(".search-icon", $menu).on('click', function(e) { 148 $(this).parents(".mega-search").submit(); 149 }); 150 } 151 152 if ( $menu.data("view") === "desktop" ) { 153 input.on('blur', function(e) { 154 if ( $menu.parent().hasClass("mega-keyboard-navigation") && input.val() == '' && ! form.parent().hasClass('mega-static') && form.hasClass('mega-search-open') ) { 155 plugin.close_search(); 156 } 157 }); 158 159 icon.on('keypress click', function(e) { 160 var enter_key = 13; 161 var space_key = 32; 162 163 if (e.which === enter_key || e.which === space_key || e.type === 'click') { 164 e.preventDefault(); 165 166 if (form.parent().hasClass('mega-static') ) { 167 form.submit(); 168 return; 169 } 170 171 if ( input.val() != '' ) { 172 form.submit(); 173 return; 174 } 175 176 if ( form.hasClass('mega-search-open') ) { 177 plugin.close_search(); 178 return; 179 } 180 181 if ( form.hasClass('mega-search-closed') ) { 182 plugin.open_search(); 183 return; 184 } 185 }; 186 }); 187 188 icon.on('blur', function() { 189 if ( ! form.parent().hasClass('mega-static') && form.hasClass('mega-search-open') && $wrap.hasClass('mega-keyboard-navigation') ) { 190 setTimeout(function(){ 191 if ( form.find(":focus").length == 0 ) { 192 plugin.close_search(false); 193 } 194 }, 100); 195 } 196 }); 197 198 $menu.on('keydown', function(e) { 199 var escape_key = 27; 200 201 if (e.which === escape_key) { 202 if (! form.parent().hasClass('mega-static') && form.hasClass('mega-search-open') ) { 203 plugin.close_search(); 204 return; 205 } 206 } 207 }); 208 } 209 }; 210 211 plugin.monitorView(); 212 plugin.init_replacements_search(); 213 plugin.detect_background_click(); 214 }; 215 216 $.fn.maxmegamenu_searchbox = function(options) { 217 return this.each(function() { 218 if (undefined === $(this).data('maxmegamenu_searchbox')) { 219 var plugin = new $.maxmegamenu_searchbox(this, options); 220 $(this).data('maxmegamenu_searchbox', plugin); 221 } 222 }); 223 }; 224 225 $(".max-mega-menu").on("after_mega_menu_init", function() { 226 $(".mega-search", this).maxmegamenu_searchbox(); 227 }); 228})(jQuery); 229 230 231/** 232 * Searchbox jQuery plugin 233 */ 234(function($) { 235 "use strict"; 236 237 $.maxmegamenu_toggle_searchbox = function(form, options) { 238 239 var plugin = this; 240 var form = $(form); 241 var $wrap = form.parents('.mega-menu-wrap'); 242 var input = $("input[type=text]", form); 243 var icon = $(".search-icon", form); 244 245 plugin.open_search = function() { 246 input.attr('placeholder', input.attr('data-placeholder')); 247 form.removeClass('mega-search-closed'); 248 form.addClass('mega-search-open'); 249 } 250 251 plugin.close_search = function() { 252 input.attr('placeholder', ''); 253 form.removeClass('mega-search-open'); 254 form.addClass('mega-search-closed'); 255 } 256 257 plugin.init_toggle_search = function() { 258 259 input.val(""); 260 261 input.on('focus', function(e) { 262 if (! form.parent().hasClass('mega-static') && form.hasClass('mega-search-closed') && $wrap.hasClass('mega-keyboard-navigation') ) { 263 plugin.open_search(); 264 } 265 }); 266 267 input.on('blur', function(e) { 268 if ( ! form.parent().hasClass('mega-static') && form.hasClass('mega-search-open') && $wrap.hasClass('mega-keyboard-navigation') ) { 269 plugin.close_search(); 270 } 271 }); 272 273 icon.on('click', function(e) { 274 if (form.hasClass('static') ) { 275 if ( input.attr('required') == 'required' && input.val() == "" ) { 276 return; 277 } else { 278 form.submit(); 279 } 280 } else if (form.hasClass('mega-search-closed')) { 281 input.focus(); 282 plugin.open_search(); 283 } else if ( input.val() == '' ) { 284 plugin.close_search(); 285 } else { 286 form.submit(); 287 } 288 }); 289 290 }; 291 292 plugin.init_toggle_search(); 293 294 }; 295 296 $.fn.maxmegamenu_toggle_searchbox = function(options) { 297 return this.each(function() { 298 if (undefined === $(this).data('maxmegamenu_toggle_searchbox')) { 299 var plugin = new $.maxmegamenu_toggle_searchbox(this, options); 300 $(this).data('maxmegamenu_toggle_searchbox', plugin); 301 } 302 }); 303 }; 304 305 $(function() { 306 $(".mega-menu-toggle .mega-search").maxmegamenu_toggle_searchbox(); 307 }); 308})(jQuery); 309 310/** 311 * Sticky jQuery Plugin 312 */ 313(function($) { 314 315 "use strict"; 316 317 $.maxmegamenu_sticky = function(menu, options) { 318 var plugin = this; 319 var $menu = $(menu); 320 var $wrap = $menu.parent(); 321 var breakpoint = $menu.attr('data-breakpoint'); 322 var sticky_on_mobile = $menu.attr('data-sticky-mobile'); 323 var sticky_on_desktop = $menu.attr('data-sticky-desktop'); 324 var sticky_expand = $menu.attr('data-sticky-expand'); 325 var sticky_expand_mobile = $menu.attr('data-sticky-expand-mobile'); 326 var sticky_offset = isNaN(parseInt($menu.attr('data-sticky-offset'))) ? 0 : parseInt($menu.attr('data-sticky-offset')); 327 var sticky_hide_until_scroll_up = $menu.attr('data-sticky-hide'); 328 var sticky_hide_until_scroll_up_tolerance = isNaN(parseInt($menu.attr('data-sticky-hide-tolerance'))) ? 0 : parseInt($menu.attr('data-sticky-hide-tolerance')); 329 var sticky_hide_until_scroll_up_offset = isNaN(parseInt($menu.attr('data-sticky-hide-offset'))) ? 0 : parseInt($menu.attr('data-sticky-hide-offset')); 330 var sticky_transition = $menu.attr('data-sticky-transition'); 331 var sticky_menu_offset_top; 332 var sticky_menu_offset_left; 333 var sticky_menu_width; 334 var sticky_menu_width_round_up; 335 var sticky_menu_height; 336 var is_stuck = false;
337 var admin_bar_height = 0; 338 var last_scroll_top = 0; 339 var saved_scroll_top = 0; 340 var is_vertical = $menu.hasClass('mega-menu-vertical') || $menu.hasClass('mega-menu-accordion'); 341 342 plugin.isDesktopView = function() { 343 var width = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0); 344 return width > breakpoint; 345 }; 346 347 var sticky_hide_until_scroll_up_enabled = function() { 348 return $menu.hasClass('mega-menu-horizontal') && sticky_hide_until_scroll_up == "true"; 349 } 350 351 var sticky_enabled = function() { 352 if ( plugin.isDesktopView() ) { 353 return sticky_on_desktop === 'true'; 354 } else { 355 return sticky_on_mobile === 'true'; 356 } 357 358 return false; 359 }; 360 361 plugin.calculate_menu_position = function() { 362 sticky_menu_offset_top = $wrap.offset().top; 363 364 if ($('body').hasClass('admin-bar') && $("#wpadminbar").is(":visible") && $("#wpadminbar").css('top') == '0px' && $("#wpadminbar").css('position') == 'fixed') { 365 admin_bar_height = $('#wpadminbar').height(); 366 sticky_menu_offset_top = sticky_menu_offset_top - admin_bar_height; 367 } 368 369 if (sticky_offset < 0) { 370 sticky_menu_offset_top = sticky_menu_offset_top + sticky_offset; 371 } else { 372 sticky_menu_offset_top = sticky_menu_offset_top - sticky_offset; 373 } 374 375 sticky_menu_offset_left = $menu.parent().offset().left; 376 sticky_menu_width = window.getComputedStyle($wrap[0]).width; 377 sticky_menu_width_round_up = Math.ceil(parseFloat(sticky_menu_width)); 378 sticky_menu_height = $wrap.height(); 379 }; 380 381 plugin.stick_menu = function() { 382 is_stuck = true; 383 384 var total_offset = parseInt(admin_bar_height, 10) + parseInt(sticky_offset, 10); 385 386 if (sticky_offset < 0) { 387 total_offset = parseInt(admin_bar_height, 10); 388 } 389 390 var placeholder = $("<div />").addClass("mega-sticky-wrapper").css({ 391 'height' : sticky_menu_height + 'px', 392 'position' :'static' 393 }); 394 395 $wrap.addClass('mega-sticky').wrap(placeholder).css({ 396 'margin-top' : total_offset + 'px' 397 }); 398 399 $("body").addClass($menu.attr("id") + "-mega-sticky"); 400 401 $menu.css({ 402 'max-width' : sticky_menu_width_round_up + 'px' 403 }); 404 405 if (sticky_menu_offset_left > 0) { 406 $menu.css({ 407 'margin-left' : sticky_menu_offset_left + 'px' 408 }); 409 } 410 411 if (is_vertical || sticky_expand === 'false') { 412 $wrap.css({ 413 'margin-left' : '0', 414 'margin-right' : '0', 415 'width' : sticky_menu_width_round_up + 'px', 416 'left' : sticky_menu_offset_left + 'px' 417 }); 418 419 $menu.css({ 420 'margin-left' : '0' 421 }); 422 } 423 424 if ( $(window).width() <= breakpoint ) { 425 $wrap.css({ 426 'width' : sticky_menu_width_round_up + 'px' 427 }); 428 429 if (sticky_expand_mobile === 'true') { 430 $wrap.css({ 431 'margin-left' : '', 432 'margin-right' : '', 433 'width' : '', 434 'left' : '' 435 }); 436 437 $menu.css({ 438 'max-width' : '', 439 'margin-left' : '', 440 'width' : '', 441 'left' : '' 442 }); 443 } 444 } 445 446 $wrap.delay(0).queue(function(next){ 447 $(this).addClass('mega-stuck'); 448 next(); 449 }); 450 }; 451 452 plugin.unstick_menu = function(doing_resize) { 453 doing_resize = doing_resize || false; 454 is_stuck = false;
455 456 $wrap.removeClass('mega-sticky').removeClass('mega-hide').css({ 457 'margin' : '', 458 'width' : '', 459 'left': '' 460 }); 461 462 $("body").removeClass($menu.attr("id") + "-mega-sticky"); 463 464 if ( ! doing_resize ) { // this class is used for the height transition, do not remove it if we are simply resizing the window 465 $wrap.delay(0).queue(function(next){ 466 $(this).removeClass('mega-stuck'); 467 next(); 468 }); 469 } 470 471 $menu.css({ 472 'margin-left' : '', 473 'max-width' : '', 474 'left' : '', 475 'width' : '' 476 }); 477 478 if ( $(window).width() <= breakpoint ) { 479 $menu.data('maxmegamenu').toggleBarForceWidth(); 480 } 481 482 if (sticky_transition == 'true' && ! doing_resize ) { 483 var delay = 250; // allows the transiton to complete before unwrapping the menu 484 } else { 485 var delay = 0; 486 } 487 488 $wrap.delay(delay).queue(function(next){ 489 $(this).unwrap(); 490 next(); 491 }); 492 }; 493 494 plugin.mega_sticky_on_scroll = function(){ 495 if ( ! sticky_enabled() ) { 496 return; 497 } 498 499 var scroll_top = $(window).scrollTop(); 500 501 if (scroll_top > sticky_menu_offset_top) { 502 if (!is_stuck) { 503 plugin.stick_menu(); 504 } 505 } else { 506 if (is_stuck) { 507 plugin.unstick_menu(); 508 } 509 } 510 }; 511 512 var mega_hide_on_scroll_up = function() { 513 if (sticky_hide_until_scroll_up_enabled()) { 514 515 if ( $menu.data("view") === "mobile" && $('.mega-menu-toggle', $wrap).hasClass('mega-menu-open') ) { 516 return; 517 } 518 519 var scroll_top = $(window).scrollTop(); 520 521 if ( scroll_top < sticky_hide_until_scroll_up_offset ) { 522 $wrap.removeClass('mega-hide'); 523 $("body").removeClass($menu.attr("id") + "-mega-hide"); 524 } 525 526 saved_scroll_top = last_scroll_top; 527 528 if (scroll_top < last_scroll_top) { 529 // scroll up 530 if (saved_scroll_top - scroll_top > sticky_hide_until_scroll_up_tolerance) { 531 $wrap.removeClass('mega-hide'); 532 $("body").removeClass($menu.attr("id") + "-mega-hide"); 533 } 534 } else { 535 // scroll down 536 if (is_stuck && scroll_top - saved_scroll_top > sticky_hide_until_scroll_up_tolerance) { 537 $wrap.addClass('mega-hide'); 538 $("body").addClass($menu.attr("id") + "-mega-hide"); 539 } 540 } 541 542 last_scroll_top = scroll_top; 543 } 544 } 545 546 plugin.mega_sticky_on_resize = function() { 547 if ($('input', $wrap).is(':focus')) { 548 return; 549 } 550 551 if ( sticky_enabled() ) { 552 if (is_stuck) { 553 plugin.unstick_menu(true); 554 plugin.calculate_menu_position(); 555 plugin.stick_menu(); 556 } else { 557 plugin.calculate_menu_position(); 558 plugin.mega_sticky_on_scroll(); 559 } 560 } else { 561 if (is_stuck) { 562 plugin.unstick_menu(); 563 } 564 } 565 }; 566 567 plugin.init = function() { 568 plugin.calculate_menu_position(); 569 plugin.mega_sticky_on_scroll(); 570 571 $('.mega-menu-accordion li.mega-menu-item').on('open_panel', function() { 572 plugin.calculate_menu_position(); 573 }); 574 575 var $window = $(window); 576 577 $window.scroll(function() { 578 plugin.mega_sticky_on_scroll(); 579 mega_hide_on_scroll_up(); 580 }); 581 582 var windowWidth = $window.width(); 583 var resizeTimer; 584 585 $window.on('resize', function() { 586 clearTimeout(resizeTimer); 587 resizeTimer = setTimeout(function(){ 588 windowWidth = $window.width(); 589 plugin.mega_sticky_on_resize(); 590 }, 100); 591 }); 592 }; 593 594 plugin.init(); 595 }; 596 597 $.fn.maxmegamenu_sticky = function(options) { 598 599 return this.each(function() { 600 if (undefined === $(this).data('maxmegamenu_sticky')) { 601 var plugin = new $.maxmegamenu_sticky(this, options); 602 $(this).data('maxmegamenu_sticky', plugin); 603 } 604 }); 605 606 }; 607 608 $(window).on('load', function (e) { 609 $(".max-mega-menu[data-sticky-enabled]").maxmegamenu_sticky(); 610 }); 611 612})(jQuery); 613 614/** 615 * Handle tabbed functionality 616 */ 617(function($) { 618 $(function() { 619 620 var calculate_tabbed_sub_menu_widths = function( menu_item ) { 621 var menu = menu_item.parents('.max-mega-menu'); 622 623 if( $(menu.attr('data-panel-inner-width')).length > 0 ) { 624 if ( menu.data("view") === "desktop" ) { 625 $('> ul.mega-sub-menu', menu_item).each(function() { 626 var tab_content = $(this); 627 var parent_submenu_content_width = parseInt(tab_content.width()); 628 var parent_submenu_left_padding = parseInt(tab_content.css('paddingLeft')); 629 var tabs_width = $(this).find('a.mega-menu-link').first().outerWidth(); 630 631 $('> li.mega-menu-item > ul.mega-sub-menu', $(this)).each(function() { 632 $(this).css('width', parent_submenu_content_width - tabs_width + 'px'); 633 $(this).css('left', parent_submenu_left_padding + tabs_width + 'px'); 634 }); 635 }); 636 } else { 637 $('> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu', menu_item).each(function() { 638 $(this).css('width', ''); 639 $(this).css('left', ''); 640 }); 641 } 642 } 643 } 644 645 var calculate_tabbed_sub_menu_heights = function( menu_item ) { 646 647 var menu = menu_item.parents('.max-mega-menu'); 648 var max_height = 0; 649 650 if ( menu.data("view") === "desktop" ) { 651 652 $('> ul.mega-sub-menu', menu_item).css('minHeight', ''); 653 654 $('> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu', menu_item).each(function() { 655 var tab_content = $(this); 656 var this_height = parseInt(tab_content.css('height')); 657 658 if (this_height > max_height) { 659 max_height = this_height; 660 } 661 }); 662 663 var border_top_width = parseInt($('> ul.mega-sub-menu', menu_item).css('borderTopWidth'),10); 664 var border_bottom_width = parseInt($('> ul.mega-sub-menu', menu_item).css('borderBottomWidth'),10); 665 666 $('> ul.mega-sub-menu', menu_item).css('minHeight', max_height + border_bottom_width + border_top_width); 667 } else { 668 $('> ul.mega-sub-menu', menu_item).css('minHeight', ''); 669 } 670 } 671 672 var $window = $(window); 673 674 var windowWidth = $window.width(); 675 676 $window.on('resize', function() { 677 if ($window.width() != windowWidth) { 678 calculate_tabbed_sub_menu_widths($('li.mega-menu-tabbed')); 679 calculate_tabbed_sub_menu_heights($('li.mega-menu-tabbed')); 680 } 681 }); 682 683 $('li.mega-menu-tabbed, li.mega-menu-tabbed li.mega-collapse-children').on('open_panel', function() { 684 var menu = $(this).parents('.max-mega-menu'); 685 var menu_item = $(this).closest(".mega-menu-tabbed"); 686 687 calculate_tabbed_sub_menu_widths( menu_item ); 688 689 $(">
689 ul.mega-sub-menu", $(this)).promise().done(function(){ // wait until slide animation has completed 690 calculate_tabbed_sub_menu_heights( menu_item ); 691 }); 692 693 if ( menu.data('view') == 'desktop' ) { 694 if ($('> ul.mega-sub-menu > li.mega-menu-item-has-children.mega-toggle-on', menu_item).length == 0 ) { 695 696 697 if ( $('> ul.mega-sub-menu > li.mega-current-menu-item:visible', menu_item).length ) { 698 $('> ul.mega-sub-menu > li.mega-current-menu-item:visible', menu_item).first().addClass('mega-toggle-on'); 699 } else if ( $('> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible', menu_item).length ) { 700 $('> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible', menu_item).first().addClass('mega-toggle-on'); 701 } 702 703 704 if ($('> ul.mega-sub-menu > li.mega-toggle-on', menu_item).length == 0 ) { 705 $('> ul.mega-sub-menu > li.mega-menu-item-has-children:visible', menu_item).first().addClass('mega-toggle-on'); 706 } 707 } 708 709 $('li.mega-menu-tabbed', menu).on('close_panel', function() { 710 $('li.mega-menu-tabbed .mega-toggle-on', menu).removeClass('mega-toggle-on'); 711 }); 712 } 713 714 $('li.mega-menu-tabbed li.mega-collapse-children').on('close_panel', function() { 715 var menu_item = $(this).closest('.mega-menu-tabbed'); 716 717 $("> ul.mega-sub-menu", $(this)).promise().done(function(){ // wait until slide animation has completed 718 calculate_tabbed_sub_menu_heights( menu_item ); 719 }); 720 }); 721 }); 722 }); 723})(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.