Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             loadWebFonts = function(){
  2.                 WebFont.load({
  3.                     custom: {
  4.                         families: ['Korolev-Light','Korolev-Medium','KorolevCondensed-Light'],
  5.                         urls: ['<?php echo get_template_directory_uri(); ?>/css/fonts.css']
  6.                     },
  7.                     active: function(){
  8.                         console.log('wf loaded');
  9.                     }
  10.                 });
  11.             };
  12.             Modernizr.load([
  13.                 {
  14.                     test: Modernizr.fontface,
  15.                     yep: '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js',
  16.                     complete: function(){
  17.                         loadWebFonts();
  18.                     }
  19.                 },
  20.                 {
  21.                     test: needjscroll,
  22.                     yep: ['//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js','<?php echo get_template_directory_uri(); ?>/js/scripts.js'],
  23.                     complete: function () {
  24.                         if (jscroll) jscroll.init();
  25.                     }
  26.                 }
  27.                    
  28.             ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement