Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DaTA
DDLTN
Commits
58acae0f
Commit
58acae0f
authored
Feb 05, 2017
by
Francois Hendriks
Browse files
index dropdowns
parent
5e4b280f
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend_ddltn/app/js/personal/animateController.js
View file @
58acae0f
...
...
@@ -2,7 +2,7 @@ angular.module('frontendDdltnApp.animate')
.
controller
(
'
AnimateCtrl
'
,
function
(
$scope
,
$window
)
{
$scope
.
ConcoursCollapsed
=
false
;
$scope
.
ConcoursCollapsed
=
'
false
'
;
$scope
.
Vie_en_ecoleCollapsed
=
false
;
$scope
.
Vie_en_prepaCollapsed
=
false
;
console
.
log
(
"
at least this works
"
);
...
...
@@ -18,23 +18,28 @@ angular.module('frontendDdltnApp.animate')
if
(
screenWidth
>=
768
)
{
console
.
log
(
"
max-screen0
"
);
element
.
on
(
'
mouseenter
'
,
function
(
event
)
{
scope
.
value
=
!
scope
.
value
;
console
.
log
(
"
it should be working
"
);
console
.
log
(
scope
.
value
);
scope
.
$emit
(
'
ConcoursCollapsed
'
,
scope
.
value
);
scope
.
$apply
(
function
()
{
scope
.
value
=
!
scope
.
value
;
console
.
log
(
"
it should be working
"
);
console
.
log
(
scope
.
value
);
scope
.
$emit
(
'
ConcoursCollapsed
'
,
scope
.
value
);
});
});
element
.
on
(
'
mouseleave
'
,
function
(
event
)
{
scope
.
$emit
(
scope
.
value
,
!
scope
.
value
);
scope
.
$apply
(
function
()
{
scope
.
$emit
(
scope
.
value
,
!
scope
.
value
);
});
});
console
.
log
(
"
max-screen
"
);
}
else
{
element
.
on
(
'
click
'
,
function
(
event
)
{
scope
.
$emit
(
scope
.
value
,
!
scope
.
value
);
scope
.
$apply
(
function
()
{
scope
.
$emit
(
scope
.
value
,
!
scope
.
value
);
});
});
console
.
log
(
"
min-screen
"
);
};
scope
.
$apply
();
}
}
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment