1function setEqualWidth(elem) { 2 if (!jQuery(elem).hasClass("al-button-fullwidth")) { 3 var widthPrimary = jQuery(".primary-wrapper .al-duobutton", elem).outerWidth(); 4 var widthSecondary = jQuery(".secondary-wrapper .al-duobutton", elem).outerWidth(); 5 6 if (widthPrimary > widthSecondary) { 7 jQuery(".secondary-wrapper .al-duobutton", elem).css("width", widthPrimary); 8 } else { 9 jQuery(".primary-wrapper .al-duobutton", elem).css("width", widthSecondary); 10 } 11 } 12} 13 14function initFB_AL_DuoButton( elem ) { 15 elem = jQuery(elem); 16 var innerElem = elem.find(".al-duobutton-wrapper"); 17 if (innerElem.hasClass("al-button-equal-width") && innerElem.hasClass("al-horizontal")) { 18 setEqualWidth( innerElem ); 19 } 20} 21 22jQuery(window).load(function() { 23 jQuery(".al-duobutton-wrapper.al-horizontal.al-button-equal-width").each(function() { 24 setEqualWidth( jQuery(this) ); 25 }); 26});
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.