1$(document).ready(function () { 2 3 $('body').append('<div id="dialog"></div>'); 4 $("#dialog").dialog({ 5 autoOpen: false, 6 modal: true, 7 width: 850, 8 height: 1500, 9 close: function () { 10 $(this).html(''); 11 } 12 }); 13 14 $("form#product-select").submit(function () { 15 window.location.href = $('select[name=product]').val(); 16 return false; 17 }); 18 19 20 // footer quick links 21 $('.quick-links .view-all').click(function () { 22 $(this).hide(); 23 $(this).parents('ul').find('div').slideDown(); 24 return false; 25 }); 26 27 28 // find directions dropdown in nav 29 l = new locationsWidget(); 30 $('.locations-widget-button').click(function () { 31 32 $('.locations-widget .content').slideToggle('fast', function () { 33 if ($(this).is(':visible')) { 34 l.loadListingPage(); 35 } 36 else { 37 // l.reset(); 38 } 39 }); 40 41 return false; 42 43 }); 44 45 $('body').click(function () { 46 if ($('.locations-widget .content').is(':visible')) { 47 $('.locations-widget-button').click(); 48 } 49 }); 50 51 $('.locations-widget .content').click(function (event) { 52 event.stopPropagation(); 53 }); 54 55 56 // our products dropdown in nav 57 $('.products').hover(function () { 58 $('.product-info').height(0); 59 $('.top-product-list').height('auto'); 60 $('.product-div').width(260); 61 }); 62 63 $('.top-product-list > li').hover(function () { 64 $('.product-div').width(765); 65 x = $(this).attr('class'); 66 $('.product-info > div').hide(); 67 $('.' + x).show(); 68 $('.top-product-list').height('auto'); 69 $('.product-info').height('auto'); 70 maxHeight = $('.top-product-list').height(); 71 if (maxHeight < $('.product-info').height()) { 72 maxHeight = $('.product-info').height(); 73 } 74 if (maxHeight > ($(window).height() - $('.top-nav').height() - 20)) { 75 maxHeight = $(window).height() - $('.top-nav').height() - 20; 76 } 77 $('.top-product-list').height(maxHeight); 78 $('.product-info').height(maxHeight); 79 currentSubproducts = $('.' + x).find('.subproducts'); 80 if (currentSubproducts.height() > $(window).height() - $('.top-nav').height() - 60) { 81 currentSubproducts.height($(window).height() - $('.top-nav').height() - 60); 82 currentSubproducts.jScrollPane({contentWidth: 150}); 83 } 84 }); 85 86 $.phoneDrawerShowing = false; 87 88 $('#mobilePhoneButton').click(function () { 89 90 if ($.phoneDrawerShowing) 91 { 92 $('.mobilePhoneBucket').animate({opacity: '0', top: '-100px'}, function () { 93 $(this).css('display', 'none'); 94 }); 95 } 96 else 97 { 98 $('.mobilePhoneBucket').css('display', 'block'); 99 $('.mobilePhoneBucket').animate({opacity: '1', top: '79px'}); 100 } 101 102 $.phoneDrawerShowing = !$.phoneDrawerShowing; 103 104 }); 105 106 var mFeaturedProducts = $('.mobileFeaturedProducts ul'); 107 108 $.mobileFeaturedProductsShowing = 0; 109 110 $('.mobileFeaturedProducts .viewAllProducts').click(function () { 111 if ($.mobileFeaturedProductsShowing) 112 { 113 mFeaturedProducts.addClass('zeroHeight', 500); 114 $(this).removeClass('expanded'); 115 $('#featuredIcon').removeClass('icon-angle-up').addClass('icon-angle-down'); 116 } 117 else 118 { 119 mFeaturedProducts.removeClass('zeroHeight', 500); 120 $(this).addClass('expanded'); 121 $('#featuredIcon').removeClass('icon-angle-down').addClass('icon-angle-up'); 122 } 123 124 $.mobileFeaturedProductsShowing = !$.mobileFeaturedProductsShowing; 125 }); 126 127 $('.dropdown').mouseover(function () { 128 $(this).addClass('dropdownOver'); 129 }); 130 $('.dropdown').mouseout(function () { 131 $(this).removeClass('dropdownOver'); 132 }); 133 134});
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.