1Y.use('node', 'node-load', function(Y) { 2 3 Y.on('domready', function() { 4 devlin(); 5 resizeLogo(); 6 7 Y.on(['windowresize','load'], function() { 8 if (Y.one('.primary-image img')) { ImageLoader.load(Y.one('.primary-image img')); } 9 resizeLogo(); 10 }); 11 }); 12 13 function resizeLogo() { 14 var siteTitleImg = Y.one('.site-title img'); 15 if (siteTitleImg) { 16 var siteTitleImgWidth = siteTitleImg.get('clientWidth'); 17 var siteTitleWidth = Y.one('.site-title').get('clientWidth'); 18 } 19 20 if (siteTitleImg && (siteTitleImgWidth > siteTitleWidth)) { 21 siteTitleImg.setStyles({ 22 'maxWidth' : '100%', 23 'height' : 'auto' 24 }); 25 } 26 } 27 28 var devlin = function() { 29 30 if (Y.config.win.innerWidth > 640) { 31 32 /* Set folder */ 33 34 Y.all('.folder-wrapper').each(function(hf) { 35 hf.on('hover', function() { 36 hf.all('.folder-links-wrapper').setStyle('minWidth', hf.get('clientWidth')); 37 }); 38 }); 39 40 /* Compensate for tall sidebars */ 41 42 if ( Y.one('body.collection-layout-left-sidebar') || Y.one('body.collection-layout-right-sidebar') ) { 43 var sidebarHeight = Y.one('#sidebar').getComputedStyle('height'); 44 Y.one('#content').setStyle('minHeight', sidebarHeight); 45 } 46 47 } 48 49 /* Set mobile nav */ 50 51 if(Y.one('.show-nav')){ 52 var mn = Y.one('.mobile-nav'); 53 54 mn.one('.show-nav').on('click', function(){ 55 mn.toggleClass('show'); 56 }); 57 58 mn.all('.folder-wrapper').each(function(mf) { 59 60 mf.one('> a').on('click', function(){ 61 mf.toggleClass('show'); 62 }); 63 }); 64 } 65 66 67 68 }; 69 70});
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.