Advertisement
C1oseReaper

JS

Feb 19th, 2020
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. (function($) {
  2.  
  3. skel.breakpoints({
  4. xlarge: '(max-width: 1680px)',
  5. large: '(max-width: 1280px)',
  6. medium: '(max-width: 980px)',
  7. small: '(max-width: 736px)',
  8. xsmall: '(max-width: 480px)',
  9. xxsmall: '(max-width: 360px)'
  10. });
  11.  
  12. $(function() {
  13.  
  14. var $window = $(window),
  15. $body = $('body'),
  16. $wrapper = $('#wrapper'),
  17. $header = $('#header'),
  18. $footer = $('#footer'),
  19. $main = $('#main'),
  20. $main_articles = $main.children('article');
  21.  
  22. // Disable animations/transitions until the page has loaded.
  23. $body.addClass('is-loading');
  24.  
  25. $window.on('load', function() {
  26. window.setTimeout(function() {
  27. $body.removeClass('is-loading');
  28. }, 100);
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement