vyspirit

/js/main.js

May 14th, 2021
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const sftextObserver=new FontFaceObserver('SF Pro Text');
  2. const sfdisplayObserver=new FontFaceObserver('SF Pro Display');
  3. const faplayObserver=new FontFaceObserver('Font Awesome 5 Free');
  4. Promise.all([sftextObserver.load(),sfdisplayObserver.load(),faplayObserver.load()]).then(function(){
  5.     document.documentElement.className+=" fonts-loaded";
  6.    
  7. });(function($){var $wrap=$(".sticky-container"),$sticky=$wrap.find('.sticky'),footerBottomAdjust=$("#widget-area").offset().top-$(".post-author").offset().top;$wrap.sticky({topSpacing:0,bottomSpacing:footerBottomAdjust});$wrap.on('sticky-start',function(){$sticky.show()});$wrap.on('sticky-end',function(){$sticky.hide()});})(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment