x = ( -int(b) - int(dd) ) / (int(a) * 2)
x1 = ( -int(b) + int(dd) ) / (int(a) * 2)
$user_id = filter_input(INPUT_POST, 'user_id', FILTER_VALIDATE_INT);
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */
/* Small devices (tablets, 768px and up) */
@media (min-width: @screen-sm-min) { ... }
/* Medium devices (desktops, 992px and up) */
@media (min-width: @screen-md-min) { ... }
/* Large devices (large desktops, 1200px and up) */
@media (min-width: @screen-lg-min) { ... }
var $div;
$(document).keydown(function(e){
if(!$div) return;
// ... обработка
});
$('body').click(function(e){
$div = null;
return false;
});
$('div').click(function(e){
$div = $(this);
return false;
});