mirror of https://github.com/IoTcat/ushio-net.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
962 B
50 lines
962 B
/* |
|
Fractal by HTML5 UP |
|
html5up.net | @ajlkn |
|
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) |
|
*/ |
|
|
|
(function($) { |
|
|
|
var $window = $(window), |
|
$body = $('body'); |
|
|
|
// Breakpoints. |
|
breakpoints({ |
|
xlarge: [ '1281px', '1680px' ], |
|
large: [ '981px', '1280px' ], |
|
medium: [ '737px', '980px' ], |
|
small: [ '481px', '736px' ], |
|
xsmall: [ '361px', '480px' ], |
|
xxsmall: [ null, '360px' ] |
|
}); |
|
|
|
// Play initial animations on page load. |
|
$window.on('load', function() { |
|
window.setTimeout(function() { |
|
$body.removeClass('is-preload'); |
|
}, 100); |
|
}); |
|
|
|
// Mobile? |
|
if (browser.mobile) |
|
$body.addClass('is-mobile'); |
|
else { |
|
|
|
breakpoints.on('>medium', function() { |
|
$body.removeClass('is-mobile'); |
|
}); |
|
|
|
breakpoints.on('<=medium', function() { |
|
$body.addClass('is-mobile'); |
|
}); |
|
|
|
} |
|
|
|
// Scrolly. |
|
$('.scrolly') |
|
.scrolly({ |
|
speed: 1500 |
|
}); |
|
|
|
})(jQuery); |