1(function ($) { 2 "use strict"; 3 var PENCI = PENCI || {}; 4 5 PENCI.portfolio_extra = function () { 6 if ($().theiaStickySidebar) { 7 var top_margin = 90, 8 pbody = $('body'); 9 if (pbody.hasClass('admin-bar') && pbody.hasClass('penci-vernav-enable')) { 10 top_margin = 62; 11 } else if (!$('body').hasClass('admin-bar') && $('body').hasClass('penci-vernav-enable')) { 12 top_margin = 30; 13 } else if ($('body').hasClass('admin-bar') && !$('body').hasClass('penci-vernav-enable')) { 14 top_margin = 122; 15 } 16 17 if ($('body.single-portfolio').find('.portfolio-page-content.portfolio-sticky-content').length > 0) { 18 19 $('.post-entry.portfolio-style-3 .penci-portfolio-meta-wrapper,.post-entry.portfolio-style-3 .portfolio-sticky-content').theiaStickySidebar({ 20 additionalMarginTop: top_margin, 21 }); 22 } 23 24 } // if sticky 25 } 26 27 /* Init functions 28 ---------------------------------------------------------------*/ 29 $(document).ready(function () { 30 PENCI.portfolio_extra(); 31 }); 32})(jQuery); // EOF
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.