mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-24 02:16:10 +01:00
Matthias Kretschmann
6ede38abfc
- start linting scss based on Airbnb style guide - add includePaths to css & js tasks
36 lines
764 B
JavaScript
36 lines
764 B
JavaScript
|
|
//=include is-in-viewport/lib/isInViewport.js
|
|
|
|
var Testimonials = (function(w, d, $) {
|
|
|
|
'use strict'
|
|
|
|
var app, _private, _config
|
|
|
|
_config = {
|
|
testimonials: $('.testimonials'),
|
|
testimonial: $('.testimonial')
|
|
}
|
|
|
|
_private = {
|
|
toggleReady: function() {
|
|
$(window).on('load resize scroll',function() {
|
|
if (_config.testimonials.is( ':in-viewport()' ) ) {
|
|
_config.testimonials.addClass('is-ready');
|
|
} else {
|
|
_config.testimonials.removeClass('is-ready');
|
|
}
|
|
});
|
|
},
|
|
}
|
|
|
|
app = {
|
|
init: function() {
|
|
_private.toggleReady();
|
|
}
|
|
}
|
|
|
|
return app
|
|
|
|
})(window, document, jQuery)
|