[
// Reindent
{"keys": ["ctrl+shift+r"], "command": "reindent", "args": {"single_line": false} },
// Convert spaces to tabs
{ "keys": ["ctrl+shift+x"], "command": "unexpand_tabs", "args": { "set_translate_tabs": false } },
]
$('.js-menu-item').click(function(event) {
image = $(this).attr('href');
$mainImg = $('.js-main-image').find('img');
if ($mainImg.attr('src') != image) {
$(".js-gallery-list-link").parent().removeClass('js-selected');
$(this).parent().addClass('js-selected');
$mainImg.animate({
opacity: 0
}, 400, function() {
$mainImg.attr('src', image);
$mainImg.one("load", function() {
$mainImg.animate({
opacity: 1
}, 400);
});
});
}
event.preventDefault();
});