mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-19 12:43:23 +00:00
23 lines
512 B
JavaScript
23 lines
512 B
JavaScript
|
$(document).ready(function(){
|
||
|
|
||
|
$("#poster_list #view").click(function(e){
|
||
|
$("#view").removeClass("active");
|
||
|
});
|
||
|
|
||
|
$("#poster_list .poster").click(function(e){
|
||
|
|
||
|
el = $(e.target);
|
||
|
$("#poster_list #view #placeholder").html(el);
|
||
|
|
||
|
$("#view").addClass("active");
|
||
|
});
|
||
|
|
||
|
$(document).keyup(function(e) {
|
||
|
if (e.keyCode == 27) { // escape key maps to keycode `27`
|
||
|
e.preventDefault();
|
||
|
$("#view").removeClass("active");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|