forked from CodewarsClone/Codewars
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdirective.js
More file actions
33 lines (28 loc) · 895 Bytes
/
Copy pathdirective.js
File metadata and controls
33 lines (28 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
angular.module('app').directive('animateDir', function () {
return {
scope: {
settings: "="
},
restrict: 'EA',
link: function (scope, elems, attrs) {
$(document).ready(function () {
$('.side-menu').on('mouseenter', function () {
$('.side-menu').css('width', '135px');
});
$('.side-menu').on('mouseleave', function () {
$('.side-menu').css('width', '55px');
// $('.menu-items').css('display','none');
});
$('.top-menu').on('mouseenter', function () {
$('.top-menu').css('background-color', '#222222')
});
$('.top-menu').on('mouseleave', function () {
$('.top-menu').css('background-color', 'rgba(0,0,0,0)')
});
$('.solutions-icon').on('mouseclick', function () {
console.log("This is working");
});
})
}
}
});