jam-cloud/app/assets/javascripts/homeScreen.js

26 lines
674 B
JavaScript

(function(context,$) {
"use strict";
context.JK = context.JK || {};
var logger = context.JK.logger;
context.JK.HomeScreen = function(app) {
function events() {
$('.homecard').on('mouseenter', function() {
$(this).addClass('hover');
});
$('.homecard').on('mouseleave', function() {
$(this).removeClass('hover');
});
$('.profile').on('click', function() {
context.location = '#/profile/' + context.JK.currentUserId;
})
}
this.initialize = function() {
events();
};
};
})(window,jQuery);